Hmm, I see. Maybe you should create a Windows Form that hosts this COM
component.
Add the component as a reference, you'll get an interop asssembly generated.
Drag the control onto your form and set it to dock-fill or limit the form
size to the size of the control then do application.Run(....) on the form
you created.
--
Bob Powell [MVP]
C#, System.Drawing
The November edition of Well Formed is now available.
Learn how to create Shell Extensions in managed code.
http://www.bobpowell.net/currentissue.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm
Read my Blog at
http://bobpowelldotnet.blogspot.com
"Lars von Wedel" <vo******@lfpt.rwth-aachen.de> wrote in message
news:Xn**********************************@137.226. 144.7...
Hello,
Use Application.Run(new myForm()) This starts the message loop for the
application and shows the form.
I have no access to the source code of the console application. The
console app just calls a method of my COM component and I currently do a
form.ShowDialog().
Do you suggest to perform Application.Run within the plugin component?
Lars