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.