在Excel中双击或右键单击的默认操作是什么 [英] What is the default action of double click or right click in excel

查看:135
本文介绍了在Excel中双击或右键单击的默认操作是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要知道在Excel中双击或右键单击的默认操作?



我在C#Winform应用程序中使用了Excel查看器。此查看器动态打开具有各种页数的不同.xls文件。我必须在应用程序开始时保护所有工作表,并且还要保护sheetchange事件处理程序的结束。



现在我想允许用户使用一些快捷键,如{ F1}或Ctrl + S.但是没有一个键工作,我认为这是因为我已经在纸张上应用了保护。我是对的吗?



我发现当我双击或右键单击一个单元格时,所有键都被激活了!所以看起来excel在后台做我需要的默认双击或右击动作。



提前感谢...

I need to know the default action of double click or right click in excel?

I have used an Excel viewer in my C# Winform application. This viewer opens different .xls files with various number of sheets dynamically. I have to protect all sheets at the beginning of the application and also end of the sheetchange event handler.

Now I want to allow user to use some shortcut keys like {F1} or Ctrl+S. But none of the keys are working and I think this is because of the protection that I have applied on sheets. Am I right?

I have found that when i double click or right click on a cell all of the keys activated again! so it seems that the excel do what i need in background as its default double or right click action.

thanks in advance...

推荐答案

您可以尝试将焦点设置为包含此excel的组件。

这可能会使excel处于焦点状态,就像右键单击它一样!



如何将焦点设置为任何表格控制 [ ^ ]
You could try to set focus to the component that holds this excel.
This might put excel in focus just like right clicking on it will do!

How to Set Focus to Any Form Control[^]


这篇关于在Excel中双击或右键单击的默认操作是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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