窗口应用程序:将窗体动态添加到面板时,不会发生右键单击 [英] Window Application: Right click is not happening when form is being added dynamically onto panel

查看:64
本文介绍了窗口应用程序:将窗体动态添加到面板时,不会发生右键单击的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

We are developing a windows based application using .NET 3.5 SP1. We have a form on which we have placed the panel control. First part of the panel displays the link of the form which needs to be opened in the right side panel. The problem is that, when the form is opened by clicking the left side panel link on to the panel, the form is displayed on the right side panel. However, the right click feature is not working on th form which is opened in the right side panel. Interesting part is that, if we open the form from the left side panel by using the right click option (pop-up). Then the right click works. Can anyone please let me know if you have ever encountered this issue? And If yes, then what is the cause and a fix for it..

  ;

  ;我们正在使用以下代码将控件添加到面板中

form1 f1 =新的form1();

form1 f1 = new form1();

f1.topLevel = false;

f1.topLevel=false;

f1.show = true;

f1.show=true;

panel1.controls.add(f1);

panel1.controls.add(f1);



谢谢.

Thanks.

推荐答案

 

谢谢您的发帖!  ;我建议将您的问题发布到MS论坛之一中

Thank you for your post!  I would suggest posting your question in one of the MS Forum

Windows开发人员中心 > Windows窗体论坛 > Windows窗体常规
Windows Developer Center > Windows Forms Forums > Windows Forms General


这篇关于窗口应用程序:将窗体动态添加到面板时,不会发生右键单击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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