Thanks, but I already know that I am the best and dont need to be told.
The Grand Master
(e-mail address removed) wrote:
Wow, thanks Master Programmer. Thats just what I have been looking
for.
You really are a master.
Thanks Again
Peter
Master Programmer wrote:
I thought you were meant to be the experts. Here it is again.....
Public Class MyClass
Public Enum MyEnum
Top
Middle
Bottom
End Enum
Private _Vertical_Position As MyEnum
<Category("Appearance"), DefaultValue(GetType(MyEnum),
"Middle")> _
Property [Vertical_Position]() As MyEnum
Get
Return _Vertical_Position
End Get
Set(ByVal Value As MyEnum)
_Vertical_Position = Value
End Set
End Property
' ********************
' To grab it after at runtime....
' If Vertical_Position = MyEnum.Top then
'
' End If
End Class
(e-mail address removed) wrote:
Thanks that helps a lot. Is there any way to do it as a string
instead of an integer?
On Wed, 20 Dec 2006 21:12:23 -0500, "Scott M."
<
[email protected]>
wrote:
Public Enum CurrentState
top
middle
bottom
End Enum
Public x As CurrentState
x = (you will get the intellisense dropdown here)
I have been trying to lear vb.net and I cannot remeber how to do
something that I read about a week ago and it is trying me
crazy
You now how if you creat a vriable that is boolean whe you
type
in X
= the tru or false choice comes up. I want to creat a variable
that
is a string but can only exsit in three states top middle and
bottom.
I forgot how to do it. Sorry for this stupid question