Solved

Form on top of a particular application

Posted on 2003-11-17
4
258 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 85

Accepted Solution

by:
Mike Tomlinson earned 500 total points
Comment Utility
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
Comment Utility
You could change topmost flag when your app loses focus:
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
Comment Utility
0
 

Author Comment

by:amiteshsinha
Comment Utility
Hi Idle_Mind,

Thanks for the answer.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

771 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now