Hello,

How can I make my app stay in the desktop working area? I don't want
the users to be able to hide part of the app by dragging it away.

Thanks

Re: C# Desktop Working Area by Stoitcho

Stoitcho
Tue Jan 10 08:46:22 CST 2006

The simplest way of doing this is to maximize your application. Beside this
there is no other automatic solution AFAIK.

If you want to handle it your self you can hook on the Move event and adjust
the position of the window once the user stop moving it.


--

Stoitcho Goutsev (100)

<pocketbin@hotmail.com> wrote in message
news:1136890022.162125.111960@g14g2000cwa.googlegroups.com...
> Hello,
>
> How can I make my app stay in the desktop working area? I don't want
> the users to be able to hide part of the app by dragging it away.
>
> Thanks
>



Re: C# Desktop Working Area by pocketbin

pocketbin
Tue Jan 10 09:49:33 CST 2006

Thanks for your reply. Do you know how to detect when the user has
stopped moving it?


Re: C# Desktop Working Area by Stoitcho

Stoitcho
Tue Jan 10 10:07:47 CST 2006

Yesm I just answered this question for some other poster. I'll copy paste my
answer here as well

"
Catch WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE windows messages. These are the
markers that Windows puts et the begining and at the end of the move/resize
modal loop.
"

To process windows message override form's WndProc virtual method.

The integer constands of these messages are:
WM_ENTERSIZEMOVE 0x0231
WM_EXITSIZEMOVE 0x0232


--
HTH
Stoitcho Goutsev (100)

<pocketbin@hotmail.com> wrote in message
news:1136908173.330035.131270@g49g2000cwa.googlegroups.com...
> Thanks for your reply. Do you know how to detect when the user has
> stopped moving it?
>