-
Enums
hey guys..
I have a enum:
Code:
Enum eStatus
Ready ' 0 - Control is ready for use
Connecting ' 1 - Connecting to host
Connected ' 2 - Connected to host
Waiting ' 3 - Sending/Retriving data
Done ' 4 - Complete Sending/Retriving data
End Enum
instead of using a switch method like this
Code:
Select Case snTest.Status 'estatus
Case 0
txtStatus.Text = "Ready"
Case 1
txtStatus.Text = "Connecting"
Case 2
txtStatus.Text = "Connected"
End Select
is there any faster way?
Like i want to fill a combo box with all the enums values(not the number, but the text)
how would i do that
-
-
great thx alot buddy
btw, can somone tell me whats the diff from short and interger?
-
The length:
(.net) Short = (vb6) interger
(.net) Interger= (vb6) long