I have built a form in C# where I want to display the ComboBox selection in a TextBox. I know it sounds very simple but I keep getting errors.
For example, if the user selects "California" from the drop down menu, I want the TextBox to display "California". I have tried the following code for the ComboBox but haven't had any luck. Any help is appreciated!
cmb.SelectedItem = txt1.Text
Or
cmb.Text = txt1.Text