M
Milosz Weckowski
I want to add alle Enum Meners to an arraylist:
class Progbar
......
Public Enum DrawingStyles
Solid
Rectangle
Elipse
InvElipse
End Enum
end class
Class Another Class
.....
sub addEnum
Me.cmbDrawStyle.Items.Add(Me.prgbar.DrawingStyles.Solid)
Me.cmbDrawStyle.Items.Add(Me.prgbar.DrawingStyles.Rectangle)
Me.cmbDrawStyle.Items.Add(Me.prgbar.DrawingStyles.Elipse)
Me.cmbDrawStyle.Items.Add(Me.prgbar.DrawingStyles.InvElipse)
end sub
end class
Is there any possibility to do it dynamically ?
In the full Framework there ist the getnames function from the Enum Class,
Dim ColorList As New ArrayList()
ColorList.AddRange([Enum].GetNames(GetType(KnownColor)))
but how to do this in the CF ?
greetings
Milosz Weckowski
class Progbar
......
Public Enum DrawingStyles
Solid
Rectangle
Elipse
InvElipse
End Enum
end class
Class Another Class
.....
sub addEnum
Me.cmbDrawStyle.Items.Add(Me.prgbar.DrawingStyles.Solid)
Me.cmbDrawStyle.Items.Add(Me.prgbar.DrawingStyles.Rectangle)
Me.cmbDrawStyle.Items.Add(Me.prgbar.DrawingStyles.Elipse)
Me.cmbDrawStyle.Items.Add(Me.prgbar.DrawingStyles.InvElipse)
end sub
end class
Is there any possibility to do it dynamically ?
In the full Framework there ist the getnames function from the Enum Class,
Dim ColorList As New ArrayList()
ColorList.AddRange([Enum].GetNames(GetType(KnownColor)))
but how to do this in the CF ?
greetings
Milosz Weckowski