System.ArgumentException:ContextMenu不能显示在不可见的控件上 [英] System.ArgumentException: ContextMenu cannot be shown on an invisible control

查看:239
本文介绍了System.ArgumentException:ContextMenu不能显示在不可见的控件上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

"System.ArgumentException:ContextMenu无法显示在不可见的控件上"

"System.ArgumentException: ContextMenu cannot be shown on an invisible control"

同样,一台运行该程序的计算机在程序启动时弹出此错误...所有其他计算机都没有此问题...

Again, one of the computer running the program pops this error at the time the program starts... all other computers don't have such problem...

可能是什么原因?

我很难发布代码,因为它太长了,我也不知道代码的哪一部分可能导致问题...

It's difficult for me to post the code because it's too long and I don't know which segment of the code is likely to cause the problem...

我搜索了Google,但大多数相关结果都不是英语.....

I searched Google but most related results are not English.....

.NET似乎有很多这个奇怪的问题,或者仅仅是我的编程问题?

It seems .NET has lots of this weird problem or just my programming problem?

推荐答案

嗯,我不明白与显示上下文菜单有关的ArgumentException?

Hmm, I cant understand what has ArgumentException to do with Showing up the Context Menu?

无论如何,您在哪里显示此菜单?如果可能的话,将代码片段发布到您曾使用该上下文菜单的地方.

Anyhow, Where you are showing this Menu? Post pieces of code where you have worked with that context menu if possible.

最好的问候


这篇关于System.ArgumentException:ContextMenu不能显示在不可见的控件上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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