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 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
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
* "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/>
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
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
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
* "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/>
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
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
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
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/>
* "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/>
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
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
* "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/> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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:
*****************************
...
|
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
|
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....
|
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...
|
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...
|
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...
|
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
|
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...
|
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...
|
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,...
|
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...
|
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,...
|
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...
|
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...
|
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...
| |