Keith_McCloy
Member
- Joined
- Dec 13, 2011
- Messages
- 6
- Programming Experience
- 10+
Hullo,
Re-installed Visual Basic Net. Tried to create a VB Windows Forms application using the default Net 3.1. It required a Main() Sub, contrary to what the Microsoft documentation says. I have never had to do this, so I tried to create a new application using Net 5.0. The Form1 displayed. Ran the application and the form displayed as it should. Tried to change the name of the form to MainForm in the Solution Explorer and when asked said yes to change all references to Form1. Ran the application again and got the message, "The application is in Break Mode", with the message, Exception Unhandled: System.SArgumentNullExceptionroperty MainForm cannot be set to nothing.Arg_ParamName_Name.
I would appreciate advice on what I am doing wrong.
Re-installed Visual Basic Net. Tried to create a VB Windows Forms application using the default Net 3.1. It required a Main() Sub, contrary to what the Microsoft documentation says. I have never had to do this, so I tried to create a new application using Net 5.0. The Form1 displayed. Ran the application and the form displayed as it should. Tried to change the name of the form to MainForm in the Solution Explorer and when asked said yes to change all references to Form1. Ran the application again and got the message, "The application is in Break Mode", with the message, Exception Unhandled: System.SArgumentNullExceptionroperty MainForm cannot be set to nothing.Arg_ParamName_Name.
I would appreciate advice on what I am doing wrong.