Solved

Form on top of a particular application

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

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

831 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