By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,249 Members | 1,614 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,249 IT Pros & Developers. It's quick & easy.

restoring a minimized window

P: n/a
i need to restore a minimized window whose handle i know, from within a
running app.

how would i do that?

thanks for any help

ray
Sep 24 '07 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Have you tried Form.WindowState?

--
Rgds,
Anand
VB.NET MVP
http://www.dotnetindia.com
"ray well" wrote:
i need to restore a minimized window whose handle i know, from within a
running app.

how would i do that?

thanks for any help

ray
Sep 24 '07 #2

P: n/a
thanks anand for your answer
>>Have you tried Form.WindowState?
Form.ActiveForm.WindowState = FormWindowState.Normal, works only for the
CURRENT RUNNING APP
i need to RESTORE ANOTHER WINDOW OF ANOTHER APP whose handle i have FROM
WITHIN A CURRENT APP.

Sep 24 '07 #3

P: n/a
You can use pinvoke and call the ShowWindow API with the SW_MAXIMIZE flag:

http://www.pinvoke.net/default.aspx/...howWindow.html

Cheers,
Johnny J.


"ray well" <no****@nospam.comskrev i meddelandet
news:%2****************@TK2MSFTNGP04.phx.gbl...
>i need to restore a minimized window whose handle i know, from within a
running app.

how would i do that?

thanks for any help

ray


Sep 25 '07 #4

P: n/a
That would be SW_RESTORE as the poster wants to restore the window, not
maximize it.

---------
- G Himangi, Sky Software http://www.ssware.com
Shell MegaPack : GUI Controls For Drop-In Windows Explorer like Shell
Browsing Functionality For Your App (.Net & ActiveX Editions).
EZNamespaceExtensions.Net : Develop namespace extensions rapidly in .Net
EZShellExtensions.Net : Develop all shell extensions,explorer bars and BHOs
rapidly in .Net
---------

"Johnny Jörgensen" <jo**@altcom.sewrote in message
news:em****************@TK2MSFTNGP05.phx.gbl...
You can use pinvoke and call the ShowWindow API with the SW_MAXIMIZE flag:

http://www.pinvoke.net/default.aspx/...howWindow.html

Cheers,
Johnny J.


"ray well" <no****@nospam.comskrev i meddelandet
news:%2****************@TK2MSFTNGP04.phx.gbl...
>>i need to restore a minimized window whose handle i know, from within a
running app.

how would i do that?

thanks for any help

ray



Sep 25 '07 #5

P: n/a
True - sorry, I must have been tired... :-)

/Johnny J.


"G Himangi" <in**@ssware.comskrev i meddelandet
news:e%****************@TK2MSFTNGP03.phx.gbl...
That would be SW_RESTORE as the poster wants to restore the window, not
maximize it.

---------
- G Himangi, Sky Software http://www.ssware.com
Shell MegaPack : GUI Controls For Drop-In Windows Explorer like Shell
Browsing Functionality For Your App (.Net & ActiveX Editions).
EZNamespaceExtensions.Net : Develop namespace extensions rapidly in .Net
EZShellExtensions.Net : Develop all shell extensions,explorer bars and
BHOs rapidly in .Net
---------

"Johnny Jörgensen" <jo**@altcom.sewrote in message
news:em****************@TK2MSFTNGP05.phx.gbl...
>You can use pinvoke and call the ShowWindow API with the SW_MAXIMIZE
flag:

http://www.pinvoke.net/default.aspx/...howWindow.html

Cheers,
Johnny J.


"ray well" <no****@nospam.comskrev i meddelandet
news:%2****************@TK2MSFTNGP04.phx.gbl...
>>>i need to restore a minimized window whose handle i know, from within a
running app.

how would i do that?

thanks for any help

ray




Sep 25 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.