Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

How to close custom editor programtically in VSPackage

$
0
0

Hi All,

I created a custom editor in my VSPackage using the following code:

public class MyEditorControl : System.Windows.Forms.UserControl,
IVsPersistDocData,
IPersistFileFormat,
IVsWindowPane,
IVsDocDataFileChangeControl

I have created the editor instance in IVsEditorFactory factory class. I have a button inside this control.I want this editor has to be closed when user clicks the button. I tried to get parent of this usercontrol but it is showing as null. How can I close the editor programatically.

Thanks in advance,

Sriram


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>