display different things in form

Pavle

Well-known member
Joined
Oct 4, 2016
Messages
47
Programming Experience
1-3
How can I switch between functions inside one form? For example when I click button colors I want to display picturebox with resistor colors,when I click button resistance I want to show textbox for input value...
 
There is no "switching between functions". If you have two Buttons then you simply create handlers for the Click event of each one. Those event handlers are methods and you'll be executing a different one depending on which Button you click. If what you're saying is that you want to hide the TextBox and show the PictureBox when you click one Button and hide the PictureBox and show the TextBox when you click the other Button then that's exactly what you do.
 
Back
Top Bottom