Re: How to for Smart Minimize

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Thanks Paul

This helped a lot!


Paul G. Tobey [eMVP] schrieb:

You don't really want to hide it if you're trying to match smart minimize.
You want to send it behind the bottom-most window in the stack and set its
size to 0. There might be some way to do this with only managed code, but
using SetWindowPos() is a single-step way (you have to P/Invoke it, of
course).

Paul T.

"Thomas" <thomas@xxxxxx> wrote in message
news:1167816418.571579.322640@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello Alex

Thanks for your reply. You're right that Hide() seems to do the same as
the "X" button. But what I was wondering is:

When I open a Form (lets say Form1) within my Application with .Show()
and then press the "X" button, the Form is listed in the current
running Programms.
On my device, I go to Settings -> Memory -> Running Programms and the
Form "Form1" is visible beside my MainForm.

But when I hide the Form by using this.Hide(), the Form isn't visible
in the List. Have you any idea why this behaviour is diffrent?

Greetings Thomas


Alex Yakhnin schrieb:

The "Smart Minimize" does nothing special. It just sends the program to
the
background. So, if you'd just call the Hide() method on your form it'd do
it.

--
Alex Yakhnin, Device Application Developer MVP
http://blog.opennetcf.org/ayakhnin

"Thomas" <thomas@xxxxxx> wrote in message
news:1167394554.382314.101540@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello

After some weeks of developing with compact framework, I figured out
that i still do not unterstand whats going on when i press the X of the
form.

I now added a Close button in my application and want it to have the
same behavior as the "X" button of the form. I figured out that neither
Hide() nor Close() have same result as the "X".

Does somebody know how to perform a Smart Minimize of the Form in code?

Thanks!



.



Relevant Pages

  • Re: Wireless settings
    ... I just thought Ethman would be a solution, because a note in MSDN says: ... When Ethman adds a wireless adapter, a dialog box that allows the user ... Paul G. Tobey schrieb: ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Wireless settings
    ... Ethman adds a wireless adapter, a dialog box that allows the ... schliz schrieb: ... It also provides a basic configuration dialog box for 802.11 adapters ... Paul G. Tobey schrieb: ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Wireless settings
    ... schliz schrieb: ... It also provides a basic configuration dialog box for 802.11 adapters ... Paul G. Tobey schrieb: ... it, a panel for configuring WLAN options, the key and so on ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Wireless settings
    ... Paul G. Tobey schrieb: ... it, a panel for configuring WLAN options, the key and so on appears. ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: IrDA to connect a printer
    ... Paul Yao's book has an excellent chapter on that in his book: ... Alex Yakhnin, NET CF MVP ... "Hans Strasser" wrote in message ...
    (microsoft.public.dotnet.framework.compactframework)