Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Form on top of a particular application

Posted on 2003-11-17
4
Medium Priority
?
268 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
  • 2
4 Comments
 
LVL 86

Accepted Solution

by:
Mike Tomlinson earned 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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

877 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