PC Review


Reply
Thread Tools Rate Thread

how to display/maximized a window ?

 
 
Lloyd Dupont
Guest
Posts: n/a
 
      26th Sep 2003
randomly, when I ShowDialog() on some modal window, the main window goes to
background.
and it didn't revert to formost window when the dialog is closed.

I try to call:
WindowState = FormWindowState.Normal;
BringToFront();
Show();

nothing work, my windows is still miniaturized, I have to look for the list
of running program and click activate o bring my window back.

is there any workaround that ?


 
Reply With Quote
 
 
 
 
Martin Robins
Guest
Posts: n/a
 
      27th Sep 2003
look at the FindWindow & SetForeGroundWindow API calls. This is the only way
that I have found to "really" bring a window to the foreground.

"Lloyd Dupont" <net.galador@ld> wrote in message
news:e2S%(E-Mail Removed)...
> randomly, when I ShowDialog() on some modal window, the main window goes

to
> background.
> and it didn't revert to formost window when the dialog is closed.
>
> I try to call:
> WindowState = FormWindowState.Normal;
> BringToFront();
> Show();
>
> nothing work, my windows is still miniaturized, I have to look for the

list
> of running program and click activate o bring my window back.
>
> is there any workaround that ?
>
>



 
Reply With Quote
 
Lloyd Dupont
Guest
Posts: n/a
 
      29th Sep 2003
I though so but SetForeGroundWindow() failed... I think I don't have a
correct window number, how could I find it.
FindWindow() has a window class name has 1st argument, what could I use ?


"Martin Robins" <martin - robins @ ntlworld dot com> wrote in message
news:OCGu%(E-Mail Removed)...
> look at the FindWindow & SetForeGroundWindow API calls. This is the only

way
> that I have found to "really" bring a window to the foreground.
>
> "Lloyd Dupont" <net.galador@ld> wrote in message
> news:e2S%(E-Mail Removed)...
> > randomly, when I ShowDialog() on some modal window, the main window goes

> to
> > background.
> > and it didn't revert to formost window when the dialog is closed.
> >
> > I try to call:
> > WindowState = FormWindowState.Normal;
> > BringToFront();
> > Show();
> >
> > nothing work, my windows is still miniaturized, I have to look for the

> list
> > of running program and click activate o bring my window back.
> >
> > is there any workaround that ?
> >
> >

>
>



 
Reply With Quote
 
Katie Schaeffer [MSFT]
Guest
Posts: n/a
 
      28th Oct 2003
Hi Lloyd,

We've looked at this issue for our next release...sorry you're running into
this. In the meantime I can think of a couple of things that might help
you out here:
1. Make sure your forms arn't set to 'BorderStyleNone'. This can cause
z-order issues.
2. Try using Hide() before using Show().
3. The 'WindowState' property is only used to designate forms to be
fullscreen [maximized] (without the caption bar on the top) or not
fullscreen [normal].
4. Lastly, PInvoking to SetForegroundWindow or SetActiveWindow should work
for you.

Hope that helps you out,
-Katie

--------------------
| From: "Lloyd Dupont" <net.galador@ld>
| Subject: how to display/maximized a window ?
| Date: Fri, 26 Sep 2003 12:01:43 +1000
| Lines: 15
| 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: <e2S#(E-Mail Removed)>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: 61.95.54.83
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:34482
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| randomly, when I ShowDialog() on some modal window, the main window goes
to
| background.
| and it didn't revert to formost window when the dialog is closed.
|
| I try to call:
| WindowState = FormWindowState.Normal;
| BringToFront();
| Show();
|
| nothing work, my windows is still miniaturized, I have to look for the
list
| of running program and click activate o bring my window back.
|
| is there any workaround that ?
|
|
|

This posting is provided "AS IS" with no warranties, and confers no rights.

 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Display of Panels in Maximized Window =?Utf-8?B?c2lwcHl1Y29ubg==?= Microsoft C# .NET 2 17th Sep 2007 04:13 AM
Open in New Window with maximized window =?Utf-8?B?QW50b25pbw==?= Windows XP Internet Explorer 1 14th Jul 2006 09:27 PM
OE 6 Messages open in small window,can't save maximized window set =?Utf-8?B?SGlsYXJ5?= Windows XP Internet Explorer 1 5th Apr 2006 02:30 AM
new window maximized... =?Utf-8?B?YmF0bWFu?= Windows XP General 3 13th Aug 2005 05:02 AM
Re: non-maximized window Graham McKechnie Microsoft Dot NET Compact Framework 1 19th Jul 2004 11:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:38 PM.