If you don't have that, then go back to the designer, click again on generate members, click on the + sign next to Button1, and you will see Button1_Click, make sure this is ticked as well, and again generate member
Now in your code, you will see that sub, this will be how it is accessed
You need to Dim Button1 As Button in the Globals routine, this can also be done with 'Generate Members' from the Designer.
Then after having loaded the layout file you can set every propety with: Button1.Text = "Test"
Button1.Color = Colors.Red
etc.
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.