链接按钮问题需要帮助 [英] Need Help in Link button issue

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

问题描述

大家好



我有一侧菜单栏我有链接按钮。我已经为该链接按钮指定了快捷键,即ALT + R

现在我想要,如果我按下ALT + R,那么它应该打开相应的页面..

请告诉我如何分配这个



谢谢

解决方案

LinkLabel没有这个属性

但你可以通过Handelling KeyUp或KeyDown实现您的表格事件



 私人  Sub  Form1_KeyUp(发件人作为 对象,e 作为 KeyEventArgs)句柄  .KeyUp 
如果 e.Alt 然后
如果 e。 KEYDATA = Keys.R 然后 Form2.Show()
结束 如果
结束 Sub


Hi all

I have one side menubar where i have link buttons.i have assigned shortcut key to that link button i.e. ALT+R
now i want like suppose if i press ALT+R, then it should open the respective page..
Please tell me how to assign this

Thank you

解决方案

LinkLabel Doesn''t have this Property
But You can Make Possible by Handelling KeyUp or KeyDown Event of Your Form

Private Sub Form1_KeyUp(sender As Object, e As KeyEventArgs) Handles Me.KeyUp
    If e.Alt Then
        If e.KeyData = Keys.R Then Form2.Show()
    End If
End Sub


这篇关于链接按钮问题需要帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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