When i want define values in Select Case
i got error:
'Value' is not declared. It may be inaccessible due to its protection level.
When Dim Value As Object
is outside Select Case - No error. My target is get Value different on special numbers. For example:
Select Case Integer
Case 1
Dim Value As New UserControl1
Case 2
Dim Value As New UserControl2
Case Else
Dim Value As New UserControl3
End Select