Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prevent Moving of Form?

Status
Not open for further replies.

Wings

Programmer
Feb 14, 2002
247
US
Hi,
I have a main form which I start up as maximized,with a single border, and no border icons.

The problem is that the user and click on the top of the border and simply drag the form over. Is there a way to prevent this without using borderstyle of none (which just looks ugly)?

I dont want them to be able to access the desktop this way,
All other access to the desktop have been removed, this is the last problem.

Any ideas?

Thanks
 
I think you should reset the flag WS_CAPTION

Ion Filipski
1c.bmp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top