Click here to Skip to main content
15,892,674 members
Home / Discussions / C#
   

C#

 
GeneralRe: Reading from serial port Pin
alfie.max1524-Oct-13 19:12
alfie.max1524-Oct-13 19:12 
GeneralRe: Reading from serial port Pin
OriginalGriff24-Oct-13 21:50
mveOriginalGriff24-Oct-13 21:50 
GeneralRe: Reading from serial port Pin
alfie.max1525-Oct-13 1:30
alfie.max1525-Oct-13 1:30 
AnswerRe: Reading from serial port Pin
PIEBALDconsult24-Oct-13 17:32
mvePIEBALDconsult24-Oct-13 17:32 
QuestionI need help with control inheritance Pin
deebow24-Oct-13 4:39
deebow24-Oct-13 4:39 
AnswerRe: I need help with control inheritance Pin
OriginalGriff24-Oct-13 5:02
mveOriginalGriff24-Oct-13 5:02 
GeneralRe: I need help with control inheritance Pin
BillWoodruff24-Oct-13 6:07
professionalBillWoodruff24-Oct-13 6:07 
AnswerRe: I need help with control inheritance Pin
BillWoodruff24-Oct-13 6:02
professionalBillWoodruff24-Oct-13 6:02 
I find what you describe pretty strange; what I would expect to see is:

1. once you have put an instance of the UserControl on the "base form:" changing the design-time appearance of the UserControl would not update the appearance of the instance of the UserControl on the base form. When you create an instance of a Form, or UserControl, you have broken the links between attributes.

However, if you go back and add an EventHandler to your UserControl for an Event like 'Click, I'd expect that Event to fire in the instance of the UserControl added to a Form.

Sorry to say that I can't explain this "dis-connect."

2. however, changing the appearance of the UserControl instance on the base form should change the appearance of the (now locked) UserControl instance that appears in the Forms that inherit from the base form ... as soon as you recompile.

It might help if you describe what Forms are launched when your application starts. Obviously you cannot launch a Form that inherits from a "base form" from within the "base form:" you'll get a StackOverflow error.

You are not the only one to find strange things happen when you have a UserControl on a Form and other Forms inherit from that Form. I use Visual Studio 2012, and compile against FrameWork 4.5: if I put an instance of a UserControl on a Form, and have two other Forms inherit from that Form: the UserControl instance on the first Form (seen at design time) disappears, and doesn't appear in the PropertyGrid Browser for that Form ! But, if instances of all three Forms are created and shown at run-time by a fourth Form: the UserControl appears on all of them.

It would seem logical that any change to any aspect of a UserControl, BackColor, or whatever, would propagate through all instances of the UserControl on various Forms the moment you re-compile.

Google CEO, Erich Schmidt: "I keep asking for a product called Serendipity. This product would have access to everything ever written or recorded, know everything the user ever worked on and saved to his or her personal hard drive, and know a whole lot about the user's tastes, friends and predilections." 2004, USA Today interview

GeneralRe: I need help with control inheritance Pin
OriginalGriff24-Oct-13 6:25
mveOriginalGriff24-Oct-13 6:25 
GeneralRe: I need help with control inheritance Pin
deebow24-Oct-13 6:44
deebow24-Oct-13 6:44 
GeneralRe: I need help with control inheritance Pin
BillWoodruff24-Oct-13 16:56
professionalBillWoodruff24-Oct-13 16:56 
Questionhow to create stetmen foreach gridcontrol devexpress Pin
Member 1027082523-Oct-13 23:19
Member 1027082523-Oct-13 23:19 
QuestionRe: how to create stetmen foreach gridcontrol devexpress Pin
Richard MacCutchan23-Oct-13 23:27
mveRichard MacCutchan23-Oct-13 23:27 
AnswerRe: how to create stetmen foreach gridcontrol devexpress Pin
OriginalGriff23-Oct-13 23:54
mveOriginalGriff23-Oct-13 23:54 
AnswerRe: how to create stetmen foreach gridcontrol devexpress Pin
Eddy Vluggen24-Oct-13 0:30
professionalEddy Vluggen24-Oct-13 0:30 
QuestionRoulette wheel selection Pin
Member 995886723-Oct-13 17:16
Member 995886723-Oct-13 17:16 
AnswerRe: Roulette wheel selection Pin
Abhinav S23-Oct-13 20:24
Abhinav S23-Oct-13 20:24 
GeneralRe: Roulette wheel selection Pin
Dave Kreskowiak24-Oct-13 3:21
mveDave Kreskowiak24-Oct-13 3:21 
GeneralRe: Roulette wheel selection Pin
Abhinav S24-Oct-13 3:51
Abhinav S24-Oct-13 3:51 
GeneralRe: Roulette wheel selection Pin
Pete O'Hanlon24-Oct-13 3:53
mvePete O'Hanlon24-Oct-13 3:53 
GeneralRe: Roulette wheel selection Pin
Dave Kreskowiak24-Oct-13 6:32
mveDave Kreskowiak24-Oct-13 6:32 
GeneralBase Class Pin
N8tiv23-Oct-13 12:57
N8tiv23-Oct-13 12:57 
AnswerRe: Base Class Pin
Abhinav S23-Oct-13 18:52
Abhinav S23-Oct-13 18:52 
GeneralRe: Base Class Pin
Bernhard Hiller23-Oct-13 20:25
Bernhard Hiller23-Oct-13 20:25 
GeneralRe: Base Class Pin
N8tiv23-Oct-13 20:34
N8tiv23-Oct-13 20:34 

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.