Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Application Bring to front

Reply
 
Old 10-07-2009   #1 (permalink)
ngrTerry


 
 

Application Bring to front

I have a problem in that when my application loads it shows behing
other windows with folder listings.

We have tried frm.bringtofront but this only brings the current form
to the front of other forms in that application - not other windows
screens.

For example - I have a folder showing the list of filenames on screen.
I click the executable and this loads behind the folder listing - not
in front as it should.

Please can anyone advise

I am using VBNet2005

My System SpecsSystem Spec
Old 10-07-2009   #2 (permalink)
Family Tree Mike


 
 

Re: Application Bring to front

ngrTerry wrote:
Quote:

> I have a problem in that when my application loads it shows behing
> other windows with folder listings.
>
> We have tried frm.bringtofront but this only brings the current form
> to the front of other forms in that application - not other windows
> screens.
>
> For example - I have a folder showing the list of filenames on screen.
> I click the executable and this loads behind the folder listing - not
> in front as it should.
>
> Please can anyone advise
>
> I am using VBNet2005
Form.Activate() should do it.

--
Mike
My System SpecsSystem Spec
Old 10-08-2009   #3 (permalink)
ngrTerry


 
 

Re: Application Bring to front

> > I am using VBNet2005
Quote:

>
> Form.Activate() should do it.
>
> --
> Mike
Thanks for that, but no it does not.

It works sometimes, but then on others it remains behind the directory
listing even if we get a timer to kickin and raise the event.

It only appears to happen when we run the program on the server
(SBS2003), when we run from an ordinary PC we have no problems.
My System SpecsSystem Spec
Old 10-08-2009   #4 (permalink)
Wilson, Phil


 
 

Re: Application Bring to front

I've done this (reluctantly) by Setting Form.TopMost to true and then making
sure that any event on that form (Mousemove, click whatever) sets it false
so it isn't stuck in the user's face when it's supposed to go behind.

Keep in mind foreground activation permission is like love.....
http://blogs.msdn.com/oldnewthing/ar...0/9435239.aspx

--
Phil Wilson
The Definitive Guide to Windows Installer
http://www.apress.com/book/view/1590592972


"ngrTerry" <ngr@newsgroup> wrote in message
news:63ff20f9-53ea-4614-8f8f-db0e2988ed46@newsgroup
Quote:

>I have a problem in that when my application loads it shows behing
> other windows with folder listings.
>
> We have tried frm.bringtofront but this only brings the current form
> to the front of other forms in that application - not other windows
> screens.
>
> For example - I have a folder showing the list of filenames on screen.
> I click the executable and this loads behind the folder listing - not
> in front as it should.
>
> Please can anyone advise
>
> I am using VBNet2005
My System SpecsSystem Spec
Old 10-09-2009   #5 (permalink)
Miro


 
 

Re: Application Bring to front

What happens when you set the form to minimize and then restore it to its
original state right after.

Does that pop it to front?


"ngrTerry" <ngr@newsgroup> wrote in message
news:63ff20f9-53ea-4614-8f8f-db0e2988ed46@newsgroup
Quote:

>I have a problem in that when my application loads it shows behing
> other windows with folder listings.
>
> We have tried frm.bringtofront but this only brings the current form
> to the front of other forms in that application - not other windows
> screens.
>
> For example - I have a folder showing the list of filenames on screen.
> I click the executable and this loads behind the folder listing - not
> in front as it should.
>
> Please can anyone advise
>
> I am using VBNet2005
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
front end question PowerShell
To bring to front existing process... VB Script
FSB (Front Side Bus) Vista performance & maintenance
appdata-local-Application Data-Application Data-Application Data infinitum ad nauseum. WHY Vista General
Bring back ME! Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46