Creating non maximized form in CF

G

Guest

Hi,
how can i make a form with takes e.g. half of the screen?
Anytime i make such a form with specifying size property smaller than size
of the screen, it's maximized when running the program. Disregarding
WindowState property is set to Normal. I wold like to make a form which looks
like System.Windows.Forms.MessageBox. I have not found any problems when
doing the same thing in adult .NET.
 
P

Peter Foot [MVP]

Set the BorderStyle to None, then you can resize the form. Note however if
you want a single pixel border around the window or a caption bar you'll
have to draw these yourself in an OnPaint override.

Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top