   Partial classes creating their own forms? (C#)
  Essentially I have a main class...Quote:cFleurin.cspublic partial class cFleurin : Form{}Than I have other classes that provide additional functionality...Quote:cGraphics.cspublic partial class cFleurin{}Quote:cInput.cspublic partial class cFleurin{}Which compiles nicely, but the VS IDE shows this... >.<eg... each file now has an associated form with it, since all my partial classes interface with form, and VS is giving them all their own form instead of just sharing the same. >.<Any way I can tell it to use the same form for all of them?   
  Did you try dragging the other files under the "main" partial class entry? I don't have VS here so I can't try it myself.   ;Quote:Original post by kSquaredDid you try dragging the other files under the "main" partial class entry? I don't have VS here so I can't try it myself.If you mean like editing out the content of the file and appending onto the main.cs file, than no, but thats really not what I'm after.I did however, try dragging the files from the VS IDE ontop of one another, I got some file conflict warning, and didn't succesed in having them sub files of the main file. =/;  I'm not sure how to do this from the IDE itself, but you can easily edit your *.csproj file.  All you have to do is open it up with Notepad and find the line that looks like this:<Compile Include="cGraphics.cs" />Just change this line to look like:<Compile Include="cGraphics.cs"><DependentUpon>cFleurin.cs</DependentUpon></Compile>Now repeat the process with cInput.cs.  If you do this while the IDE is open, it will let you know that the *.csproj file has been edited outside the environment, and it will ask you if you wish to reload it.  Say yes, and you'll see that the two files now hang from cFleurin.cs.This method isn't the easiest, but it gives you a peek inside your project files (you can read the solution files just the same!) and kind of give you an inside look at what all the environment uses.  This, I think at least, is pretty cool.HTH!   