Hi Doug, I use the following code in the AppMan.vb ShowLoginAndInitMainForm()
#If
DEBUG Then '-- Use a predefine login name while testing the application in debug mode. Login.SetLoggedInUser("Administrator", "admin" & DateTime.Now.Day.ToString(), "") ' Login.SetLoggedInUser("Angel", "jefecito", "") ' Login.SetLoggedInUser("Jeannette", "abc123", "")#Else
'-- Show the login form and authenticate the user e.ShowMainForm = Login.ShowLoginAndAuthUser(True)#End
If
As you can see, while in DEBUG when running the application it will login the Administrator user or any other users I have to test their roles, else it will show the Login form. Maybe you are looking to do the same.