试图在代码视图中显示一个弹出窗口 [英] Trying to show a popup window in the codeview

查看:65
本文介绍了试图在代码视图中显示一个弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我为Visual Studio 2005创建了一个程序包(使用C#),当用户在代码视图中双击时,我想在其中显示一个弹出窗口(还包括richedit控件). .由于我的弹出窗口显示正确,所以似乎工作正常,但通常输入,退格键和箭头键不会被我的窗口捕获,但仍会被代码视图捕获.所有字母数字键都可以正常工作,因为我可以编辑richedit的内容.这是我用来显示弹出窗口的内容:

Hello,

I have created a package for visual studio 2005 (using C#) where I would like to show a popup window (which also includes a richedit control) when the user is double clicking in the codeview. Thing seems to work well because my popup window is correctly shown, but frequently enter, backspace and arrows keys are not catched by my window but still by the codeview. All alphanumeric keys are working well because I can edit the content of my richedit. Here is what I'm using to show the popup :

<身体>
ToolStripDropDown tsdd == new ToolStripDropDown ();
ToolStripControlHost host = new ToolStripControlHost(_MyPopup );
tsdd.Items.Add(主机);
tsdd.Closed + = new ToolStripDropDownClosedEventHandler ( ._ MyPopup_Closed);
tsdd.Show( Point(x,y));
ToolStripDropDown tsdd = new ToolStripDropDown( );  
ToolStripControlHost host = new ToolStripControlHost( _MyPopup );  
tsdd.Items.Add( host );  
tsdd.Closed += new ToolStripDropDownClosedEventHandler( this._MyPopup_Closed );  
tsdd.Show( new Point( x, y ) ); 

推荐答案

阅读
Read Sticky: How to ask questions to increase your chances of an answer first and try to post more detailed information to reproduce this issue.

Thanks.


这篇关于试图在代码视图中显示一个弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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