
April 11th, 2008, 03:09 PM
|
|
Registered User
|
|
Join Date: Apr 2008
Posts: 10
Time spent in forums: 1 h 14 m 46 sec
Reputation Power: 0
|
|
|
ToolBar
First add MDI Form.
Project->Component-> check on Microsoft Windows Common Controls 6.0(SP6) -> Apply it -> OK
you can see toolbar control on your toolbox .
Drag & drop it onto the form
Right Click on toolbar control (on form) -> select for properties -> Properties Pages will shown -> select for Buttons tab -> insert and remove button for toolbar there.
I have a toolbar
Form1 Form2
when I dbl click on Form1
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
Dim obj As New Form1
obj.Show
End Sub
Even when i Dbl click on form2
Same code comes
.
so at runtime,If i click on buttons form1 & form2 ,in both the cases form1 is shown.
How its possible that when i click on button form1, then form1 is opened & when I clickd on button form2,Form2 is shown.
|