H
Harry Simpson
I've got a LogOff menu item. I basically want to stop all processes like
the barcode reader and create a new instance of the Main form which inturn
creates the Logon form.
the code looks like this:
'Create the new frmMain instance
Dim Formmain As New frmMain
Formmain.Show()
'close the old instance
g_MainForm.Close()
g_MainForm = Nothing
When I do this it appears to work, since i'm at the Logon screen and the
scanner works but when I go the the main form, the old info is still there
like the old main form never went away. What's the trick to restarting an
app from itself.....or is this really even possible.
TIA
Harry
the barcode reader and create a new instance of the Main form which inturn
creates the Logon form.
the code looks like this:
'Create the new frmMain instance
Dim Formmain As New frmMain
Formmain.Show()
'close the old instance
g_MainForm.Close()
g_MainForm = Nothing
When I do this it appears to work, since i'm at the Logon screen and the
scanner works but when I go the the main form, the old info is still there
like the old main form never went away. What's the trick to restarting an
app from itself.....or is this really even possible.
TIA
Harry