Click here to Skip to main content
15,881,697 members
Home / Discussions / C#
   

C#

 
AnswerRe: SQL Querry Pin
Naveed N Malik2-May-06 21:48
Naveed N Malik2-May-06 21:48 
AnswerRe: SQL Querry Pin
Guffa2-May-06 21:54
Guffa2-May-06 21:54 
QuestionGlobal varaible Decleration Pin
abhinish2-May-06 19:39
abhinish2-May-06 19:39 
AnswerRe: Global varaible Decleration Pin
Christian Graus2-May-06 20:03
protectorChristian Graus2-May-06 20:03 
QuestionComboBox problem windows application Pin
yogsworld2-May-06 19:20
yogsworld2-May-06 19:20 
AnswerRe: ComboBox problem windows application Pin
DigitalKing2-May-06 19:28
DigitalKing2-May-06 19:28 
GeneralRe: ComboBox problem windows application Pin
yogsworld2-May-06 19:36
yogsworld2-May-06 19:36 
GeneralRe: ComboBox problem windows application Pin
microsoc2-May-06 22:11
microsoc2-May-06 22:11 
hi DigitalKing & yogsworld! Smile | :)

you can also try these options:

option 1:
void Form1_Load()
{   
...   
combobox1.SelectedIndexChanged -= new EventHandler(SelectedIndexChanged_Handler);
combobox1.DataSource = arr;   
combobox1.SelectedIndexChanged += new EventHandler(SelectedIndexChanged_Handler);
...
}



option 2:

remove the attaching of the SelectedIndexChanged event handler in the InitializeComponent, then just do it in the Form1_Load after the setting of DataSource property of the combobox.


just alternatives instead of using a flag. Smile | :)





microsoc Cool | :cool:
QuestionHow to call Url from c# code Pin
Yuwraj2-May-06 18:56
Yuwraj2-May-06 18:56 
AnswerRe: How to call Url from c# code Pin
DigitalKing2-May-06 19:05
DigitalKing2-May-06 19:05 
QuestionNAPQ :( .. Getting custom controls to be displayed in toolbar Pin
malharone2-May-06 17:33
malharone2-May-06 17:33 
Questiondelete temp files program Pin
hops33n2-May-06 17:24
hops33n2-May-06 17:24 
AnswerRe: delete temp files program Pin
Judah Gabriel Himango2-May-06 17:29
sponsorJudah Gabriel Himango2-May-06 17:29 
AnswerRe: delete temp files program Pin
DigitalKing2-May-06 19:16
DigitalKing2-May-06 19:16 
AnswerRe: delete temp files program Pin
DigitalKing2-May-06 19:21
DigitalKing2-May-06 19:21 
GeneralRe: delete temp files program Pin
hops33n3-May-06 16:38
hops33n3-May-06 16:38 
Questiontab order in .net cf Pin
yongwpi2-May-06 16:42
yongwpi2-May-06 16:42 
QuestionDetecting Current Control When Mouse Moves With Button Down Pin
redfish342-May-06 16:06
redfish342-May-06 16:06 
QuestionMulti Threading in WinForms Pin
Shawn_H2-May-06 16:01
Shawn_H2-May-06 16:01 
AnswerRe: Multi Threading in WinForms Pin
Judah Gabriel Himango2-May-06 17:39
sponsorJudah Gabriel Himango2-May-06 17:39 
GeneralRe: Multi Threading in WinForms Pin
Shawn_H3-May-06 3:03
Shawn_H3-May-06 3:03 
QuestionRecursive method to search a folder w/ special condition Pin
WCup2-May-06 15:58
WCup2-May-06 15:58 
Questionsocket and tcp Pin
tjvictor2-May-06 15:29
tjvictor2-May-06 15:29 
AnswerRe: socket and tcp Pin
Jakob Farian Krarup2-May-06 23:58
Jakob Farian Krarup2-May-06 23:58 
QuestionGood reference book Pin
TheJudeDude2-May-06 13:15
TheJudeDude2-May-06 13:15 

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.