PC Review


Reply
Thread Tools Rate Thread

How to bring an application to the front?

 
 
Don
Guest
Posts: n/a
 
      4th Aug 2004
I have two programs. One is supposed to bring the other (which is already
running either minimized or at the bottom of the window z-order) to the
front so that it becomes the foremost application. How do you do this?
I've tried using the API functions BringWindowToTop, SetForegroundWindow,
and SetWindowPos and can't get any of them to work reliably.
BringWindowToTop and SetForegroundWindow don't do anything, and SetWindowPos
only seems to work sometimes.

Does anyone have any code examples of how to bring a window to the front of
all other windows (of all applications, not just the application the window
is in)?

- Don


 
Reply With Quote
 
 
 
 
Brian Henry
Guest
Posts: n/a
 
      4th Aug 2004
set the topmost property of the form to true

"Don" <(E-Mail Removed)> wrote in message
news:Pk7Qc.9964$M95.4310@pd7tw1no...
> I have two programs. One is supposed to bring the other (which is already
> running either minimized or at the bottom of the window z-order) to the
> front so that it becomes the foremost application. How do you do this?
> I've tried using the API functions BringWindowToTop, SetForegroundWindow,
> and SetWindowPos and can't get any of them to work reliably.
> BringWindowToTop and SetForegroundWindow don't do anything, and

SetWindowPos
> only seems to work sometimes.
>
> Does anyone have any code examples of how to bring a window to the front

of
> all other windows (of all applications, not just the application the

window
> is in)?
>
> - Don
>
>



 
Reply With Quote
 
Don
Guest
Posts: n/a
 
      4th Aug 2004
It appears as though the "Prevent applications from stealing focus" option
in TweakUI is hampering my efforts. When I turned that off, I managed to
get it working fine.

- Don


 
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
Re: Application Bring to front Miro Microsoft Dot NET 0 9th Oct 2009 03:03 PM
Re: Application Bring to front Wilson, Phil Microsoft Dot NET 0 9th Oct 2009 01:17 AM
Re: Application Bring to front Family Tree Mike Microsoft Dot NET 0 7th Oct 2009 10:39 PM
Bring Application Back To Front in WM5 morris.logan@gmail.com Microsoft Dot NET Compact Framework 2 30th Mar 2007 07:04 PM
Bring Another Application To Front? Octavius Khan Microsoft VB .NET 4 13th Mar 2007 01:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:17 PM.