Solved

Form on top of a particular application

Posted on 2003-11-17
4
264 Views
Last Modified: 2010-05-01
Hi experts,

I have form, which I want to keep on top of my application for which I have written an API. But this shows the form on top of other applications too. I don't want it to be in that way. It should be on top of only a particular application in VB.

Can anyone help me in this regard...

0
Comment
Question by:amiteshsinha
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 86

Accepted Solution

by:
Mike Tomlinson earned 500 total points
ID: 9766857
If Form2 is the form you always want to be on top then use this syntax:

Form2.Show vbModeless, Form1

Now Form2 will stay on on top of Form1 but not on top of other applications.

Idle_Mind
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 9766861
You could change topmost flag when your app loses focus:
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 9766870
0
 

Author Comment

by:amiteshsinha
ID: 9767014
Hi Idle_Mind,

Thanks for the answer.
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month6 days, 22 hours left to enroll

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question