Patrick,
The easiest way is to make the form borderless, by setting the
FormBorderStyle to None. This also gets rid of the caption.
Another option is to set the ControlBox, MinimizeBox & MaximizeBox
properties to False, then set the Text property to an empty string, you will
still have a border, but no caption, so the user cannot move the form. If
you go this route consider setting the FormborderStyle to a fixed size, or
setting the MinimumSize & MaximumSize to the Size property so the form
cannot be resized.
Handling the Move event for the form and forcing the position to remain
where the form started, causes a awful screen flicker...
Not sure if overriding Control.WndProc & handling WM_MOVING,
WM_WINDOWPOSCHANGING or another Win32 message would help (I've never tried
overriding WndProc yet).
Hope this helps
Jay
"Patrick De Ridder" <00*@000.com> wrote in message
news:oa********************************@4ax.com...
My program produces a number of overviews, for which
I use different forms, which are displayed. These forms are
displayed at certain positions on the screen. I don't want
the user of the program to start moving them about.
Is there a way to fix displayed forms on the screen so
they cannot be moved about?
Thanks.
--
Patrick
--
Regards,
Patrick De Ridder.