|
-
April 12th, 2006, 04:37 PM
#1
linking controls across partial class files
I have a C# studio 2005 GUI app that has multiple tabs with multiple controls on each tab. To make the source files more manageable I split the functions associated with each tab across source files using the partial class keywords.
The linkage between the IDE/Control/Methods do not work anymore.
i.e. Before splitting into partial classes if I clicked on a button in the form the IDE would put the focus at the code for that button.
Does anyone know if this liknkage can be restored using the partial class across multiple files? If so, how is this done?
Regards,
AAL
Last edited by alevine; April 12th, 2006 at 04:39 PM.
Reason: typos
-
April 21st, 2006, 09:04 AM
#2
Re: linking controls across partial class files
Never mind I aswered my own question, with some hints from other messages on the MSDN board.
I modified the ACC.csproj file for each of the partial class file from:
<Compile Include="frmAcc.Dev.cs">
<SubType>Form</SubType>
</Compile>
TO:
<Compile Include="frmAcc.Dev.cs">
<DependentUpon>frmACC.cs</DependentUpon>
</Compile>
This also placed the tabbed files in the solution explorer under the main file frmACC.cs
Hopefully this stays put as the .csproj file is generated by the IDE.
Thanks to anyone who took the time to read this post.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|