c# - Show some controls based on radio button choice -
i'm doing example exam assignment (it's first time opening visual studio c#, please bare me), have make form builds different shapes based on different form choices.
i have radio button group 3 options. based on selected option have show next set of few more options. proper way of doing put few panel
different buttons 1 on another, make hidden , show none 1 when selecting radio button first group or there more standard way?
it seems correct way handle scenario. don't recommend overlap panels form designer. there large probability inadvertently make panel children of panel.
prefer leave panels in different position 1 @ right position.
@ form_load event or after initializecomponent move other panels on location position of first one
so example
public class form1 : form { public form1() { initializecomponent(); panel2.location = panel1.location; ..... } }
Comments
Post a Comment