Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hiding Control Methods

Status
Not open for further replies.

new2this2002

Programmer
Jun 22, 2002
67
GB
How do i hide certain methods from appearing in the procedure drop down box when using a custom control.

For example i want to create a custom textbox, how do i make it so only the methods i want to see appear in the procedure box appear (eg. hide the OLEDrag and Drop methods, and hide the MouseDown methods for example)
 
Then that method or property is declared other than Public. It is either Private or Friend. Do know also that such declaration will make your method or property inaccessible to a user.

eg

Code:
'This won't appear.
Private Sub YourMethod()
End Sub

------------------------------

'This will appear on VB IDE
Public Sub YourMethod()
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top