-
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.
-
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
-
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
-
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.
-
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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks