Click here to Skip to main content
14,663,788 members
Home » Discussions » C#
   

C#

 
QuestionWinforms Inherited form - Resources Pin
MarkB12327-Aug-20 1:19
MemberMarkB12327-Aug-20 1:19 
AnswerRe: Winforms Inherited form - Resources Pin
GenJerDan27-Aug-20 1:50
MemberGenJerDan27-Aug-20 1:50 
GeneralRe: Winforms Inherited form - Resources Pin
MarkB12327-Aug-20 1:51
MemberMarkB12327-Aug-20 1:51 
GeneralRe: Winforms Inherited form - Resources Pin
MarkB12327-Aug-20 2:41
MemberMarkB12327-Aug-20 2:41 
AnswerRe: Winforms Inherited form - Resources Pin
OriginalGriff27-Aug-20 2:42
mveOriginalGriff27-Aug-20 2:42 
GeneralRe: Winforms Inherited form - Resources Pin
MarkB12327-Aug-20 2:48
MemberMarkB12327-Aug-20 2:48 
GeneralRe: Winforms Inherited form - Resources Pin
OriginalGriff27-Aug-20 3:04
mveOriginalGriff27-Aug-20 3:04 
GeneralRe: Winforms Inherited form - Resources Pin
MarkB12327-Aug-20 3:53
MemberMarkB12327-Aug-20 3:53 
Running across multiple assemblies.
I think I may have got to the bottom it. I created a brand new inherited form from the base form and it behaved correctly. On comparing the designer.cs code of the new form with one of my original (problematic) inherited forms, it looks like a load of extra code has been inserted into the code behind the designers.
For Example:

//
// bsiAdd
//
this.bsiAdd.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("bsiAdd.ImageOptions.Image")));

This seems to have also pushed the images into the resx file. If I remove all the bits of code for about 50 menu items then remove the images manually from the resx file then the inheritance seems to work properly.
The only thing I can think of which might have caused this is I put a DevExpress SharedImageCollection onto my main window form and I'm thinking that the nature of this control has perhaps caused this.

Issue I have now is I have to apply my manual fix to several hundred forms!

modified 27-Aug-20 10:07am.

GeneralRe: Winforms Inherited form - Resources Pin
OriginalGriff27-Aug-20 4:22
mveOriginalGriff27-Aug-20 4:22 
GeneralRe: Winforms Inherited form - Resources Pin
MarkB12327-Aug-20 4:40
MemberMarkB12327-Aug-20 4:40 
AnswerRe: Winforms Inherited form - Resources Pin
Mycroft Holmes27-Aug-20 12:09
professionalMycroft Holmes27-Aug-20 12:09 
GeneralRe: Winforms Inherited form - Resources Pin
MarkB12327-Aug-20 22:29
MemberMarkB12327-Aug-20 22:29 
QuestionHow to perform find and replace with condition in C# and/or regex? Pin
Pallavi H Shinde26-Aug-20 7:55
MemberPallavi H Shinde26-Aug-20 7:55 
AnswerRe: How to perform find and replace with condition in C# and/or regex? Pin
OriginalGriff26-Aug-20 8:00
mveOriginalGriff26-Aug-20 8:00 
GeneralRe: How to perform find and replace with condition in C# and/or regex? Pin
Pallavi H Shinde26-Aug-20 8:16
MemberPallavi H Shinde26-Aug-20 8:16 
GeneralRe: How to perform find and replace with condition in C# and/or regex? Pin
Randor 26-Aug-20 9:41
professional Randor 26-Aug-20 9:41 
GeneralRe: How to perform find and replace with condition in C# and/or regex? Pin
Pallavi H Shinde26-Aug-20 21:11
MemberPallavi H Shinde26-Aug-20 21:11 
AnswerRe: How to perform find and replace with condition in C# and/or regex? Pin
Gerry Schmitz26-Aug-20 13:57
mveGerry Schmitz26-Aug-20 13:57 
GeneralRe: How to perform find and replace with condition in C# and/or regex? Pin
Pallavi H Shinde26-Aug-20 21:16
MemberPallavi H Shinde26-Aug-20 21:16 
GeneralRe: How to perform find and replace with condition in C# and/or regex? Pin
Gerry Schmitz27-Aug-20 3:44
mveGerry Schmitz27-Aug-20 3:44 
QuestionC# Pin
Member 1492367126-Aug-20 7:54
MemberMember 1492367126-Aug-20 7:54 
AnswerRe: C# Pin
OriginalGriff26-Aug-20 7:58
mveOriginalGriff26-Aug-20 7:58 
GeneralRe: C# Pin
Richard Andrew x6426-Aug-20 11:28
professionalRichard Andrew x6426-Aug-20 11:28 
AnswerRe: C# Pin
Gerry Schmitz27-Aug-20 3:54
mveGerry Schmitz27-Aug-20 3:54 
AnswerRe: C# Pin
Exoskeletor2-Sep-20 0:48
MemberExoskeletor2-Sep-20 0:48 

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.