向上箭头作为TAB键 [英] Up Down Arrows as TAB Key

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

问题描述

您好:


我想让向下箭头作为Tab键,向上箭头表示

like(-TAB) 。)。


我有这个用于向下箭头但没有任何反应。


受保护的覆盖函数ProcessDialogKey(ByVal keyData As Keys)As

布尔值

MyBase.ProcessDialogKey(keyData)

如果keyData = System.Windows.Forms.Keys.Down那么

keyData = System.Windows.Forms.Keys.Tab

结束如果

结束功能

TIA


Bob

Hello:

I''m tring to make the down arrow act as a tab key and the up arrow act as
like (-TAB.).

I have this for the down arrow but nothing happens.

Protected Overrides Function ProcessDialogKey(ByVal keyData As Keys) As
Boolean
MyBase.ProcessDialogKey(keyData)
If keyData = System.Windows.Forms.Keys.Down Then
keyData = System.Windows.Forms.Keys.Tab
End If
End Function
TIA

Bob

推荐答案

在if

语句之后调用MyBase.ProcessDialogKey(keyData)。 br />

受保护的覆盖函数ProcessDialogKey(ByVal keyData As

System.Windows.Forms.Keys)As Boolean

如果keyData = Keys。下来然后

keyData = Keys.Tab

结束如果

MyBase.ProcessDialogKey(keyData)

结束函数

" Bob&quo吨; <无**** @ nospammers.com>在消息中写道

news:C2hRe.26816
Put the call to the MyBase.ProcessDialogKey(keyData) AFTER the if
statement.

Protected Overrides Function ProcessDialogKey(ByVal keyData As
System.Windows.Forms.Keys) As Boolean
If keyData = Keys.Down Then
keyData = Keys.Tab
End If
MyBase.ProcessDialogKey(keyData)
End Function
"Bob" <no****@nospammers.com> wrote in message
news:C2hRe.26816


FL1.13685@trnddc09 ...
FL1.13685@trnddc09...
你好:
<我想让向下箭头作为一个tab键,向上箭头就像(-TAB。)一样。

我有这个用于向下箭头但没有任何反应。

受保护的覆盖函数ProcessDialogKey(ByVal keyData As Keys)As
Boolean
MyBase.ProcessDialogKey(keyData)
如果keyData = System.Windows.Forms .Keys.Down然后
keyData = System.Windows.Forms.Keys.Tab
结束如果
结束功能

TIA

鲍勃
Hello:

I''m tring to make the down arrow act as a tab key and the up arrow act as
like (-TAB.).

I have this for the down arrow but nothing happens.

Protected Overrides Function ProcessDialogKey(ByVal keyData As Keys) As
Boolean
MyBase.ProcessDialogKey(keyData)
If keyData = System.Windows.Forms.Keys.Down Then
keyData = System.Windows.Forms.Keys.Tab
End If
End Function
TIA

Bob



有些人:


奇怪的是我原来的帖子没有出现在我想要的地方。感谢

响应尽管我搞砸了。


你的sugextion看起来应该基于其他文章。我是b / b
以为我错过了一点这一点。也许我把它放在我的代码中错误的地方。


我试过从像这样的控制器调用它


Dim MyKey As System.Windows.Forms.Keys

MyBase.ProcessDialogKey(MyKey)


但是没有任何反应。我希望它能够完成整个表格。请

我需要在某个地方举办活动吗?此外,它会降低速度还是会降低价格b / b我会更好地说服客户使用传统方法

导航控制器。请记住我有327个控制点。


再次感谢


TIA


鲍勃
Some Guy:

Strange how my original post didn''t show up where I intended. Thanks for the
response despite my screw up.

Your sugextion looks like it should work based on other articles. I''m
thinking I''m missing one little bit of this. Maybe I''m putting it in the
wrong place in my code.

I tried calling it from a controle like this

Dim MyKey As System.Windows.Forms.Keys
MyBase.ProcessDialogKey(MyKey)

Yet nothing happens. I would like it to work through out the whole form. Do
I need to raise the event somewhere? Also, will it slow things down or would
I be better to try to convince the client to use traditional methods to
navigate the controles. Please keep in mind I have 327 controles.

Thanks Again

TIA

Bob


这篇关于向上箭头作为TAB键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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