WM5 Resizes my forms

  • Thread starter Thread starter dgrier
  • Start date Start date
D

dgrier

The application I have written creates a form and shows it as a modal
dialogue. Below is an example.


PopUp p = New PopUp();
p.ShowDialogue();


Obviously, it should be a pop up that does not cover the entire
screen. I have set the properites to the following:

Size: 240, 100
TopMost: True
WindowState: Normal

However, I can no set the location (it always defaults to 0,26) and it
always appears fullscreen despite the noted settings.

Am I missing an important function call and/or setting?
 
Your not missing anything. That's pretty much how the forms work. If you
are running PocketPC, then you can set the Form's WindowState attribute to
Maximize and it will set the form's top position to 0,0 and cover the entire
screen.


Rick D.
Contractor
 
The code in this blog entry might be instructive for you. It was a test for
CE, but it allows you to modify all of the style bits of a window and see
the effect. WM/PPC has it's own definition of window behavior, so this
would give you an idea of what bits are necessary for the look you're after:

http://blog.opennetcf.org/ctacke/PermaLink,guid,ccd42b42-9ab4-46ba-974f-2b959da7a488.aspx

My bet is you'll end up with a borderless form and your own OK/Close button.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded World
www.OpenNETCF.com
 
Back
Top