Deleting a windows form

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Windows forms in VB.NET (VB.NET_at_discussions.microsoft.com)
Date: 07/05/04


Date: Mon, 5 Jul 2004 04:51:01 -0700

When deleting a Form from the Visual Basic .NET project, and this form is set as a startup form in the project properties, an error appears that SubMain can not be found.
It happens even if I change the name of the form (startup form). But it should change it there (project startup) as it change automaticly at the Code window.



Relevant Pages

  • Re: Changing a forms name
    ... So VB.NET should change it's name anyware, including in the project properies, like it does in the code window. ... If I were deleting the form, then I would agree with you that the user must re-enter a new form as for a startup form. ... > new startup class. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Closing a Hidden Form
    ... seconds using a timer and then hiding the form so that the routine ... Form1 is closed if it is your program's startup form. ... I have searched the project properties and cannot find such ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Newbie C# Question
    ... >> Copy the main method section from the first form into the second form. ... >> the project properties, you will have both forms listed as options. ... >> order to be the startup form, it must have a main method. ... >> DalePres ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Changing a forms name
    ... > startup form, I get an error that the ... > change it's name in the project properties as it changes it automaticly ... Herfried K. Wagner [MVP] ...
    (microsoft.public.dotnet.languages.vb)
  • Re: How to hide a form???
    ... Is the form set as startup form in the project properties? ... The default windows application project does not set any startup object. ...
    (microsoft.public.dotnet.framework.windowsforms)