'Locking Text Boxes'

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: ChrisM (hidden_at_AskMeIfYouWantIt.com)
Date: 02/26/04


Date: Thu, 26 Feb 2004 14:37:35 -0000

I have a Windows form in a C# project.

What I want to do under certain circumstances is to 'Lock' a text-box.
I know that I can do this by setting the Enable property to false, but this
greys it out.
Any suggestions as to the best way of making a TextBox read-only without
greying it out?

Regards,

ChrisM



Relevant Pages

  • Re: Program a Function Key to Lock a PC
    ... >keyboard shortcut. ... >> to lock a Windows XP PC. ... >> Regards, ... >> Felix Monclova ...
    (microsoft.public.windowsxp.security_admin)
  • RE: Combo box locked?
    ... Sam ... >> I've checked its Lock and Enable properties, and Lock is no, Enable is yes. ... >> Regards, ...
    (microsoft.public.access.forms)
  • Re: ManualResetEvent.WaitOne() and ManualResetEvent.Set()
    ... Regards from Kovan ... > event handlers does not release the lock. ... > class MyClass ... > Kovan Akrei ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Moving files from 98 to XP
    ... process holds a lock. ... Regards, ... Dave Patrick ....Please no email replies - reply in newsgroup. ...
    (microsoft.public.windowsxp.general)
  • FASA Star Trek Combat simulator
    ... Asking 30 US, buyer pays shipping. ... Regards, Pat ... Lock n' Load X2, Three Battles of Manassas, Mighty ...
    (rec.games.board.marketplace)