show new form

  • Thread starter Thread starter jlab13
  • Start date Start date
J

jlab13

i was sure that in vb6 the syntax to open a form via a button was
"form.show". I'm doing that in Vis Studio 2005 and it doesn't seem to
do anything. Any suggestions?

Thanks!!!
 
jlab13 said:
i was sure that in vb6 the syntax to open a form via a button was
"form.show". I'm doing that in Vis Studio 2005 and it doesn't seem to
do anything. Any suggestions?

It should work in VS 2005.

However, you can explicitly instantiate the form too:

\\\
Dim f As New FooForm()
f.Show()
///
 
i was sure that in vb6 the syntax to open a form via a button was
"form.show". I'm doing that in Vis Studio 2005 and it doesn't seem to
do anything. Any suggestions?

Firstly, you must not approach your projects in VB.Net as you did with
VB6. Even though they share the same name and a similar syntax,
writing programs in VB.Net is very different from writing them in
VB6. You must think of VB.net as a totally new language.

Secondly, to show a form, you must first declare an instance of that
form and then call show:

Dim frm As New Form1
frm.Show
 
i was sure that in vb6 the syntax to open a form via a button was
"form.show". I'm doing that in Vis Studio 2005 and it doesn't seem to
do anything. Any suggestions?

Thanks!!!

The .Show method is the way to show a form in VS2005. You will need to
post more of your code, there is something else you are not doing.
 
The .Show method is the way to show a form in VS2005. You will need to
post more of your code, there is something else you are not doing.

Thanks to all. Got it goin now with these tips. Trying to fly through
my VS book to learn changes from vb6 so pardon some of the dumb
questions!

Thanks again!
 
go back to vb6?

shit just worked back then; now we're stuck with bloatware

UNNECESSARY CHANGE IS NOT SEXY
UNNECESSARY CHANGE IS NOT ALLOWED
UNNECESSARY CHANGE IS NOT NECCESSARY
 
Chris

shut the **** up and stop making excuses for Microsoft

Microsoft killed the worlds most popular langauge

they can **** off and change it back to be more like vb6


eat a mother ****ing dick you goddamn NooB
 
hey bud I can tell you right now-- it's just not worth the effort

vb6 works on every operating system; .net is bloatware

-Aaron
 
Back
Top