hey guys..
I have a enum:
instead of using a switch method like thisCode: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
is there any faster way?Code:Select Case snTest.Status 'estatus Case 0 txtStatus.Text = "Ready" Case 1 txtStatus.Text = "Connecting" Case 2 txtStatus.Text = "Connected" End Select
Like i want to fill a combo box with all the enums values(not the number, but the text)
how would i do that


Reply With Quote