hightlight [英] hightlight

查看:108
本文介绍了hightlight的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



当我选中它时,我的文本框中的文字会突出显示。我找不到

DESIGN属性来禁止这个。

请帮帮我

谢谢

Frank

解决方案




私有子TextBox1_GotFocus(ByVal发送者为对象,ByVal e As

System.EventArgs)处理TextBox1.GotFocus

TextBox1.SelectionLength = 0

End Sub

Ken

----------------


" Frank" < FR *** @ frank.com>在消息中写道

news:cc ********** @ news2.tilbu1.nb.home.nl:


当我选中它时,我的文本框中的文本会突出显示。我找不到

DESIGN属性来禁止这个。
请帮帮我
谢谢
Frank



-

外发邮件经过无病毒认证。

由AVG Anti-Virus检查( http://www.grisoft.com)

版本:7.0.230 /病毒库:263.3.9 - 发布日期:2004年7月2日


嗨肯,


挑战是


设计属性禁止此项。


(不是我已经看过它),我会像你一样。


:-)


Cor


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

Ken
---------------- < blockquote class =post_quotes>当我的文本框中的文本突出显示我选中它。我找不到

DESIGN属性来禁止这个。
请帮帮我
谢谢
Frank


-
发送邮件经过无病毒认证。
由AVG Anti-Virus检查( http://www.grisoft.com)
版本:7.0.230 /病毒库:263.3.9 - 发布日期:2004年7月2日



*" Frank" < FR *** @ frank.com> scripsit:

当我选中它时,我的文本框中的文本会突出显示。我找不到
DESIGN属性来禁止这个。




\\\

Public Class MyTextBox

继承TextBox


Private Sub MyTextBox_GotFocus(_

ByVal发送者作为对象,_

ByVal e As System.EventArgs _

)处理MyBase.GotFocus

Me.SelectionLength = 0

结束子

结束课

///


然后你将不得不使用MyTextBox而不是标准的TextBox

控件。


-

Herfried K. Wagner [MVP]

< URL:http://dotnet.mvps.org/>


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
----------------

"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/>


这篇关于hightlight的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆