all groups > dotnet academic > january 2004 >
You're in the

dotnet academic

group:

Load next form in same window - not mdichild



Load next form in same window - not mdichild Michael Hammac
1/24/2004 9:11:04 PM
dotnet academic: Hi,

I am fairly new to VB.net. I have a form through which I would like to load the next form, like when the user clicks the next button. On the first form the user selects an option depending on which the controls for the next form are loaded. The problem is that I dont want to open the new form in a separate window nor the mdiparent way either (i.e. like a child window within the parent). (I am trying to make interface/program flow much like an installation wizard where the user clicks next and further options open up within the same window).

Thanks for the help in advance.

Michael
Re: Load next form in same window - not mdichild Alfred C Thompson II
1/25/2004 12:50:20 PM
I think that most of the cases you think are using the same form are
actually just loading new forms (and removing old forms) in the same
location on the screen.

However should you really want to reuse the same form you could just have
multiple objects on the form and change the visible properties of objects
depending on what you want to see at any given time. You could also reuse
objects by changing their text property value and setting some sort of state
variable to control what happens with events on that object.

Alfred

[quoted text, click to view]
load the next form, like when the user clicks the next button. On the first
form the user selects an option depending on which the controls for the next
form are loaded. The problem is that I dont want to open the new form in a
separate window nor the mdiparent way either (i.e. like a child window
within the parent). (I am trying to make interface/program flow much like an
installation wizard where the user clicks next and further options open up
within the same window).
[quoted text, click to view]

AddThis Social Bookmark Button