Focus of Textbox


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: Focus of Textbox

  1. #1
    vishnu Guest

    Focus of Textbox


    Hu all,

    is there any way to make a textbox take no focus at all. That is it doesnt
    take focus by tabs (tabstop=false) & also doesnt take a focus when mouse
    is clicked inside it.

    thanx in advance.

  2. #2
    Craig Clearman Guest

    Re: Focus of Textbox

    >is there any way to make a textbox take no focus at all. That is it doesnt
    >take focus by tabs (tabstop=false) & also doesnt take a focus when mouse
    >is clicked inside it.


    Disable it. Or if you don't like it being grayed out, put it on a
    disabed control container.

    Ciao, Craig


  3. #3
    Craig Clearman Guest

    Re: Focus of Textbox

    >is there any way to make a textbox take no focus at all. That is it doesnt
    >take focus by tabs (tabstop=false) & also doesnt take a focus when mouse
    >is clicked inside it.


    Disable it. Or if you don't like it being grayed out, put it on a
    disabed control container.

    Ciao, Craig


  4. #4
    Arthur Wood Guest

    Re: Focus of Textbox


    Vishnu,
    If what you are trying to have is a text display which the user can't
    change or select, then why not show that text as a Label control, and set
    the Border Style to 1-Fixed Single, and the BackColor to any of the Whites
    (HightLigt Text, for example).


    Then you can set the text in code as the Label.Caption.

    This looks just like a text box, but cannot be seelcted with the mose, and
    cannot be editted.

    Arthur Wood

    "vishnu" <vishnu@hotmail.com> wrote:
    >
    >Hu all,
    >
    >is there any way to make a textbox take no focus at all. That is it doesnt
    >take focus by tabs (tabstop=false) & also doesnt take a focus when mouse
    >is clicked inside it.
    >
    >thanx in advance.



  5. #5
    Arthur Wood Guest

    Re: Focus of Textbox


    Vishnu,
    If what you are trying to have is a text display which the user can't
    change or select, then why not show that text as a Label control, and set
    the Border Style to 1-Fixed Single, and the BackColor to any of the Whites
    (HightLigt Text, for example).


    Then you can set the text in code as the Label.Caption.

    This looks just like a text box, but cannot be seelcted with the mose, and
    cannot be editted.

    Arthur Wood

    "vishnu" <vishnu@hotmail.com> wrote:
    >
    >Hu all,
    >
    >is there any way to make a textbox take no focus at all. That is it doesnt
    >take focus by tabs (tabstop=false) & also doesnt take a focus when mouse
    >is clicked inside it.
    >
    >thanx in advance.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center