hightlight

  • Thread starter Thread starter Frank
  • Start date Start date
F

Frank

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,

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


Ken
----------------
 
Hi Ken,

The chalenge is

"DESIGN property to prohibit this".

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

:-)

Cor
 
Cor,

You are right.

Ken
-------------
Cor Ligthert said:
Hi Ken,

The chalenge is

"DESIGN property to prohibit this".

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

:-)

Cor
 
* "Frank said:
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.
 
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
 
Thanks all, I thought of these solutions. I just thought I missed some
property to do it at design time.
Frank
 
Hi Cor,

* "Cor Ligthert said:
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.
 
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,
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 said:
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.
 
Back
Top