S
Shadowboxer
I'm having a problem, in vb6 there was a way to stall the application and
wait for user input from a form.
Below I have attached the code of my sub main.
I hope someone has the ability to fix this.
right now the form blinks in and out of existance as fast as the project
compiles, so that won't do.
Module codeStartup
Sub main()
Dim nFrmLogin As frmLogin
nFrmLogin = New frmLogin
nFrmLogin.ShowInTaskbar() = False
nFrmLogin.Show()
'must wait here for user input
Dim fUsername As String, fPassword As String, ftcp As String
fUsername = nFrmLogin.txtUsername.Text
fPassword = nFrmLogin.txtPassword.Text
ftcp = nFrmLogin.txtIP.Text
'
Dim nFrmController As New frmController
nFrmController.Show() 'main application form
'right now the code will exit here.
End Sub
End Module
wait for user input from a form.
Below I have attached the code of my sub main.
I hope someone has the ability to fix this.
right now the form blinks in and out of existance as fast as the project
compiles, so that won't do.
Module codeStartup
Sub main()
Dim nFrmLogin As frmLogin
nFrmLogin = New frmLogin
nFrmLogin.ShowInTaskbar() = False
nFrmLogin.Show()
'must wait here for user input
Dim fUsername As String, fPassword As String, ftcp As String
fUsername = nFrmLogin.txtUsername.Text
fPassword = nFrmLogin.txtPassword.Text
ftcp = nFrmLogin.txtIP.Text
'
Dim nFrmController As New frmController
nFrmController.Show() 'main application form
'right now the code will exit here.
End Sub
End Module