N
Narayan
Hi
Has anyone actually tried out the code in the link given below.
It doesn't work for me.
\\\
Dim f2 as Form2
f2 = New Form2()
f2.Show()
Me.Close()
///
I do not think the above code can actually persistently display a form. The
variable f2 has local scope. So once the containing procedure is exited, f2
will be garbage collected. Had it been a case of ShowDialog(), it may have
worked. But here that is not the case.
Regards
Narayan
The _hole_ application... LOL.
http://www.google.de/groups?selm=u#[email protected]
Has anyone actually tried out the code in the link given below.
It doesn't work for me.
\\\
Dim f2 as Form2
f2 = New Form2()
f2.Show()
Me.Close()
///
I do not think the above code can actually persistently display a form. The
variable f2 has local scope. So once the containing procedure is exited, f2
will be garbage collected. Had it been a case of ShowDialog(), it may have
worked. But here that is not the case.
Regards
Narayan
Yavuz Bogazci said:In VB6 i switched between two forms on this way:
FORM1:
sub onButton_Click
form2.show
me.close
end sub
FORM2:
sub onButton_Click
form1.show
me.close
end sub
How can i realize this with VB.Net? When i want to show
form2 with
form2.show()
me.close()
the hole Application terminates! What must i do?
The _hole_ application... LOL.
http://www.google.de/groups?selm=u#[email protected]