/ Published in: VB.NET

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Dim query = From n As Integer In [Enum].GetValues(GetType(DialogResult)) Select New With {n, .Valor = [Enum].GetName(GetType(DialogResult), n)} ComboBox1.DataSource = query.ToList() ComboBox1.DisplayMember = "Valor" ComboBox1.ValueMember = "n"
Comments
