Hi,
I have a Main form that spawns other forms. Currently, when I click a button in Main to spawn a new form, a new window is opened containing the new form, and the current window containing Main stays open.
Is there a way to keep only one window open, and have the new form appear in the same window (so Main is no longer visible, but the new form is)? I have buttons on all of the spawned forms "Return to Main" and I'd like to have the reverse take place when that is clicked.
Is this just as simple as Form.Close and Form.Open, or is there something trickier? I'd ultimately like the window to keep the exact same size and position on the screen, so it looks very seamless.
Kinda like the way MS Explorer gives you a choice under Tools -> Folder Options:
-Open each folder in the same window
-Open each folder in its own window
I would like my app to open each form in the same window.
Thanks,
Scott
I have a Main form that spawns other forms. Currently, when I click a button in Main to spawn a new form, a new window is opened containing the new form, and the current window containing Main stays open.
Is there a way to keep only one window open, and have the new form appear in the same window (so Main is no longer visible, but the new form is)? I have buttons on all of the spawned forms "Return to Main" and I'd like to have the reverse take place when that is clicked.
Is this just as simple as Form.Close and Form.Open, or is there something trickier? I'd ultimately like the window to keep the exact same size and position on the screen, so it looks very seamless.
Kinda like the way MS Explorer gives you a choice under Tools -> Folder Options:
-Open each folder in the same window
-Open each folder in its own window
I would like my app to open each form in the same window.
Thanks,
Scott