Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How do you maximise or minimise a window in VB.NET?

36 views
Skip to first unread message

AAW

unread,
Jan 15, 2008, 2:17:29 AM1/15/08
to

I have an application that I need to minimise to the tray and then at a
press of a button it needs to maximise and come to the front for a few
seconds and then minimise again.

Failing that it can go behind other windows and then come to the fore at
a press of a button and then go back behind the other windows after a
few seconds.

Basically I need it out of sight until the button press and then I need
it visible for a few seconds before it goes back out of sight.

Any ideas how to do that?

Thanks.

Jan Hyde (VB MVP)

unread,
Jan 15, 2008, 4:04:15 AM1/15/08
to
AAW <andrew....@psy.umu.se_remove>'s wild thoughts were
released on Tue, 15 Jan 2008 08:17:29 +0100 bearing the
following fruit:

Step 1 - ask in a dotnet group

This group deals with VB6 and below, .net groups have
'dotnet' in the name.

--
Jan Hyde

https://mvp.support.microsoft.com/profile/Jan.Hyde

AAW

unread,
Jan 15, 2008, 5:38:32 AM1/15/08
to
Oops, thanks :)

Trammel

unread,
Jan 16, 2008, 1:23:22 PM1/16/08
to
"AAW" <andrew....@psy.umu.se_remove> wrote in message
news:fmhmo2$5ri$1...@hudsucker.umdac.umu.se...

Use a systemwide hotkey (this is the object that I use):
http://www.freevbcode.com/ShowCode.asp?ID=2844

Upon the hotkey being pressed, maximize the window (and maybe set visable to
true?) and set a timer.
Upon the timer triggering, return to minimized (and maybe set visable to
false?)

How you use it is upto you... but you need to either use that dll or hook
the keyboard yourself using API calls.
Using the dll is MUCH easier


AAW

unread,
Jan 17, 2008, 2:24:15 AM1/17/08
to
Trammel wrote:
> Upon the hotkey being pressed, maximize the window (and maybe set visable to
> true?) and set a timer.
> Upon the timer triggering, return to minimized (and maybe set visable to
> false?)
>
> How you use it is upto you... but you need to either use that dll or hook
> the keyboard yourself using API calls.
> Using the dll is MUCH easier
>
>

OK, thanks :)

0 new messages