Problems with comboBox value and textBox value on C#
<p>Im beginner on c#, and i really need some clue how to solve this problem.</p>

<p>I created one project in c#, and in one form i have comboBox with value is numbers between 9-20 and a textBox.</p>

<p>all i want is whenever ComboBox is selected, then TextBox will be set to ComboBox value plus 1. 
for example: If ComboBox1 is selected and the value is 11, then TextBox1.Text will be set to 12.</p>

<p>here's my code i've been working on.</p>

<pre><code>private void comboBox1_SelectedIndexChanged(object sender, EventArgs e
{
    textBox1.Text = comboBox1.SelectedIndex.ToString() +1;
}
</code></pre>

<p>There's nothing's wrong with the code, but i didnt get the value i want, because the result was like if comboBox is selected with value =11, and textBox1.Text is 21, not 12.</p>

<p>thx before :)</p>
