quick question.

  • Thread starter Thread starter eva
  • Start date Start date
E

eva

How do i navigate between forms in vb.net??

in the old vb i used to do form2.show, but this doesnt
seem to work.
 
Hi Jody,

thx for your help. It worked a treat.
Do i always need to declare a new instance of the form to
display it via the show method?

-----Original Message-----
dim frm2 as new frm2

frm2.show

Cheers

--
Jody
[MCSD.Net]
How do i navigate between forms in vb.net??

in the old vb i used to do form2.show, but this doesnt
seem to work.


.
 
Eva

most things in .net are objects now which need to be instanced to be able to
reference them in any way. the older versions of VB and VBA etc kind of
break those rules to make things easier to work with.

It does take a little getting used to but after a very short time you will
start to prefer the OO style programming as it makes more sense......

Hope you enjoy.... just remember, don't try and reference any forms
directly from modules or external functions pass the new values back or pass
them as parameters and you shouldn't have any problems

Cheers

--
Jody
[MCSD.Net]

Eva said:
Hi Jody,

thx for your help. It worked a treat.
Do i always need to declare a new instance of the form to
display it via the show method?

-----Original Message-----
dim frm2 as new frm2

frm2.show

Cheers

--
Jody
[MCSD.Net]
How do i navigate between forms in vb.net??

in the old vb i used to do form2.show, but this doesnt
seem to work.


.
 
Back
Top