CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2006
    Posts
    6

    Question 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

  2. #2
    Join Date
    Jan 2006
    Posts
    6

    Resolved 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
  •  





Click Here to Expand Forum to Full Width

Featured