ContextMenuStrip不适用于在Surface Pro平板电脑上运行的Windows窗体应用程序上的ListBox控件 [英] ContextMenuStrip not working for ListBox control on Windows Forms app running on Surface Pro tablet

查看:60
本文介绍了ContextMenuStrip不适用于在Surface Pro平板电脑上运行的Windows窗体应用程序上的ListBox控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我一直很成功地将我公司的桌面应用程序(WinForms,C#)移植到我们的新Surface Pro平板电脑上,但一直无法获得ContextMenuStrip以手指或笔触摸出现"右键单击"在任何ListBox控件上。

I've been mostly successful porting my company's desktop app (WinForms, C#) to our new Surface Pro tablet, but have not been able to get a ContextMenuStrip to appear with a finger or pen touch "right click" on any of the ListBox controls.

我已经尝试清除ListBox的contextMenuStrip属性来测试MouseDown事件但是我也没有成功。

I've tried clearing out the ListBox's contextMenuStrip property to test MouseDown events but I have not been successful with that either.

ContextMenuStrips DO似乎可以与其他控件(ListViews,DataGridViews等)一起正常工作。此外,如果我连接了平板电脑的Type Cover并使用右键单击键盘下方触摸板的
部分,它们似乎适用于ListBox,但我想看看是否有一个选项来处理这个没有键入封面。

谢谢,

Bob

推荐答案

嗨Bob,

我'我无法说出你的问题属于哪里,因为你问的是如何在Surface Pro上处理手指和笔触事件,但你的应用程序类型是WinForm。

I'm not able to say where your issue belongs to because you are asking about how to handle finger and pen touch event on Surface Pro, but your application type is WinForm.

" ContextMenuStrips DO似乎与其他控件(ListViews,DataGridViews等)一起正常工作。"你的意思是这个问题只与列表框控件有关。如果你将你的控制权交给listview,你可以用笔/手指打开你的自定义contextmenustrip
touch?

"The ContextMenuStrips DO seem to work properly with other controls (ListViews, DataGridViews, etc.)." Do you mean this issue only related to listbox control. If you swith your control to listview, you can open your custom contextmenustrip with pen/finger touch?

实际上在我看来,类型封面就像鼠标一样。它会毫无问题地工作。但是为了处理手指/笔触,可能需要一些相关的api表面SDK。

Actually in my mind, type cover works like mouse. It will work without problem. But to deal with finger/pen touch, some related api like surface SDK may required.

这里报告这类问题怎么样:
http://social.msdn.microsoft.com/Forums/en-US/home?forum=surfaceappdevelopment

What about report this kind of issue here: http://social.msdn.microsoft.com/Forums/en-US/home?forum=surfaceappdevelopment

问候,

 


这篇关于ContextMenuStrip不适用于在Surface Pro平板电脑上运行的Windows窗体应用程序上的ListBox控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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