how to hide a panel on child form, when child form loads?
-
hi i'm working in MDI, there is a Main Form with a button1 and a button2. There is a Child form containing Panel1.
scenario 1
when button1 is clicked, the Child form is opened displaying its Panel1.this scenario works fine
scenario 2
when Button2 is clicked, the Child form opens without displaying its Panel1.this scenario is not working, ,how do i make it work?? all suggestion will be appreciated:)
-
hi i'm working in MDI, there is a Main Form with a button1 and a button2. There is a Child form containing Panel1.
scenario 1
when button1 is clicked, the Child form is opened displaying its Panel1.this scenario works fine
scenario 2
when Button2 is clicked, the Child form opens without displaying its Panel1.this scenario is not working, ,how do i make it work?? all suggestion will be appreciated:)
Have a public method in Form2 which acceps a boolean argument. Pass either true or false to the function and make the Panel visible true or false respectively.
Regards, Arun Kumar.A