Return to Snippet

Revision: 45607
at May 4, 2011 23:53 by Maikel


Initial Code
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"

Initial URL

                                

Initial Description

                                

Initial Title
Bind Enum to Combobox

Initial Tags

                                

Initial Language
VB.NET