PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework WM5 Resizes my forms

Reply

WM5 Resizes my forms

 
Thread Tools Rate Thread
Old 20-06-2007, 09:51 PM   #1
dgrier@gmail.com
Guest
 
Posts: n/a
Default WM5 Resizes my forms


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?

  Reply With Quote
Old 21-06-2007, 12:05 AM   #2
=?Utf-8?B?ZGJncmljaw==?=
Guest
 
Posts: n/a
Default RE: WM5 Resizes my forms

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

"dgrier@gmail.com" wrote:

> 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?
>
>

  Reply With Quote
Old 21-06-2007, 12:16 AM   #3
Guest
 
Posts: n/a
Default Re: WM5 Resizes my forms

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/Pe...959da7a488.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



<dgrier@gmail.com> wrote in message
news:1182372707.972233.168910@q75g2000hsh.googlegroups.com...
> 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?
>



  Reply With Quote
Old 21-06-2007, 02:46 PM   #4
Fabien
Guest
 
Posts: n/a
Default Re: WM5 Resizes my forms

Hi,

If you want to create a non-full screen window on WM5.0, check out
this article on my blog:
http://fabdecret.blogspot.com/2007/...een-window.html

BR

Fabien Decret
Windows Embedded Consultant

ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/ | http://fabdecret.blogspot.com/

On 21 juin, 01:16, "<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote:
> 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/Pe...42-9ab4-46ba-97...
>
> 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 Worldwww.OpenNETCF.com
>
> <dgr...@gmail.com> wrote in message
>
> news:1182372707.972233.168910@q75g2000hsh.googlegroups.com...
>
>
>
> > 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?- Masquer le texte des messages précédents -

>
> - Afficher le texte des messages précédents -



  Reply With Quote
Old 21-06-2007, 07:22 PM   #5
dgrier@gmail.com
Guest
 
Posts: n/a
Default Re: WM5 Resizes my forms

On Jun 21, 8:46 am, Fabien <fab_00_2...@msn.com> wrote:
> Hi,
>
> If you want to create a non-full screen window on WM5.0, check out
> this article on my blog:http://fabdecret.blogspot.com/2007/...een-window.html
>
> BR
>
> Fabien Decret
> Windows Embedded Consultant
>
> ADENEO (ADESET)http://www.adeneo.adetelgroup.com/|http://fabdecret.blogspot.com/
>
> On 21 juin, 01:16, "<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote:
>
>
>
> > 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/Pe...42-9ab4-46ba-97...

>
> > 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 Worldwww.OpenNETCF.com

>
> > <dgr...@gmail.com> wrote in message

>
> >news:1182372707.972233.168910@q75g2000hsh.googlegroups.com...

>
> > > 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?- Masquer le texte des messages précédents -

>
> > - Afficher le texte des messages précédents -- Hide quoted text -

>
> - Show quoted text -


Thanks, all.

The problem was a simple form property I overlooked.

FormBorderStyle must be set to 'None'.


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off