Click here to Skip to main content
15,908,264 members
Home / Discussions / C#
   

C#

 
AnswerRe: ASN1 .NET Frameworks Pin
Bernhard Hiller3-Mar-13 20:20
Bernhard Hiller3-Mar-13 20:20 
GeneralRe: ASN1 .NET Frameworks Pin
Oleg Shilo3-Mar-13 23:01
Oleg Shilo3-Mar-13 23:01 
QuestionC# question Pin
Member 98802103-Mar-13 14:45
Member 98802103-Mar-13 14:45 
AnswerRe: C# question Pin
Mycroft Holmes3-Mar-13 15:10
professionalMycroft Holmes3-Mar-13 15:10 
AnswerRe: C# question Pin
Pete O'Hanlon3-Mar-13 23:19
mvePete O'Hanlon3-Mar-13 23:19 
GeneralRe: C# question Pin
Member 98802104-Mar-13 4:20
Member 98802104-Mar-13 4:20 
GeneralRe: C# question Pin
Pete O'Hanlon4-Mar-13 4:25
mvePete O'Hanlon4-Mar-13 4:25 
AnswerRe: C# question Pin
OriginalGriff4-Mar-13 0:04
mveOriginalGriff4-Mar-13 0:04 
QuestionOffline ActiveX Control for Internet Explorer Pin
NevilPrajapati3-Mar-13 8:16
NevilPrajapati3-Mar-13 8:16 
AnswerRe: Offline ActiveX Control for Internet Explorer Pin
NotPolitcallyCorrect3-Mar-13 9:15
NotPolitcallyCorrect3-Mar-13 9:15 
GeneralRe: Offline ActiveX Control for Internet Explorer Pin
NevilPrajapati3-Mar-13 18:09
NevilPrajapati3-Mar-13 18:09 
SuggestionRe: Offline ActiveX Control for Internet Explorer Pin
Richard MacCutchan3-Mar-13 22:11
mveRichard MacCutchan3-Mar-13 22:11 
GeneralRe: Offline ActiveX Control for Internet Explorer Pin
NotPolitcallyCorrect4-Mar-13 4:23
NotPolitcallyCorrect4-Mar-13 4:23 
AnswerRe: Offline ActiveX Control for Internet Explorer Pin
Shameel4-Mar-13 4:12
professionalShameel4-Mar-13 4:12 
Questionspeech2text. Pin
depak gupta2-Mar-13 19:23
depak gupta2-Mar-13 19:23 
AnswerRe: speech2text. Pin
Peter_in_27802-Mar-13 19:31
professionalPeter_in_27802-Mar-13 19:31 
AnswerRe: speech2text. Pin
Abhinav S3-Mar-13 4:58
Abhinav S3-Mar-13 4:58 
AnswerRe: speech2text. Pin
Thomas Daniels3-Mar-13 6:08
mentorThomas Daniels3-Mar-13 6:08 
QuestionPartial class: is this a bug? Pin
Septimus Hedgehog2-Mar-13 6:52
Septimus Hedgehog2-Mar-13 6:52 
AnswerRe: Partial class: is this a bug? Pin
DaveyM692-Mar-13 7:56
professionalDaveyM692-Mar-13 7:56 
AnswerRe: Partial class: is this a bug? Pin
Dave Kreskowiak2-Mar-13 8:24
mveDave Kreskowiak2-Mar-13 8:24 
GeneralRe: Partial class: is this a bug? Pin
Septimus Hedgehog2-Mar-13 9:34
Septimus Hedgehog2-Mar-13 9:34 
AnswerRe: Partial class: is this a bug? PinPopular
Alan N2-Mar-13 11:19
Alan N2-Mar-13 11:19 
The workaround.

In VS solution explorer the form.designer.cs file is shown as nested within form.cs and I suspect that the partial class that you have added is not. Fixing the project file to nest the new file will also fix the problem with the event handler methods.
XML
<Compile Include="Form1.cs">
  <SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
  <DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="Form1.Extras.cs">
  <DependentUpon>Form1.cs</DependentUpon>
  <SubType>Form</SubType>
</Compile>
<Compile Include="Form1.MoreStuff.cs">
  <SubType>Form</SubType>
</Compile>

In this project file fragment the entries for Form1.cs, Form1.designer.cs and Form1.MoreStuff.cs are exactly as created by VS but the entry for Form1.Extras.cs has been modified to establish the correct DependentUpon relationship to Form1.cs. Event handlers within Form1.Extras.cs will now be found by VS whereas any that were moved into Form1.MoreStuff.cs will not.

Alan.
GeneralRe: Partial class: is this a bug? Pin
Septimus Hedgehog3-Mar-13 7:49
Septimus Hedgehog3-Mar-13 7:49 
GeneralRe: Partial class: is this a bug? Pin
Septimus Hedgehog6-Mar-13 5:53
Septimus Hedgehog6-Mar-13 5:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.