Click here to Skip to main content
15,917,481 members
Home / Discussions / C#
   

C#

 
QuestionHow to load a Form to a Panel? Pin
pubududilena24-Jun-05 19:17
pubududilena24-Jun-05 19:17 
AnswerRe: How to load a Form to a Panel? Pin
Lars-Inge Tønnessen25-Jun-05 12:51
Lars-Inge Tønnessen25-Jun-05 12:51 
AnswerRe: How to load a Form to a Panel? Pin
SBendBuckeye8-Jul-05 11:00
SBendBuckeye8-Jul-05 11:00 
GeneralHelp - I ‘m getting a .NET installation error (urgent) Pin
Member 192995024-Jun-05 13:22
Member 192995024-Jun-05 13:22 
GeneralCustom Event Firing Once per Instance Pin
SBendBuckeye24-Jun-05 10:20
SBendBuckeye24-Jun-05 10:20 
GeneralRe: Custom Event Firing Once per Instance Pin
Adam Goossens24-Jun-05 21:49
Adam Goossens24-Jun-05 21:49 
GeneralRe: Custom Event Firing Once per Instance Pin
SBendBuckeye25-Jun-05 7:35
SBendBuckeye25-Jun-05 7:35 
GeneralRe: Custom Event Firing Once per Instance Pin
Adam Goossens25-Jun-05 19:04
Adam Goossens25-Jun-05 19:04 
Hi,


As an example, if I have 5 standard comboboxes on a form and I write code to trap CombBox3's click event, I only get one event firing, right?


Correct. You clicked ComboBox3, so ComboBox3's Click event fired - you only wired one method up to the ComboBox3.Click event.

If combobox3 was cleared, combobox3 is the object passed into the event every time it fires (I pass it as a Sender object into the Custom event). If I cannot restrict the event to only the object that actually raised it, is there any way to account for it so I don't run the same code over and over for no reason?

There's one thing that's confusing me: what do you mean by "restrict the event to only the object that raised it"? When you raise the event in your custom subclass, you pass in the current instance that raised the event ("this") as the Sender argument to your event handler. Or do you want to ensure that only one method can attach itself to an event?
GeneralRe: Custom Event Firing Once per Instance Pin
Anonymous30-Jun-05 6:17
Anonymous30-Jun-05 6:17 
GeneralRe: Custom Event Firing Once per Instance Pin
Adam Goossens30-Jun-05 16:25
Adam Goossens30-Jun-05 16:25 
GeneralRe: Custom Event Firing Once per Instance Pin
SBendBuckeye8-Jul-05 10:51
SBendBuckeye8-Jul-05 10:51 
GeneralRe: Custom Event Firing Once per Instance Pin
Adam Goossens8-Jul-05 17:01
Adam Goossens8-Jul-05 17:01 
GeneralTabcontrol Pin
Tom Wright24-Jun-05 8:17
Tom Wright24-Jun-05 8:17 
GeneralRe: Tabcontrol Pin
Luis Alonso Ramos24-Jun-05 13:20
Luis Alonso Ramos24-Jun-05 13:20 
GeneralRe: Tabcontrol Pin
Tom Wright26-Jun-05 15:49
Tom Wright26-Jun-05 15:49 
GeneralRe: Tabcontrol Pin
Luis Alonso Ramos27-Jun-05 5:17
Luis Alonso Ramos27-Jun-05 5:17 
GeneralClass Generator Pin
Leyu24-Jun-05 6:22
Leyu24-Jun-05 6:22 
GeneralRe: Class Generator Pin
Steve Maier24-Jun-05 8:40
professionalSteve Maier24-Jun-05 8:40 
GeneralRe: Class Generator Pin
ChesterPoindexter24-Jun-05 13:36
professionalChesterPoindexter24-Jun-05 13:36 
Generalassignment to controls ( Label) Pin
pbsamson24-Jun-05 5:49
pbsamson24-Jun-05 5:49 
GeneralRe: assignment to controls ( Label) Pin
Marc Clifton24-Jun-05 6:20
mvaMarc Clifton24-Jun-05 6:20 
GeneralRe: assignment to controls ( Label) Pin
pbsamson24-Jun-05 6:27
pbsamson24-Jun-05 6:27 
GeneralLine Width Pin
Leslie Sanford24-Jun-05 5:43
Leslie Sanford24-Jun-05 5:43 
GeneralRe: Line Width Pin
Judah Gabriel Himango24-Jun-05 5:56
sponsorJudah Gabriel Himango24-Jun-05 5:56 
QuestionHow to use windows ping utility in C#? Pin
Mohamed El Gohary24-Jun-05 5:39
Mohamed El Gohary24-Jun-05 5:39 

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.