Events Calling
Visual Basic
2
Posts
2
Posters
0
Views
1
Watching
-
hellow to all ... how can i call Events in vb.net ? i wanna call the painting event of a picturebox every time i click a button , to redraw something ... thx for anyhelp ...
-
hellow to all ... how can i call Events in vb.net ? i wanna call the painting event of a picturebox every time i click a button , to redraw something ... thx for anyhelp ...
You dim the picture box adding the 'withevents' keyword. You create the event eg public event eventname You add 'handles ButtonName_Click' to the event you created, this will tell vb that when you click that button, it must run this event.
There are 10 types of people in this world, those who understand binary and those who don't!