N
Noel Justus
Simply wish to create a generic subroutine which would fill a listbox
control with the contents of an enumeration in this fashion:
FillListBox(Listbox1,TabAlignment)
FillListBox(Listbox2,Appearance)
Public Sub FillListBox(ByVal lstBox As ListBox, ByVal xEnum As
[Enum])
....
....
End Sub
The problem is that I cannot find a reference to all the enumerated
values when
using a subroutine.
I am able to use [Enum].Getnames and [Enum].parse to fill the box but
I must use the enumeration type specifically....and not a reference to
it.
Any help filling in the subroutine would be appreciated.
control with the contents of an enumeration in this fashion:
FillListBox(Listbox1,TabAlignment)
FillListBox(Listbox2,Appearance)
Public Sub FillListBox(ByVal lstBox As ListBox, ByVal xEnum As
[Enum])
....
....
End Sub
The problem is that I cannot find a reference to all the enumerated
values when
using a subroutine.
I am able to use [Enum].Getnames and [Enum].parse to fill the box but
I must use the enumeration type specifically....and not a reference to
it.
Any help filling in the subroutine would be appreciated.