Bringing Window into Foreground or Background 
Author Message
 Bringing Window into Foreground or Background

Using Windows 2000 SP2, Access 2000 and VBA.
I need a function, for setting the access form windows (me.form) to
foreground or background. Also if an other application (for example
Explorer) is the forground window.
franz


Mon, 23 Feb 2004 16:15:03 GMT  
 Bringing Window into Foreground or Background
Hi Franz,

My name is Dennis Schmidt. Thank you for using the Microsoft Access
Newsgroups.

While we do not have a Knowledge Base article for Access that resolves your
question, you may find this VB article with the appropriate API calls will
help with your issue.

I hope this helps! If you have additional questions on this topic, please
reply to this posting.

Need quick answers to questions like these? The Microsoft Knowledge Base
provides a wealth of information that you can use to troubleshoot a problem
or answer a question! It's located at
http://support.microsoft.com/support/c.asp?M=F>.

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. ? 2001 Microsoft Corporation. All rights
reserved.

Regards,
Dennis Schmidt
Microsoft Support



Tue, 24 Feb 2004 03:00:11 GMT  
 Bringing Window into Foreground or Background
Franz H?rhager wrote

Quote:
> Using Windows 2000 SP2, Access 2000 and VBA.
> I need a function, for setting the access form windows (me.form) to
> foreground or background. Also if an other application (for example
> Explorer) is the forground window.

I don't see Dennis's post pointing to a specific KBid, so...

Under Win2K, you need to use AttachThreadInput before you can call
SetForegroundWindow.  What exactly are you trying to do though?  While the
code for this is easy enough to put together, self-activating apps do tend
to be annoying, which is why MSFT changed the behavior under Win2K.

  -- Dev



Tue, 24 Feb 2004 05:03:59 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Bringing Word Window to foreground periodically

2. Bringing a window to the foreground

3. How to Set Window Background/Foreground

4. Problem Bringing document back into the foreground

5. msgbox brings wrong form to the foreground !

6. Bring active program to Foreground when run Twice

7. Toolbar Background/Foreground colours in VB.NET

8. How to get the foreground and background color ?

9. foreground & background programming

10. DOS command line EXE: foreground vs background

11. Background and foreground color change in a rich text box

12. PictureBox foreground visible, background transparent

 

 
Powered by phpBB® Forum Software