Click here to Skip to main content
15,922,696 members
Home / Discussions / C#
   

C#

 
QuestionWho am I? Detecting the "current" control for a handler [modified] Pin
JoeRip26-Sep-07 2:31
JoeRip26-Sep-07 2:31 
AnswerRe: Who am I? Detecting the "current" control for a handler Pin
Malcolm Smart26-Sep-07 2:35
Malcolm Smart26-Sep-07 2:35 
GeneralRe: Who am I? Detecting the "current" control for a handler Pin
JoeRip26-Sep-07 2:41
JoeRip26-Sep-07 2:41 
AnswerRe: Who am I? Detecting the "current" control for a handler Pin
TJoe26-Sep-07 2:48
TJoe26-Sep-07 2:48 
GeneralRe: Who am I? Detecting the "current" control for a handler Pin
JoeRip26-Sep-07 2:52
JoeRip26-Sep-07 2:52 
GeneralRe: Who am I? Detecting the "current" control for a handler Pin
TJoe26-Sep-07 3:01
TJoe26-Sep-07 3:01 
GeneralRe: Who am I? Detecting the "current" control for a handler Pin
JoeRip26-Sep-07 3:07
JoeRip26-Sep-07 3:07 
GeneralRe: Who am I? Detecting the "current" control for a handler Pin
TJoe26-Sep-07 3:16
TJoe26-Sep-07 3:16 
I would need to see a sample of this happening. What I'm saying is that if the SelectedIndexChanged is being fired for the ComboBox2 (because of a DataSource change or any other reason) then the sender will always be ComboBox2. This is hard-coded into the .Net framework.

I think there is something else wrong in your code. The sender will always be the ComboBox that had it's selected index changed (regardless of whether the user clicked in the first ComboBox or not). So there must be a problem with how the events are hooked up or with something else being done before the event is fired.



Take care,
Tom

-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com

GeneralRe: Who am I? Detecting the "current" control for a handler Pin
JoeRip26-Sep-07 3:18
JoeRip26-Sep-07 3:18 
GeneralRe: Who am I? Detecting the "current" control for a handler Pin
JoeRip26-Sep-07 3:21
JoeRip26-Sep-07 3:21 
GeneralRe: Who am I? Detecting the "current" control for a handler Pin
TJoe26-Sep-07 3:25
TJoe26-Sep-07 3:25 
GeneralRe: Who am I? Detecting the "current" control for a handler Pin
JoeRip26-Sep-07 3:34
JoeRip26-Sep-07 3:34 
GeneralRe: Who am I? Detecting the "current" control for a handler Pin
TJoe26-Sep-07 3:42
TJoe26-Sep-07 3:42 
GeneralRe: Who am I? Detecting the "current" control for a handler Pin
Luc Pattyn26-Sep-07 3:58
sitebuilderLuc Pattyn26-Sep-07 3:58 
GeneralRe: Who am I? Detecting the "current" control for a handler Pin
TJoe26-Sep-07 3:22
TJoe26-Sep-07 3:22 
QuestionHow to extract HTML code From any webpage using C#.Net Pin
allivelu26-Sep-07 1:35
allivelu26-Sep-07 1:35 
AnswerRe: How to extract HTML code From any webpage using C#.Net Pin
Christian Graus26-Sep-07 1:46
protectorChristian Graus26-Sep-07 1:46 
AnswerRe: How to extract HTML code From any webpage using C#.Net Pin
Matthew Cuba26-Sep-07 2:00
Matthew Cuba26-Sep-07 2:00 
QuestionSimulator Pin
prog_omer_esmail26-Sep-07 1:13
prog_omer_esmail26-Sep-07 1:13 
QuestionRe: Simulator Pin
ESTAN26-Sep-07 1:24
ESTAN26-Sep-07 1:24 
AnswerRe: Simulator Pin
pmarfleet26-Sep-07 1:47
pmarfleet26-Sep-07 1:47 
GeneralRe: Simulator Pin
PaulPrice26-Sep-07 1:55
PaulPrice26-Sep-07 1:55 
GeneralRe: Simulator Pin
ESTAN26-Sep-07 2:02
ESTAN26-Sep-07 2:02 
GeneralRe: Simulator Pin
prog_omer_esmail26-Sep-07 3:12
prog_omer_esmail26-Sep-07 3:12 
GeneralRe: Simulator Pin
J4amieC26-Sep-07 3:35
J4amieC26-Sep-07 3:35 

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.