I have form1 and form2
in form2 there is Sub abcd()
How can I call Sub abcd() from within form1?
In VB6, I add "Public" word before Sub abcd(), but this is not working with .NET
In Module:
Public myForm2 as Form2
In Form1:
If myForm2 Is Nothing OrElse myForm2.IsDisposed = True Then
myForm2 = New Form2
myForm2.Show()
myForm2.Activate()
Else
myForm2.Show()
myForm2.Activate()
End If
I can't find "width" property of the toolbar button:
Dim i As Int16
For i = 0 To ToolBar1.Buttons.Count - 1
ToolBar1.Buttons(i).width = 100 'No width property
Next
After I added text properties to the buttons, each button has different width depending on its text. But I need all the buttons to have the same width.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.