Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to control other aps showing over my vb6 app

Status
Not open for further replies.

tedsmith

Programmer
Nov 23, 2000
1,762
AU
This may be a curly one!
I want to be able to select a number of other workstations on the network using VNC in a reduced size window while still having my vb6 app running.
This works fine by calling VNC remote desktop from a series of command buttons in my app form.

However if I click anywhere on my app form, the VNC form becomes hidden behind my app form and doesn't close.

The VNC then remains open if the operator forgets it is still there. This affects the speed of the computer.

I don't want to close VNC at this stage because I want to see the screen change at the other workstation when I send it something from my computer app.

Is there any way to effectively make the VNC app appear as though it was a modal form of my app and not disappear until the VNC is properly closed?

It is as though I need to make my form "anti-modal" or somehow include the VNC app screen in the zorder arrangement!
 
Do a search in this forum for SetWindowPos API call. You should find several examples of how to use it to fix a window at the top of the zorder
 
But how do I use this to fix a window of a different app over the top of mine?

I cant find how to get the handle of the other aps window. I saw the method for this maneuver some years ago but now cant find it!
 
Have a look for the EnumWindows or FindWindow APIs (my preference is EnumWindows)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top