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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -