Sign in to follow this  
kuldeept

[.net] Problem in restoring the minimized IE windows

Recommended Posts

kuldeept    122
-------------------------------------------------------------------------------- Hi! I'm using C# as script to launch an IE windows using the Interop SHDocVw.dll's ShellWindowsClass.Navigate(...) function. Now I want the 1. newly launched window to be opened maximized. and 2. If this window is minimized then restore it. Is there any class in Interop SHDocVw.dll, through which I can achieve this? Presently the opening behaviour is not certain,sometimes it opens as expected,but other times new IE window gets created but remains minmized. Also in a normal C# program this is achievable using 'User32.dll''s ShowWindow(..,..) function, but when I try to use this in my script I get syntex error at [DllImport.....]. can someone help me. thanks in advance. regards. KT.

Share this post


Link to post
Share on other sites
kuldeept    122
Thanks for your reply.

Yes, I can use Process.Start(URL..) to open a simple URL, But my problem is that
1. I am also posting some data to that URL from my script,
2. then based on that posted data the server would do some action and redirect me to some page.
3. When I land into a particular page(that I identify using SHDocVw.InternetExplorerClass), I again have to post another request to the server and open the next page on the same IE window.

any clue how can I do this?

Thanks and Regards.
KT.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this