Results 1 to 4 of 4

Thread: [RESOLVED] [02/03] how to display text box in ReadOnly mode

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2006
    Posts
    244

    Resolved [RESOLVED] [02/03] how to display text box in ReadOnly mode

    i want to make text box as Read only mode; if user is already in list. but if it's not then data can be entered in it. how can i do that? the value here is taken from database


    i know; i should add "if/else stmt" but what about to show the value(i.e. text box value) in readonly mode??
    Last edited by puresmile; May 11th, 2006 at 12:18 AM.

  2. #2
    Addicted Member phenom's Avatar
    Join Date
    Apr 2006
    Location
    UAE
    Posts
    233

    Re: [02/03] how to display text box in ReadOnly mode

    Quote Originally Posted by puresmile
    i want to make text box as Read only mode; if user is already in list. but if it's not then data can be entered in it. how can i do that?

    i know; i should add "if/else stmt" but what about to show the value(i.e. text box value) in readonly mode??
    Hi puresmile,

    i think you need to do something like this code...

    VB Code:
    1. TextBox.ReadOnly = True

    hope this helps...

    Regards,
    =======================================
    If I helped you, Kindly Rate my post. Thanks
    -----------
    PHENOM

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Apr 2006
    Posts
    244

    Re: [02/03] how to display text box in ReadOnly mode

    Quote Originally Posted by phenom
    Hi puresmile,

    i think you need to do something like this code...

    VB Code:
    1. TextBox.ReadOnly = True

    hope this helps...

    Regards,
    something like this code

    ReadOnly; is this part of VB.NET?

  4. #4
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339

    Re: [02/03] how to display text box in ReadOnly mode

    Yes the textbox control has a ReadOnly property in .NET.
    Attached Images Attached Images  

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