dumb question

W

Wayne Dixon

Ok, I know this is going to sound like a really stupid
quesiton, but does anybody know how to load a form from a
click event? I've tried my standard VB6 code tricks, of
course to no avail. Thanks in advance.
 
B

Bernie Yaeger

Hi Wayne,

Simply call the .vb form name:
Dim newmwin As New vendorinvoicing

newmwin.Show()

HTH,

Bernie Yaeger
 
A

Armin Zingler

Wayne Dixon said:
Ok, I know this is going to sound like a really stupid
quesiton, but does anybody know how to load a form from a
click event? I've tried my standard VB6 code tricks, of
course to no avail. Thanks in advance.

Do you know why your tricks worked in VB6?
Which tricks? :)
 
O

One Handed Man [ OHM# ]

Yes of course its Dumb, how could you possibly make yourself look silly by
asking such a basic question. Really, do some people never learn anything
new ?

:) ( Only kidding, I ask questions like this 'Every Day' )

//
Dim MyForm As New Form
MyForm.Show()
\\


Regards - OHM




Wayne said:
Ok, I know this is going to sound like a really stupid
quesiton, but does anybody know how to load a form from a
click event? I've tried my standard VB6 code tricks, of
course to no avail. Thanks in advance.

Regards - OHM# OneHandedMan{at}BTInternet{dot}com
 
C

Cor

Hi Wayne,

In addition to the others,

Have a look at the
\\\
frm as new form2
frm.showdialog
///
Also because that is often what people want in this situation.

Cor
 
H

Herfried K. Wagner [MVP]

* "Wayne Dixon said:
Ok, I know this is going to sound like a really stupid
quesiton, but does anybody know how to load a form from a
click event? I've tried my standard VB6 code tricks, of
course to no avail. Thanks in advance.

\\\
Call (New FooForm()).ShowDialog()
///

SCNR
 

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

Top