CheckBox

Discussion in 'ASP .Net Web Controls' started by Ana Rita, Nov 5, 2003.

  1. Ana Rita

    Ana Rita Guest

    Hello to all.

    It´s possible to set a checkbox to be read only like a
    textbox?

    Thanks

    Ana Rita
     
    Ana Rita, Nov 5, 2003
    #1
    1. Advertising

  2. Ana Rita

    Guest Guest

    Ana,

    Yes, but you have to use the Enabled property of the
    checkbox. checkbox1.Enabled = False

    Jim

    >-----Original Message-----
    >Hello to all.
    >
    >It´s possible to set a checkbox to be read only like a
    >textbox?
    >
    >Thanks
    >
    >Ana Rita
    >.
    >
     
    Guest, Nov 5, 2003
    #2
    1. Advertising

  3. Ana Rita

    Guest Guest

    Ok,

    But i have some styles in the page, and whem i disabled
    the checkbox it turn gray, and i want it to be blue.

    Thanks.
    >-----Original Message-----
    >Ana,
    >
    > Yes, but you have to use the Enabled property of the
    >checkbox. checkbox1.Enabled = False
    >
    >Jim
    >
    >>-----Original Message-----
    >>Hello to all.
    >>
    >>It´s possible to set a checkbox to be read only like a
    >>textbox?
    >>
    >>Thanks
    >>
    >>Ana Rita
    >>.
    >>

    >.
    >
     
    Guest, Nov 5, 2003
    #3
  4. Ana Rita

    Jim Guest

    That is done because of the browser IE 4 and above. Not
    sure if there is a way around this. Check the help files.

    >-----Original Message-----
    >Ok,
    >
    >But i have some styles in the page, and whem i disabled
    >the checkbox it turn gray, and i want it to be blue.
    >
    >Thanks.
    >>-----Original Message-----
    >>Ana,
    >>
    >> Yes, but you have to use the Enabled property of the
    >>checkbox. checkbox1.Enabled = False
    >>
    >>Jim
    >>
    >>>-----Original Message-----
    >>>Hello to all.
    >>>
    >>>It´s possible to set a checkbox to be read only like a
    >>>textbox?
    >>>
    >>>Thanks
    >>>
    >>>Ana Rita
    >>>.
    >>>

    >>.
    >>

    >.
    >
     
    Jim, Nov 5, 2003
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. tshad
    Replies:
    0
    Views:
    588
    tshad
    Apr 15, 2005
  2. Vikram

    disable checkbox list checkbox

    Vikram, Jan 25, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    1,432
    ThunderMusic
    Jan 25, 2006
  3. =?Utf-8?B?RG90TmV0RGV2?=

    DataGrid and embeded Checkbox..How to find if checkbox clicked

    =?Utf-8?B?RG90TmV0RGV2?=, Oct 6, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    867
    David Wier
    Oct 6, 2006
  4. Jason Huang
    Replies:
    0
    Views:
    586
    Jason Huang
    Jun 29, 2007
  5. Joey Pang
    Replies:
    4
    Views:
    568
    Joey Pang
    Jun 13, 2005
Loading...

Share This Page