473,406 Members | 2,705 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

hightlight

Hi,
the text in my textbox is highlighted when I tab to it. I can't find the
DESIGN property to prohibit this.
Please help me out
Thanks
Frank
Nov 20 '05 #1
15 1630
Hi,

Private Sub TextBox1_GotFocus(ByVal sender As Object, ByVal e As
System.EventArgs) Handles TextBox1.GotFocus
TextBox1.SelectionLength = 0
End Sub
Ken
----------------

"Frank" <fr***@frank.com> wrote in message
news:cc**********@news2.tilbu1.nb.home.nl:
Hi,
the text in my textbox is highlighted when I tab to it. I can't find the

DESIGN property to prohibit this.
Please help me out
Thanks
Frank


--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.3.9 - Release Date: 7/2/2004
Nov 20 '05 #2
Hi Ken,

The chalenge is

"DESIGN property to prohibit this".

(not that I already looked at it), I would do it as you.

:-)

Cor

Private Sub TextBox1_GotFocus(ByVal sender As Object, ByVal e As
System.EventArgs) Handles TextBox1.GotFocus
TextBox1.SelectionLength = 0
End Sub
Ken
----------------
the text in my textbox is highlighted when I tab to it. I can't find the

DESIGN property to prohibit this.
Please help me out
Thanks
Frank


--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.3.9 - Release Date: 7/2/2004

Nov 20 '05 #3
* "Frank" <fr***@frank.com> scripsit:
the text in my textbox is highlighted when I tab to it. I can't find the
DESIGN property to prohibit this.


\\\
Public Class MyTextBox
Inherits TextBox

Private Sub MyTextBox_GotFocus( _
ByVal sender As Object, _
ByVal e As System.EventArgs _
) Handles MyBase.GotFocus
Me.SelectionLength = 0
End Sub
End Class
///

Then you will have to use MyTextBox instead of the standard TextBox
control.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #4
Cor,

You are right.

Ken
-------------
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:#0**************@tk2msftngp13.phx.gbl:
Hi Ken,

The chalenge is

"DESIGN property to prohibit this".

(not that I already looked at it), I would do it as you.

:-)

Cor

Private Sub TextBox1_GotFocus(ByVal sender As Object, ByVal e As
System.EventArgs) Handles TextBox1.GotFocus
TextBox1.SelectionLength = 0
End Sub
Ken
----------------

the text in my textbox is highlighted when I tab to it. I can't find
the

DESIGN property to prohibit this.
Please help me out
Thanks
Frank

--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.3.9 - Release Date: 7/2/2004


--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.3.9 - Release Date: 7/2/2004
Nov 20 '05 #5
Thanks all, I thought of these solutions. I just thought I missed some
property to do it at design time.
Frank

"Frank" <fr***@frank.com> wrote in message
news:cc**********@news2.tilbu1.nb.home.nl...
Hi,
the text in my textbox is highlighted when I tab to it. I can't find the
DESIGN property to prohibit this.
Please help me out
Thanks
Frank

Nov 20 '05 #6
Hi Hefried,

The chalenge is (as well messaged to Ken)

"DESIGN property to prohibit this".

(not that I already looked at it), I would do it as you.

:-)

Cor
Nov 20 '05 #7
* "Frank" <fr***@frank.com> scripsit:
the text in my textbox is highlighted when I tab to it. I can't find the
DESIGN property to prohibit this.


\\\
Public Class MyTextBox
Inherits TextBox

Private Sub MyTextBox_GotFocus( _
ByVal sender As Object, _
ByVal e As System.EventArgs _
) Handles MyBase.GotFocus
Me.SelectionLength = 0
End Sub
End Class
///

Then you will have to use MyTextBox instead of the standard TextBox
control.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #8
Thanks all, I thought of these solutions. I just thought I missed some
property to do it at design time.
Frank

"Frank" <fr***@frank.com> wrote in message
news:cc**********@news2.tilbu1.nb.home.nl...
Hi,
the text in my textbox is highlighted when I tab to it. I can't find the
DESIGN property to prohibit this.
Please help me out
Thanks
Frank

Nov 20 '05 #9
Hi Hefried,

The chalenge is (as well messaged to Ken)

"DESIGN property to prohibit this".

(not that I already looked at it), I would do it as you.

:-)

Cor
Nov 20 '05 #10
Hi,

How about this. I wrote an extender which adds a preventhighlight
property to the textbox. You just have to drop the component on the form to
add the property.

http://www.onteorasoftware.com/downl...oxextender.zip

Ken
---------------------
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:uY**************@TK2MSFTNGP12.phx.gbl...
Hi Hefried,

The chalenge is (as well messaged to Ken)

"DESIGN property to prohibit this".

(not that I already looked at it), I would do it as you.

:-)

Cor

Nov 20 '05 #11
Hi Cor,

* "Cor Ligthert" <no**********@planet.nl> scripsit:
The chalenge is (as well messaged to Ken)

"DESIGN property to prohibit this".

(not that I already looked at it), I would do it as you.


Well, it's easy to add a property to turn the behavior off in the
derived class.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #12
* "Ken Tucker [MVP]" <vb***@bellsouth.net> scripsit:
How about this. I wrote an extender which adds a preventhighlight
property to the textbox. You just have to drop the component on the form to
add the property.

http://www.onteorasoftware.com/downl...oxextender.zip


Good idea! I had an extender in mind too...

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #13
Hi Ken,

I know that you can do that, I had written a same message as you and saw
than the word DESIGN, so I had fun that you two did the same.

And I was expecting that Herfried would tell the same as you And than I had
my message again ready, however I have fun tickling Herfried, with you I do
not do that.

I feel guilty that you took that work, next time you would not take that
work, I know you can do that when you tell it.

:-)

Cor
Nov 20 '05 #14
Hi Herfried,

* "Cor Ligthert" <no**********@planet.nl> scripsit:
The chalenge is (as well messaged to Ken)

"DESIGN property to prohibit this".

(not that I already looked at it), I would do it as you.


Well, it's easy to add a property to turn the behavior off in the
derived class.


Maybe you can show the OP how to make that derived class in DESIGN time.
(Without any code of course).

:-)

Cor

Nov 20 '05 #15
* "Cor Ligthert" <no**********@planet.nl> scripsit:
The chalenge is (as well messaged to Ken)

"DESIGN property to prohibit this".

(not that I already looked at it), I would do it as you.


Well, it's easy to add a property to turn the behavior off in the
derived class.


Maybe you can show the OP how to make that derived class in DESIGN time.
(Without any code of course).


LOL, that's not as easy, in other words, that's impossible. Or is using
the text editor a design time operation too?

I think the OP wants a control that provides a property for enabling the
behavior when designing the form in the Windows Forms form editor.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #16

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Alvaro G. Vicario | last post by:
Before writing it myself (str_replace, preg_replace and a keyword list updated as I find them?) I'd like to know whether there's already a simple syntax highlighting class or script I can use to...
3
by: Jay | last post by:
Hi ! I am writing a page that displays a list of records in a table. Each row for each record. Each row has a checkbox associated with it. Does anybody know how to highlight a row when I click...
0
by: AA Arens | last post by:
When you open the Access contacts database, you will see that when you move with your mouse over the buttons, the text become bold. This is the VB script: ***************************** ...
3
by: Frank | last post by:
Hi, the text in my textbox is highlighted when I tab to it. I can't find the DESIGN property to prohibit this. Please help me out Thanks Frank
0
by: manimuthu | last post by:
Hai, I am newbie in perl. I had tried to search a particular text and hightlight the text. I had using perl tk for text widgets. Anyone can helpme how to highlight text for using text widget....
1
by: sony zade | last post by:
We are doing project on java-IDE in MCS-I . We want to know how to highlight syntax of java programs. We have used one textarea which has whole program in one string and that string has been...
5
by: bill | last post by:
When you retrieve records to diplay in a DataGridView control the first record has the background highlighted even though no row is yet selected. Does anyone know a way to suppress this first...
1
by: altaafhussein | last post by:
Hi, i have checked all over the internet, but they just hightlight rows using the datagrid attributes. How do you hightlight a selected row in a datagrid. I tried the onclick attribute but that does...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.