覆盖帮助请 [英] overrides help please

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

问题描述

我创建了一个用户控件,上面有一个文本框和按钮,我想要的是
要做的是用文本框覆盖usercontrol Keydown事件。

完成此操作的正确语法是什么?


我的文本框子示例: -

Private Sub Edit_KeyDown(ByVal sender As Object,ByVal e作为

System.Windows.Forms.KeyEventArgs)处理Edit.KeyDown

结束子


谢谢

I have created a users control with a text box and button on it, what I want
to do is override the usercontrol Keydown events with that of the Text box.
What is the correct syntax to accomplish this?

Example of my text box sub:-
Private Sub Edit_KeyDown(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Handles Edit.KeyDown
End Sub

Thanks

推荐答案

你好,


" Merlin" < JE ** @ jg-tech.co.uk> schrieb:
Hello,

"Merlin" <je**@jg-tech.co.uk> schrieb:
我创建了一个用户控件,上面有一个文本框和按钮,
我要做的是用文本框覆盖usercontrol Keydown事件
。什么是正确的语法来完成
这个?
I have created a users control with a text box and button on it,
what I want to do is override the usercontrol Keydown events
with that of the Text box. What is the correct syntax to accomplish
this?




你会期待什么行为?


问候,

Herfried K. Wagner

-

MVP·VB Classic,VB .NET
http://www.mvps.org/dotnet


" ;梅林" < JE ** @ jg-tech.co.uk> schrieb
"Merlin" <je**@jg-tech.co.uk> schrieb
我创建了一个用户控件,上面有一个文本框和按钮,我想要做的是用文本框覆盖usercontrol Keydown事件。


???

对不起,我不明白你的意图。


什么是正确的语法来完成这个?

我的文本框sub的示例: -
Private Sub Edit_KeyDown(ByVal sender As Object,ByVal e As
System.Windows.Forms.KeyEventArgs)Handles Edit.KeyDown
End Sub
I have created a users control with a text box and button on it, what
I want to do is override the usercontrol Keydown events with that of
the Text box.
???
Sorry, I don''t get your intention.

What is the correct syntax to accomplish this?

Example of my text box sub:-
Private Sub Edit_KeyDown(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Handles Edit.KeyDown
End Sub



-

Armin


--
Armin


对不起,我会尽量让自己更清楚: -


我想要做的是将我的UserControl放在一个表格然后在

UserControl KeyDown事件陷阱键从UserControl中的文本框中按下

。因此在其他词中使用文本框KeyDown事件覆盖UserControl KeyDown

事件。


谢谢,

Merlin

" Merlin" < JE ** @ jg-tech.co.uk>在消息中写道

news:bi ********** @ hercules.btinternet.com ...
Sorry, I''ll try to make myself clearer:-

What I want to be able to do is place my UserControl on a form and then in
the UserControl KeyDown Event trap key presses from my text box that is
within the UserControl. So in otherwords override the UserControl KeyDown
Events with the Text box KeyDown Events.

Thanks,
Merlin
"Merlin" <je**@jg-tech.co.uk> wrote in message
news:bi**********@hercules.btinternet.com...
我创建了一个带文本的用户控件它上面的框和按钮,我想要做的是用Text
框覆盖usercontrol Keydown事件。完成此操作的正确语法是什么?

我的文本框sub的示例: -
Private Sub Edit_KeyDown(ByVal sender As Object,ByVal e As
System.Windows.Forms .KeyEventArgs)处理Edit.KeyDown
End Sub

谢谢
I have created a users control with a text box and button on it, what I want to do is override the usercontrol Keydown events with that of the Text box. What is the correct syntax to accomplish this?

Example of my text box sub:-
Private Sub Edit_KeyDown(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Handles Edit.KeyDown
End Sub

Thanks



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

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