Where i have to put the sub main??

S

sebastianochoa

Hello, i need in a VB.Net application that when i execute
it open two form at the seim time. I think that is with a
sub main and then in it, use form1.show and then
form2.show, but the problem is, i don't where put the sub
main.
Thank you.
Sebastián Ochoa.
 
W

William Ryan

Create a Module and put it in there or set one of the forms as your Startup
object...
in message Hello, i need in a VB.Net application that when i execute
it open two form at the seim time. I think that is with a
sub main and then in it, use form1.show and then
form2.show, but the problem is, i don't where put the sub
main.
Thank you.
Sebastián Ochoa.
 
P

Prasanna Dsouza

Hi
if your VB.Net Application does not contain a Main Function it may have a
Form that is set as a startup object. (check the Startup Object of your
project properties for the form that loads at start).
It may be simply a case of a second form being called in your first form.
Check the Form Load and Initalize events if a second form is being
instantiated and shown

Prasanna

in message Hello, i need in a VB.Net application that when i execute
it open two form at the seim time. I think that is with a
sub main and then in it, use form1.show and then
form2.show, but the problem is, i don't where put the sub
main.
Thank you.
Sebastián Ochoa.
 

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