when assigning text to combobox.text="ddddd" it is not displaying while runing program
swathi
lumakar_challa
Check your ComboBox's DropDownStyle property. If it is set to DropDownList then the Text property is readonly, hence you can't change the value from it.
Regards,
-chris
Mark the best replies as Answers! | Blog: http://community.devpinoy.org/blogs/cvega
Chris Vega
Hi
I think you need to add string "ddddd" as an Item into your comboBox comboBox.Items.Add("ddddd");
Hope this helps
Bulldog.NET (South Africa)
Sibusiso
You need to add your string text and select is:
public void SelectText( string text ) { // Find the index of the specified string. int index = comboBox.FindString( text );
// When the string was not found; add it. if( index == -1 ) { index = comboBox.Items.Add( text ); }
// Select the string item. comboBox.SelectedIndex = index; }
** Microsoft Community Moderator ** http://born2code.net **
PJ. van de Sande
we have to add the item using comboBox.Items.Add("dddd");