form2.show 1

  • Thread starter Thread starter Will
  • Start date Start date
W

Will

Hey friends,

in vb 6.0, if you wanted to display a form on top of
another and, in a way lock the screen on the form, you use

form2.show 1

and placing the '1' after the show, will lock the screen
on form2.

how is it done in vb.net ??

i hope you understood my question.

Thanx
..
 
Will said:
Hey friends,

in vb 6.0, if you wanted to display a form on top of
another and, in a way lock the screen on the form,

You mean a "modal" Form.
you use

form2.show 1

I don't know 1, I only know vbModal...
and placing the '1' after the show, will lock the screen
on form2.

how is it done in vb.net ??

i hope you understood my question.

Yes. :-)

Use
form2.showdialog

I assume form2 is a variable name, it's type is Form2 and you assigned a
Form instance:

dim form2 as form2

form2 = new form2
form2.showdialog
 
* "Will said:
in vb 6.0, if you wanted to display a form on top of
another and, in a way lock the screen on the form, you use

form2.show 1

I used to write 'vbModal' in VB6 because it was more descriptive (and
easier to understand for the upgrade wizard).
and placing the '1' after the show, will lock the screen
on form2.

\\\
Dim f As New Form2()
f.ShowDialog()
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top