PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
WM5 Resizes my forms
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
WM5 Resizes my forms
![]() |
WM5 Resizes my forms |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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? |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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? > > |
|
|
|
#3 |
|
Guest
Posts: n/a
|
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? > |
|
|
|
#4 |
|
Guest
Posts: n/a
|
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 - |
|
|
|
#5 |
|
Guest
Posts: n/a
|
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'. |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

