You didn't have your Select Case block right.
VB Code:
'assuming you keep the enum Select Case intState Case State.Dormant 'or just Case Dormant. if you use a lot of enums, qualifying them is more readable 'block to run when it's set as Dormant Case State.Listening 'block to run when it's Listening 'etc...





Reply With Quote