Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Thursday, April 8, 2010 9:56 AM
Regards Puboo My blog : http://www.thurupathan.spaces.live.com/
All replies (3)
Monday, April 12, 2010 9:24 AM ✅Answered
Hi puboo
Welcome to C++ Forum!
Are you using “Drop Down List” in ASP.net? or in C#? If it is, I suggest you ask your question at ASP.net Forum or VC# Forum. There are more experts in those forums.
In addition, in C++ most of information about Drop Down List is related to Combo Box Control. The way to set Default Value for Combo Box is as following:
MFC: CComboBox *combo = (CComboBox*)GetDlgItem(IDC_COMBO1);
combo->SetCurSel(0);
CLR: comboBox1->SelectedIndex = 0;
If I missunderstand you, Please let me know.
Cheers
Yi Feng Li
Thursday, April 8, 2010 10:19 AM
This is not an appropriate forum to post C# related things.
Anyway Try with
Combobox1.SelectedIndex = 0; //0 is the index u want to set
Knowledge is like light; It spreads only when you have clear and transparent mind. - Sreedhar
Saturday, April 10, 2010 9:19 AM
Sorry it's my mistake that I put this into a C++ forum
Regards Puboo My blog : http://www.thurupathan.spaces.live.com/