Enter text in ComboBox

  • Thread starter Thread starter Peder Y
  • Start date Start date
P

Peder Y

Just a quickie:
I have a ComboBox, and set it so I can write in its text field. Now, as
I write and then press enter, nothing happens (except a beep). Do I need
to handle a KeyPress event to invoke the ValueChanged event and make the
entered data persistent? It's one of those zoom combo's.

- Peder -
 
Hi Peder,

What exactly do you want to happen when you press enter? And what is a zoom
combo?

Happy Coding!
Morten Wennevik [C# MVP]
 
Hi Morten!
A zoom combo is one of those ComboBoxes used in i.e. Word with the zoom
percentage on the document (75%, 100%, 150% etc). It is possible to
enter a custom percentage in the text field (i.e. 103%), but my combo
beeps and doesn't invoke any events. Hope this is clearer. This must be
a very normal question, altough I haven't found it. In general too many
results are returned and I expected it to have a simple solution. Thanks!

- Peder -


Morten said:
Hi Peder,

What exactly do you want to happen when you press enter? And what is a zoom
combo?

Happy Coding!
Morten Wennevik [C# MVP]



Just a quickie:
I have a ComboBox, and set it so I can write in its text field. Now, as I
write and then press enter, nothing happens (except a beep). Do I need to
handle a KeyPress event to invoke the ValueChanged event and make the
entered data persistent? It's one of those zoom combo's.

- Peder -
 
Back
Top