|
-
May 25th, 2002, 08:57 PM
#1
Thread Starter
New Member
Disable txtboxes without greying...
I need to lock an textbox. I've tried to use .enabled=false but it dimmed textbox. How can i achieve it?
-
May 25th, 2002, 09:21 PM
#2
umm it;s not a good idea to disable it
set the ReadOnly property to True, and if you want the back color to be white then change the BackColor property to white
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
May 26th, 2002, 09:38 AM
#3
Thread Starter
New Member
Yes, but there's two problems. First, control can still be focused. Second, forecolor cannot be normalized.
-
May 26th, 2002, 10:45 AM
#4
Member
private sub textbox_Change(byval blah blah blah............)
if text1.text <> "whatever you want it to say" then
text1.text = "whatever you want it to say"
end if
end sub
try that... under the change (or somethin like that) thing
Visual Basic 6.0, Visual Basic .NET, C#, C++, ASM, HTML
-
May 26th, 2002, 10:48 AM
#5
Member
FIXED
Private Sub text1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles text1.TextChanged
If text1.Text <> "Whatever" Then
text1.Text = "Whatever"
End If
End Sub
try that, that way they can still highlight it and copy/cut or whatever but if its ever changed, then it reverts back like .00000000000000000000001 miliseconds later
hope this helps
Visual Basic 6.0, Visual Basic .NET, C#, C++, ASM, HTML
-
May 28th, 2002, 06:57 AM
#6
Member
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
|