Creating non maximized form in CF

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
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
 
Back
Top