Hi Nikolay,
If by not fullscreen, you just mean you'd like to ensure the start taskbar
is present (where the caption of the form is shown), then you just need to
ensure that Form.WindowState = Normal instead of Form.WindowState =
Maximized.
If by not fullscreen, you mean you'd like to have a tiny popup form (so
your other forms will show up under this tiny form), then set BorderStyle =
None. After this you can set the bounds of your form.
this.FormBorderStyle = FormBorderStyle.None;
this.Bounds = new Rectangle(20, 100, 100, 100);
Hope this helps,
-Katie
--------------------
| From: "Nikolay S" <
[email protected]>
| References: <
[email protected]>
<
[email protected]>
<
[email protected]>
<
[email protected]>
| Subject: Re: Form lost focus
| Date: Tue, 12 Aug 2003 17:06:10 -0700
| Lines: 167
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <
[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: host160.phxa.com 208.246.65.160
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:30808
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Thx,
| It's seems to work right now.
| But please tell me how to put border for not fulscreen dialog (my login
| screen) and keep it not fullscreen
|
| Thx again - moving the call from the constructur really help me
|
|
| | > Hi Nikolay,
| >
| > A couple of things that might help:
| > 1. Make sure the form you're calling BringToFront on doesn't have
| > BorderStyle=None. If you change it to not be BorderStyle=None, you
| > shouldn't even need to call BringToFront after calling ShowDialog.
| > 2. Make sure you arn't calling .ShowDialog before Application.Run (or in
| > the constructor of the form you pass into Application.Run). Use the
| OnLoad
| > event instead if you can.
| >
| > Let me know if one of these suggestions works for you. If not, could
you
| > post a full repro that I can run to demonstrate your particular problem?
| I
| > may be able to find a workaround for you then.
| >
| > -Katie
| >
| > --------------------
| > | From: "Nikolay S" <
[email protected]>
| > | References: <
[email protected]>
| > <
[email protected]>
| > | Subject: Re: Form lost focus
| > | Date: Tue, 12 Aug 2003 09:27:29 -0700
| > | Lines: 108
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | Message-ID: <
[email protected]>
| > | Newsgroups: microsoft.public.dotnet.framework.compactframework
| > | NNTP-Posting-Host: host160.phxa.com 208.246.65.160
| > | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
| > | Xref: cpmsftngxa06.phx.gbl
| > microsoft.public.dotnet.framework.compactframework:30754
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
| > |
| > | The BringToFront not working.
| > |
| > |
| > | (How I close the form
| > | isSuccess = false; userProf = null; Close();
| > |
| > | )
| > |
| > | void InitForm()
| > |
| > | {
| > |
| > |
| > | #region Login
| > |
| > |
| > | VMLoginFormM vmLogin = new VMLoginFormM();
| > |
| > | //vmLogin.Parent = this;
| > |
| > | vmLogin.ShowDialog();
| > |
| > | if(vmLogin.isSuccess)
| > |
| > | {
| > |
| > | userProf = new VMUserProfile(vmLogin.userProf);
| > |
| > | }
| > |
| > | else
| > |
| > | {
| > |
| > | Close();
| > |
| > | }
| > |
| > | #endregion
| > |
| > |
| > | this.BringToFront();
| > |
| > | }
| > |
| > | even in success login it is not working. And I was not able to find
the
| > work
| > | around
| > |
| > |
| > |
| > | Thx.
| > |
| > |
| > |
| > |
| > |
| > |
| > |
message
| > | | > | > Hi Nikolay,
| > | >
| > | > This sounds like a bug...could you post some code demonstrating this
| > | > problem? To workaround this, you could try Form.BringToFront.
| > | >
| > | > Also on Pocket PC forms are automatically sized to take up the
entire
| > | > screen (UI Guidelines). The way to override this behavior is to set
| > | > BorderStyle = none, and then set the size of your form.
| > | >
| > | > Hope this helps,
| > | > -Katie
| > | >
| > | > --------------------
| > | > | From: "Nikolay S" <
[email protected]>
| > | > | Subject: Form lost focus
| > | > | Date: Mon, 21 Jul 2003 15:22:06 -0700
| > | > | Lines: 11
| > | > | X-Priority: 3
| > | > | X-MSMail-Priority: Normal
| > | > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | > | Message-ID: <
[email protected]>
| > | > | Newsgroups: microsoft.public.dotnet.framework.compactframework
| > | > | NNTP-Posting-Host: host160.phxa.com 208.246.65.160
| > | > | Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
| > | > | Xref: cpmsftngxa06.phx.gbl
| > | > microsoft.public.dotnet.framework.compactframework:28743
| > | > | X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
| > | > |
| > | > | Hi, All
| > | > |
| > | > | I'm creating the form and from my main form - open another form.
| Once
| > I
| > | > | close the second form ( for example 'About Dialog') I getting back
| to
| > | the
| > | > | Today not to my main form.
| > | > |
| > | > | Also How can I make fullscreen = false (form not to be in
| fullscreen)
| > | > |
| > | > | Thx
| > | > |
| > | > |
| > | > |
| > | >
| > | > This posting is provided "AS IS" with no warranties, and confers no
| > | rights.
| > | >
| > |
| > |
| > |
| >
| > This posting is provided "AS IS" with no warranties, and confers no
| rights.
| >
|
|
|
This posting is provided "AS IS" with no warranties, and confers no rights.