Visual basic. Change default startup form in code, depending on value of variable
问题 I have been working on a Visual Basic project in Visual Studio and have encountered a problem. I understand that the Startup form property in the Application page of the Project Designer can be changed to a default form, however what I require is a way to do this through code in ApplicationEvents.vb depending on the value of a variable within application settings. The goal is that if a user completes a form then a value is assigned to a variable, e.g. variable username = "xxx". If this value