partial classes and designer properties

  • Thread starter Thread starter Sebastian Sylvan
  • Start date Start date
S

Sebastian Sylvan

Hey. I have two questions.

First of all I'm using the Visual C# Express Beta.

When you create a windows application it will automatically split the
main form into two files using partial classes.
In the solution explorer this is seen hierarchially as somthing like
- MainForm.cs
-> MainForm.Designer.cs

Now I have an application where I wanted all my D3D rendering in a
separate file too so I just created a new file called
MainForm.Rendering.cs and put "partial class MainForm" at the top and
everything worked. BUT it doesn't show up in the solution explorer the
same way MainForm.Designer.cs does (it's below MainForm.cs as if it were
a separate class) and when I double click it I end up in the designer
for a new form window (not the same as the form I get if I double click
MainForm.cs).
What is the reason for this, and how do I fix it?
I want all my parital classes files to be underneath MainForm.cs in a
hierarchy and I don't want a partial class to get its "own" designer.

Also in the last VS.Net you could just put in a public property on your
Form and it would show up in the Designer, this is no longer the case.
How do I make the Designer find my public properties so I can edit them
in the Properties Explorer?


/S
 
Back
Top