Two problem

Husamuddin

Member
Joined
Mar 26, 2010
Messages
8
Programming Experience
1-3
I'm using Visual Studio 2008 and have two problem requiring urgent solutions.

a) I have two forms, Main and Exec. There are a number of global variables declared in Main, and Main contains a button that launches a new window that is an instance of Exec. I want to be able to alter the global variables in Main through the controls in Exec.

b) I have Three forms, Menu, FormA and FormB. There is a radio button group in Menu. I want checking one radio button to cause the contents of FormA to show inside Menu under the radio buttons, while checking the other changes it to the contents of FormB.

Can either be done, and how?
 
a) I have two forms, Main and Exec. There are a number of global variables declared in Main, and Main contains a button that launches a new window that is an instance of Exec. I want to be able to alter the global variables in Main through the controls in Exec.


Main.MyVariable = Myvalue
 
Provide public properties to use in the exec form and pass an instance of main to it when creating or opening the form
 
Back
Top