点击&焦点 [英] Click & Focus

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

问题描述

伙计们,我试图在VB.net中使用Click,GotFocus和

LostFocus事件为一个文本框,但我无法获得
找到它们像VB这样的事件列表,在哪里可以找到

... !!?

谢谢

解决方案

选择代码上方左侧组合中的文本框,事件将在代码上方的右侧组合中显示




Private Sub txtTotMin_Click( ByVal sender As Object,ByVal e As

System.EventArgs)处理txtTotMin.Click


结束子


Private Sub txtTotMin_GotFocus(ByVal sender As Object,ByVal e As

System.EventArgs)处理txtTotMin.GotFocus


End Sub


Private Sub txtTotMin_LostFocus(ByVal sender As Object,ByVal e As

System.EventArgs)处理txtTotMin.LostFocus


End Sub


希望它有所帮助


eric


" Rochdi" <一个******* @ discussions.microsoft.com>在消息中写道

news:04 **************************** @ phx.gbl ... < blockquote class =post_quotes>大家好,我试图在VB.net中使用Click,GotFocus和
LostFocus事件作为文本框,但我无法在事件列表中找到它们VB,我在哪里可以找到它们!! !!?

谢谢



*" Rochdi" <一个******* @ discussions.microsoft.com> scripsit:

大家好,我试图在VB.net中使用Click,GotFocus和
LostFocus事件作为文本框,但我无法在其中找到它们事件列表如VB,我在哪里可以找到它们!! !!




您可以在代码编辑器中使用隐藏高级显示高级成员

成员" 工具下的选项 - > "方式]; - > 文本编辑器 - > 基本

- > 一般。


-

Herfried K. Wagner [MVP]

< http:// www。 mvps.org/dotnet>


我试过了,但我找不到它们;在VB中他们是非常清楚但是vb.net我无法找到它们。

我试图勾选并取消勾选隐藏高级

成员" 工具下的选项 - > "方式]; - > 文字

编辑器 - > "碱性" - > 一般,但它没有工作

要么...... !!!!

-----原创消息-----
选择代码上方左侧组合中的文本框,
事件将在代码上方的右侧组合中

私有子txtTotMin_Click(ByVal发送者为对象,
ByVal e AsSystem.EventArgs)处理txtTotMin.Click

End Sub

私有子txtTotMin_GotFocus(ByVal发送者为
对象,ByVal e AsSystem .EventArgs)处理txtTotMin.GotFocus

结束Sub

私有子txtTotMin_LostFocus(ByVal发送者为
对象,ByVal和AsSystem.EventArgs)处理txtTotMin.LostFocus
希望它有所帮助

Rochdi <一个******* @ discussions.microsoft.com>写在
messagenews:04 **************************** @ phx.gbl ...

大家好,我试图在VB.net中使用Click,GotFocus和
LostFocus事件作为文本框但是我无法在像VB这样的事件列表中找到它们,我在哪里可以找到它们!! !!

谢谢





Hi guys, I was trying to use the Click, GotFocus and
LostFocus events for a textbox in VB.net but I couldn''t
find them in the events list like VB, where can I find
them..!!?
Thanks

解决方案

select the textbox in the left combo above your code and the events will be
in the right combo above your code

Private Sub txtTotMin_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles txtTotMin.Click

End Sub

Private Sub txtTotMin_GotFocus(ByVal sender As Object, ByVal e As
System.EventArgs) Handles txtTotMin.GotFocus

End Sub

Private Sub txtTotMin_LostFocus(ByVal sender As Object, ByVal e As
System.EventArgs) Handles txtTotMin.LostFocus

End Sub

hope it helps

eric

"Rochdi" <an*******@discussions.microsoft.com> wrote in message
news:04****************************@phx.gbl...

Hi guys, I was trying to use the Click, GotFocus and
LostFocus events for a textbox in VB.net but I couldn''t
find them in the events list like VB, where can I find
them..!!?
Thanks



* "Rochdi" <an*******@discussions.microsoft.com> scripsit:

Hi guys, I was trying to use the Click, GotFocus and
LostFocus events for a textbox in VB.net but I couldn''t
find them in the events list like VB, where can I find
them..!!?



You can show advanced members in the code editor with the "Hide advanced
members" option under "Tools" -> "Options" -> "Text Editor" -> "Basic"
-> "General".

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>


I''ve tried that, but I couldn''t found them; in VB they are
very clear but vb.net I couldn''t found them.
And I''ve tried to Tick and untick the "Hide advanced
members" option under "Tools" -> "Options" -> "Text
Editor" -> "Basic"-> "General", but it didn''t work
either...!!!!

-----Original Message-----
select the textbox in the left combo above your code and the events will bein the right combo above your code

Private Sub txtTotMin_Click(ByVal sender As Object, ByVal e AsSystem.EventArgs) Handles txtTotMin.Click

End Sub

Private Sub txtTotMin_GotFocus(ByVal sender As Object, ByVal e AsSystem.EventArgs) Handles txtTotMin.GotFocus

End Sub

Private Sub txtTotMin_LostFocus(ByVal sender As Object, ByVal e AsSystem.EventArgs) Handles txtTotMin.LostFocus

End Sub

hope it helps

eric

"Rochdi" <an*******@discussions.microsoft.com> wrote in messagenews:04****************************@phx.gbl...

Hi guys, I was trying to use the Click, GotFocus and
LostFocus events for a textbox in VB.net but I couldn''t
find them in the events list like VB, where can I find
them..!!?
Thanks


.



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

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