vb.net - How to properly close form1 after showing form2 -
i have script editor i'm using code through object model of software company uses. has login form make sure able access system , main form pull script object , edit using scintillanet.
the issue having when pass object main form , leave login form open runs smoothly want close login form after main form open. when stops after opening main form.
here sample of code. can see have commented out line me.close() seems issue.
' close form, show main form , pass m3 object dim f formmain = new formmain ' pass m3 object next form f.m3system = m3system f.show() 'me.close()
any awesome!!!
this built-in feature vb.net. use project + properties, application tab.
change shutdown mode setting "when last form closes".
Comments
Post a Comment