|
-
May 10th, 2004, 11:29 AM
#1
Thread Starter
Addicted Member
-
May 10th, 2004, 03:34 PM
#2
Hi.
You can't disable it, but you can control wether the value is accepted.
Something like this:
VB Code:
Public Property SizeLimitSize As Integer
Get
Return MySizeLimitSize
End Get
Set (Value as Integer)
If SizeLimit=True Then
MySizeLimit=Value
Else
Throw New Exception("Value can only be set if SizeLimit is True.")
End If
End Set
End Property
I wish I could think of something witty to put in my sig...
...Currently using VS2013...
-
May 11th, 2004, 08:07 AM
#3
Thread Starter
Addicted Member
Thanks!!
That is what I was looking for....
I am not sure how you would gray it out all together but this should work great. Thanks!!!
-
May 11th, 2004, 09:01 AM
#4
Junior Member
could i use the above example to validate my text boxes on my programe? so that users can only enter text and not numbres in certain boxes.
Thanks
Homer
-
May 11th, 2004, 09:56 AM
#5
Originally posted by Homer S
could i use the above example to validate my text boxes on my programe? so that users can only enter text and not numbres in certain boxes.
Thanks
Homer
Not unless you inherit from the textbox, and override the Text property.
The above example was designed to be used within usercontrols.
Sorry...
I wish I could think of something witty to put in my sig...
...Currently using VS2013...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|