I have an Windows Forms app and I open an external application from it,
for example MS Word:
|
Is it possible to set window size for 'myProcess', lets say w: 1024px and h: 768px, and is it possible to disable maximize button.
Thanks in advance and best regards.
Sam HobbsPosted Apr 7, 2010, 10:49 AM
I am not familiar with the latest versions of Word but I think what you are trying to do is more complicated due to Word's use of a single instance of the applicaton. In other words, if Words is already executing when you open a document, then the process you create using the Process class will pass the document to the existing instance of Word and then exit, so the process will go away very quickly,
So you should use the Word object model or whatever it is called to open the document, not the Process class.