phreaky Posted July 26, 2004 Posted July 26, 2004 Hello, I have a problem when I change the name of a Windows Form (VB), I changed its name and when I try to run it gives me a compilation error, I can continue and...in fact it still works but it says: 'Sub Main' was not found in 'Hardvards.Form1'. and in fact, if I continue it still works and run perfectly, but I would like to change my code so it can work properly, who I am supposed to change the name of my form on the main too?, My Form1 now it's called "Cliente_Form", so in the main it should be Hardvards.Cliente_Form...but where do I find the "main" to change it? :confused: Quote tHe pHrEaKy
Administrators PlausiblyDamp Posted July 26, 2004 Administrators Posted July 26, 2004 If you bring up the project's properties there should be an option for Startup Object - make sure this is also set to the new form's name. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
tekgod01 Posted July 26, 2004 Posted July 26, 2004 Double-click on the error line at the bottom of the screen. A new window will pop-up asking you which form the name is supposed to be. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.