选择一个事件 [英] Selecting an event

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

问题描述



我是.NET的新手,虽然用VB编程。我习惯于从VB IDE的右侧下拉框中选择一个来自

的事件。这似乎已经改变了

..NET。你如何选择一个事件,例如,表格

对象的点击事件,以便为该事件编写一个方法。


谢谢你你的帮助

问候

Ant

Hi,
I''m new to .NET, though program with VB. I''m used to selecting an event from
the right side drop down box of the VB IDE. That seems to have changed with
..NET. How do you choose an event, say for example, the click event of a form
object so as to write a method for that event.

Thanks for your help on this
Regards
Ant

推荐答案

1 - 只需双击The宾语。例如,绘制按钮然后

双击它。这将把你带到button_click事件。


2-默认情况下点击事件,如果你想要双击事件

那么,画出按钮首先,然后当你在代码视图中。选择班级中的按钮

名称,然后选择你想要的活动。


" Ant"写道:
1 - Just double click on The object. For example, Draw the button and then
double click on it. That would take u to the button_click event.

2- the click event would be by default, if you want a double click event
then , draw button first, then when ur in code view. Choose button in class
name on top, and then choose the event u want.


"Ant" wrote:

我是.NET的新手,虽然用VB编程。我习惯从VB IDE的右侧下拉框中选择一个事件。
.NET似乎已经改变了。你如何选择一个事件,例如表格
对象的点击事件,以便为该事件编写一个方法。

感谢您对此的帮助
问候
Ant
Hi,
I''m new to .NET, though program with VB. I''m used to selecting an event from
the right side drop down box of the VB IDE. That seems to have changed with
.NET. How do you choose an event, say for example, the click event of a form
object so as to write a method for that event.

Thanks for your help on this
Regards
Ant



嗨马里奥,

谢谢你,但是它仍然没有更清楚。我理解如何通过点击控件获得默认事件

,但我如何获得

到所有其他事件,例如,i不知道,比方说,LostFocus或MouseDown,

或KeyUp。一旦我进入代码页面,就在那里。有两个下降

下来的盒子。左上方只显示className.formName,右上角显示每个控件和表格上的每个控件。默认事件

(通常是点击事件,当你点击它时它会自动打开的事件)。我如何参加所有其他活动。


非常感谢您的帮助

Ant


" ;马里奥与QUOT;写道:
Hi mario,
Thanks for that, however It''s still no clearer. I understand how i can get
to the default event, that is, by clicking on the control, but how do i get
to all the other events such as, i don''t know, say, LostFocus or MouseDown,
or KeyUp. Once I''m in the ''code'' page, where from there. There are two drop
down boxes. The top left appears only to display className.formName, the one
on the top right displays each control on the form & the default event
(usually a click event, the event which it automatically opens to when you
click it). How do I get to all the other events.

Thanks very much for your help
Ant

"Mario" wrote:
1 - 只需双击该对象。例如,绘制按钮然后双击它。这将把你带到button_click事件。

2-如果你想要一个双击事件,那么点击事件将是
然后,首先绘制按钮,然后当你在代码视图中。选择上面的班级名称按钮,然后选择你想要的活动。


Ant写道:
1 - Just double click on The object. For example, Draw the button and then
double click on it. That would take u to the button_click event.

2- the click event would be by default, if you want a double click event
then , draw button first, then when ur in code view. Choose button in class
name on top, and then choose the event u want.


"Ant" wrote:

我是.NET的新手,虽然用VB编程。我习惯从VB IDE的右侧下拉框中选择一个事件。
.NET似乎已经改变了。你如何选择一个事件,例如表格
对象的点击事件,以便为该事件编写一个方法。

感谢您对此的帮助
关于
Ant
Hi,
I''m new to .NET, though program with VB. I''m used to selecting an event from
the right side drop down box of the VB IDE. That seems to have changed with
.NET. How do you choose an event, say for example, the click event of a form
object so as to write a method for that event.

Thanks for your help on this
Regards
Ant



正是您所说的。在第一个下拉框中选择对象名称

例如button1。然后在第二个下拉框中选择你想要的活动,这将是mousedown或doubleclick。

" Ant"写道:
exactly what you said. Choose the object name in the first drop down box
which would be button1 for example. then choose the event u want for it in
the second drop down box which would be mousedown or doubleclick.
"Ant" wrote:
嗨马里奥,
谢谢你,但它仍然没有更清楚。我理解如何通过点击控件来获取默认事件,但是如何获得所有其他事件,例如,我不知道,比方说, LostFocus或MouseDown,
或KeyUp。一旦我进入代码页面,就在那里。有两个下降框。左上角只显示className.formName,右上角的那个显示表格上的每个控件&默认事件
(通常是点击事件,当您点击它时它会自动打开的事件)。我如何参加所有其他活动。

非常感谢你的帮助
Ant

马里奥写道:
Hi mario,
Thanks for that, however It''s still no clearer. I understand how i can get
to the default event, that is, by clicking on the control, but how do i get
to all the other events such as, i don''t know, say, LostFocus or MouseDown,
or KeyUp. Once I''m in the ''code'' page, where from there. There are two drop
down boxes. The top left appears only to display className.formName, the one
on the top right displays each control on the form & the default event
(usually a click event, the event which it automatically opens to when you
click it). How do I get to all the other events.

Thanks very much for your help
Ant

"Mario" wrote:
1 - 只需双击该对象。例如,绘制按钮然后双击它。这将把你带到button_click事件。

2-如果你想要一个双击事件,那么点击事件将是
然后,首先绘制按钮,然后当你在代码视图中。选择上面的班级名称按钮,然后选择你想要的活动。


Ant写道:
1 - Just double click on The object. For example, Draw the button and then
double click on it. That would take u to the button_click event.

2- the click event would be by default, if you want a double click event
then , draw button first, then when ur in code view. Choose button in class
name on top, and then choose the event u want.


"Ant" wrote:

我是.NET的新手,虽然用VB编程。我习惯从VB IDE的右侧下拉框中选择一个事件。
.NET似乎已经改变了。你如何选择一个事件,例如表格
对象的点击事件,以便为该事件编写一个方法。

感谢您对此的帮助
问候
Ant
Hi,
I''m new to .NET, though program with VB. I''m used to selecting an event from
the right side drop down box of the VB IDE. That seems to have changed with
.NET. How do you choose an event, say for example, the click event of a form
object so as to write a method for that event.

Thanks for your help on this
Regards
Ant



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

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