Form Switching

  • Thread starter Thread starter Stephen Keen
  • Start date Start date
S

Stephen Keen

Ok I am a beginner, In VB prior to VB.Net I could create two forms and
switch between them very easily. Now I cannot seem to figure out how to do
it. Could someone show me how. This is not using mididocuments, but could
I guess. But why cant it stay simple?
 
i'm also learning this stuff but i found this


Dim MyNewForm as New Form2
myNewForm.Visible=True
 
Ok I am a beginner, In VB prior to VB.Net I could create two forms and
switch between them very easily. Now I cannot seem to figure out how to do
it. Could someone show me how. This is not using mididocuments, but could
I guess. But why cant it stay simple?

Probably because the behaviour in past could become very weird, however when
you start using them both in the same time you probably do not want them
both on screen, go with making them visible and hide them because that is in
fact what you than want. Than you can use by instance the visible change
event to reach your goals.

However there are so much ways to go now that this is only for this
situation.

When you want a dialogsituation where only the main form is active and you
sometimes want to use the dialog, than you can the best use the
dialogsituation.
dim frm as new form2
frm2.showdialog
myresult = frm.whateverfield
frm2.dispose

I hope this helps?

Cor
 
Back
Top