Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / September 2003

Tip: Looking for answers? Try searching our database.

Designer changes form to class

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Carlos E. Hernandez - 20 Sep 2003 23:34 GMT
I created a form, that derives from a base form. Some of the new form
created with this base open perfectly in the desgner, but other shows as if
they were only clases, as if they dont have designer code. And the icn that
appears on the left hand of them looks as if they are classes, not forms. I
closed the visual designer and restarted my computer, and none solved the
problems.
What could the problem be?

Thanks.
Marc Bernard - 22 Sep 2003 17:55 GMT
> I created a form, that derives from a base form. Some of the new form
> created with this base open perfectly in the desgner, but other shows as if
[quoted text clipped - 3 lines]
> problems.
> What could the problem be?

I've found this trick to work.  In this line:

public class MyForm : MyBaseForm

cut and paste the word MyBaseForm.

Marc
Christian Boult - 29 Sep 2003 21:48 GMT
Open up the following file :
[Your project directory]\[Your project name].csproj
Find an entry for the file that contains you form, it should look something
like :
               <File
                   RelPath = "YourFormFile.cs"
                   SubType = "Code"
                   BuildAction = "Compile"/>

Change the SubType from "Code" to "Form".
Save the file.
And that's it.

Chris.

> I created a form, that derives from a base form. Some of the new form
> created with this base open perfectly in the desgner, but other shows as if
[quoted text clipped - 5 lines]
>
> Thanks.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.