Where i have to put the sub main??

  • Thread starter Thread starter sebastianochoa
  • Start date Start date
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.
 
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.
 
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.
 
Back
Top