0

My windows Application has a menu which opens an OpenFileDialog. When the button OK is pressed, I want to place the main form background and show a new Form (with two radiobuttons, one button).

From the New Form I must take information (which radiobutton was checked) and pass this information to the main form.
Can anyone help me?

3
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by TomW
0

Declare public variable in a Module. Store the radiobutton value in the variable and then retrieve the value stored in the public variable in the main form.

0

You can create public properties in your dialog form that can be accessed and the values can be passed back to the main form.

0

And how can I say the sequence
in OpenFileDialog OK pressed --> open new form with the main in the background --> Button pressed --> close new form --> restore the main form?
I declare a new class which constructs my new Form?
I generally have a problem with the handling of two forms...

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.