list of keys in keys enumeration

N

news.microsoft.com

Hi,
How to load the list of keys enumeration name and value in a combo box.

Thanks
saran
 
H

Herfried K. Wagner [MVP]

* "news.microsoft.com said:
How to load the list of keys enumeration name and value in a combo box.

\\\
Me.ComboBox1.Items.AddRange([Enum].GetNames(GetType(Keys)))
..
..
..
Private Sub ComboBox1_SelectedIndexChanged(...) Handles ComboBox1.SelectedIndexChanged
MsgBox([Enum].Parse(GetType(Keys), DirectCast(Me.ComboBox1.SelectedItem, String)))
End Sub
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top