By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,830 Members | 1,722 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,830 IT Pros & Developers. It's quick & easy.

partial classes and designer properties

P: n/a
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
Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Please post VS2005 Beta questions to microsoft.private.whidbey.csharp.ide
Following tells you how to access the beta NG's. and how you can report
issues:
http://communities.microsoft.com/new...idbey&slcid=us

Willy.

"Sebastian Sylvan" <sy****@dtek.chalmers.se> wrote in message
news:Rc*********************@newsc.telia.net...
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

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.