Resolved window.hwnd via DTE

Skydiver

Staff member
Joined
Apr 6, 2019
Messages
5,251
Location
Chesapeake, VA
Programming Experience
10+
What is DTE ?
 

Skydiver

Staff member
Joined
Apr 6, 2019
Messages
5,251
Location
Chesapeake, VA
Programming Experience
10+
Ah! The Visual Studio Development Tools Environment. Let me move this question out of the General C# Discussion forum and into someplace more appropriate since your question is more about Visual Studio's object model, rather than the C# language itself.
 

Skydiver

Staff member
Joined
Apr 6, 2019
Messages
5,251
Location
Chesapeake, VA
Programming Experience
10+
So a quick pair of Google searches reveals the DTE.MainWindow returns a Window, and that Window.Hwnd returned the window handle. So why can't you just access DTE.MainWindow.Hwnd ?
 

jmcilhinney

C# Forum Moderator
Staff member
Joined
Apr 23, 2011
Messages
4,467
Location
Sydney, Australia
Programming Experience
10+
Maybe you should try providing a FULL and CLEAR explanation of the problem. That would include a description of EXACTLY what you're trying to achieve, how you're trying to achieve it and what happens when you try. Images can help but they are not a substitute for words, so provide an explanation and also post any relevant code and error messages as text, formatted appropriately.
 
Top Bottom