In VBA you can have a Userform implement a custom interface and only the properties defined in the interface will show in the VBA Intellisense for the Userform. I tried to duplicate this functionality in VB.Net (2010) and all the base Form properties still show.
Public Interface iTest
Property TestString As String
End Interface
Public Class Form1
Implements iTest
Public Property TestString As String Implements iTest.TestString
Get
TestString = Me.txtTest.Text
End Get
Set(ByVal value As String)
Me.txtTest.Text = value
End Set
End Property
End Class
An answer to a similar question from Richard Hein is here, but it’s for c# and a usercontrol, and I’m unable to convert it.
If you cast the form instance directly to your Interface, then you will have intellisense only for the interface members.
For example:
or