Hi,
Umm we really do need to see some code to help on this but a quick demo below:
namespace WindowsFormsApplication160
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
MessageBox.Show("index = "+comboBox1.SelectedIndex.ToString()+"\nvalue = "+comboBox1.Text);
}
}
}
This will return -1 if there is no value in the Combo box when you read it. If you have data in it make sure it is shown. To show a value use the below:
comboBox1.SelectedIndex = 1;
That will take the second value in the list of data that you have entered to the combo box Items value. For a full use of combo boxes in C# see
http://msdn.microsoft.com/en-us/library/system.windows.forms.combobox(v=VS.90).aspx[
^]
Hope that helps.
Glenn