Results 1 to 3 of 3

Thread: [RESOLVED] [3.0/LINQ] TextBox Controlling

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2006
    Location
    USA
    Posts
    122

    Resolved [RESOLVED] [3.0/LINQ] TextBox Controlling

    Hey Everyone....This is a different question.

    I know you can make a textbox readonly by simply typing
    Code:
    txtMyTextBox.readonly = false;
    However is there anyway to make all the textboxes on a form readonly without typing out everyone one of them

    thanks,

    -zd

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Oct 2006
    Location
    USA
    Posts
    122

    Re: [3.0/LINQ] TextBox Controlling

    In response to my own stupidity

    make a textbox readonly by doing this

    Code:
    txtMyTextBox.readonly = true;
    sometimes i wonder

    thanks,

    -zd

  3. #3
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: [3.0/LINQ] TextBox Controlling

    You either put them in an array and loop through the array setting ReadOnly to true for each, or you loop through the container in which the textboxes reside, and set ReadOnly to true for each of them.
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width