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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to activate a toolbar button ?

Status
Not open for further replies.

kianang

Technical User
Dec 2, 2002
23
SG
In my parent form , i put a toolbar and few toolbar button . Could anyone knwos how to activate the toolbar button once the user click . For example , to launch a specified form.
 
you can use something like this for the toolbar_buttonclick event.

Select Case (toolbar.Buttons.IndexOf(e.Button))
Case 0 'btn0
Dim frm As New form1
frm.MdiParent = Me
frm.Show()
Case 1 'btn1
Dim frm As New form2
frm.MdiParent = Me
frm.Show()
Case 2 'exit
End
End Select

//icca /icca
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top