list of keys in keys enumeration

  • Thread starter Thread starter news.microsoft.com
  • Start date Start date
N

news.microsoft.com

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

Thanks
saran
 
* "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
///
 
Back
Top