• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 275
  • Last Modified:

Form on top of a particular application

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
amiteshsinha
Asked:
amiteshsinha
  • 2
1 Solution
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
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
 
Richie_SimonettiIT OperationsCommented:
You could change topmost flag when your app loses focus:
0
 
Richie_SimonettiIT OperationsCommented:
0
 
amiteshsinhaAuthor Commented:
Hi Idle_Mind,

Thanks for the answer.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now