当我按Ctrl + F时,我想弹出窗口形式 [英] when i strike Ctrl+ F i would like to appear my window form as pop up

查看:64
本文介绍了当我按Ctrl + F时,我想弹出窗口形式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的购买表单上,如果用户想要查找产品详细信息,用户必须在文本框中填写产品名称按Ctrl + F并在弹出窗体中查找产品详细信息



可以这样做吗?

On my purchase form user have to fill product name in textbox if user want to find product details press Ctrl+F and find details of products on pop up form

is it possible to do like that?

推荐答案

不要试图这样做。许多浏览器都保留Ctrl + F以在当前页面上进行搜索。此外,在大多数情况下,弹出窗口是邪恶的。



-SA
Don't try to do it. Ctrl+F is reserved by many browsers for search on a current page. Besides, pop-ups is evil, in most cases.

—SA


嗨Devaa ,你可以使用Access键来控制,当你按下分配给控件的Alt +访问键时,它会自动启动该事件的屏幕。但我不确定Crtl +访问密钥,我已经完成了Alt +访问密钥。



这里是示例代码



Hi Devaa, u can do this with Access key to a control, when ever u press Alt+ access key assigned to the control, then it will automatically, launches the screen for that event. but I am not sure about Crtl+access key, I have done with Alt+access key.

here is sample code

<Button IsEnabled="True" Name="SignatureOkButton" Margin="5,10,5,0" Height="25" Width="80" Click="Button_Click" HorizontalAlignment="Right">
                <StackPanel Orientation="Horizontal">
                    <Image Name="imgSign" Source="Images/ImgSingleSelect.bmp" Margin="0,0,5,0"/>
                    <TextBlock Name="txtSign">
                        <Underline>O</Underline>K
                    </TextBlock>
                    <AccessText Text="_O" Height="0" Width="0"/>
                </StackPanel>
</Button>





当我点击Alt + O时,那么事件是什么为此按钮编写,将使用Alt按钮从访问键升起。



试试这个。希望这有帮助



有任何疑问,请在这里发布,

谢谢

Ganesh



When I click on Alt+O, then the event what is written for this button , will raise from the access key with Alt button.

Try this. Hope this helps

any doubts, please post here,
Thanks
Ganesh


Quote:

不要尝试这样做。许多浏览器都保留Ctrl + F以在当前页面上进行搜索。此外,在大多数情况下,弹出窗口是邪恶的。



-SA

Don't try to do it. Ctrl+F is reserved by many browsers for search on a current page. Besides, pop-ups is evil, in most cases.

—SA





嗯,这是肯定的,但如果你想要使用它,请尝试MouseTrap:



https://github.com/ccampbell/mousetrap [ ^ ]



或jwerty:



http://keithcirkel.co.uk/jwerty/ [ ^ ]



或短信:



https://github.com/riklomas/shortkeys [ ^ ]



希望我帮助:)



Well this is sure , but if you do want to go with it , try MouseTrap:

https://github.com/ccampbell/mousetrap[^]

or jwerty:

http://keithcirkel.co.uk/jwerty/[^]

or shortkeys:

https://github.com/riklomas/shortkeys[^]

Hope i helped :)


这篇关于当我按Ctrl + F时,我想弹出窗口形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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