c# - Text is getting selected when combobox style is drop down -


I have a problem with the Windows Cumbabox when the style is drop down. Combo box has two values ​​- "Hello" and "Hi". I want to show the default value for my Windows boxbox box "Loading" page. Now when the style is a dropdown, it selects the entire text ("hello"), which creates the first and third control of confusion (as the focus is on the first control (textbox), but it seems that focus The third is in the control which is the blankbox). Can anyone tell me how to solve it?

I think you are saying that you have a textbox and a combination box. When the form is loaded, the combobox "hello" (the first item) is selected. In addition, the actual focus is on the text loading, when the form loads, so if a user starts your app and starts typing, then the text goes to the textbox, but all the text is highlighted in Cambodia. , So it seems that the typing of the user

does this describe your problem?

If this happens, then I think that you can use your following from_od () method:

  comboBox1.SelectedIndex = 0; // Select the first item in the combo // If you do not select any text, then draw the next line // text box and the end of the insertion point and text box text. //textbox1.Select (textbox1.Text.Length, 0); TextBox1.Select (); // Choose Text Box  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -