473,383 Members | 1,868 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

bringing a separate .exe to the front

when using one form - i can set the z-order. Is there a way programatically
to create a "z-order" across .exe.

I have 2 .exe - one that paints a background form and then another that
fills in the middle of the screen on top of that form. The .exes need to be
separate, although the middle .exe knows about the size of the outer
background/border form via a remoted object and events that get triggered on
resize.

Everything is working fine size wise, except I can't seem to get the middle
screen/exe to show up on top when the outer border has been selected or
re-sized/moved.

Any ideas?

Thanks,
Terry
Jul 21 '05 #1
2 1538
Terry,

This sounds so strange that you make me curious. Using one Exe your problem
is simple, will you tell us what is the reason you *should* use 2 exe's. I
never heard of that and therefore very curious becaus it sounds if the forms
are very thight depending from each other.

Cor
Jul 21 '05 #2
On Tue, 8 Feb 2005 10:51:05 -0800, Terry wrote:
Everything is working fine size wise, except I can't seem to get the middle
screen/exe to show up on top when the outer border has been selected or
re-sized/moved.

Have you tried using TopMost=True for the form that shall be on top. This
way that form always will be on top of the other form. It will also be on
top of all other windows so if you select a different window/program this
window still will be on top...

An another way is to have a timer (in the front form program) that checks
where the window of background form is and position the front form
accordingly. If the background program is minimized then the front program
also should minimize.

There probably are .NET functions/classes for doing this but to get you
started here are some WIN32 functions that are useable:

EnumWindows()
GetWindowPlacement()
SetWindowPlacement()

// Anders
Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Don | last post by:
how do i bring tabpages, which are part of a tabcontrol, to the front on the tabcontrol programmatically. I would like to bring specific tabpages to the front depending on user actions with the user...
4
by: Kevin Carter | last post by:
Hi there...hoping somebody can help me out because I am almost ready to pull out my hair. My problem is as follows: In a method in my main form (non MDI app), I instantiate and .Show another...
3
by: Richard L Rosenheim | last post by:
I have the application's form (MainForm) along with a 2nd form (Form2). If the user minimizes MainForm, I also minimize Form2. And when the user restores the application, I also restore Form2. ...
1
by: thomas.dahr | last post by:
Hi, How do I pick up a running program and bring it up front when I click it's shortcut, instead of starting a new copy of it? I know how to block by using CreateMutex, but how to activate the...
2
by: Terry | last post by:
when using one form - i can set the z-order. Is there a way programatically to create a "z-order" across .exe. I have 2 .exe - one that paints a background form and then another that fills in...
4
by: Stephen Poley | last post by:
Whenever anyone has a question about securing an Access database he/she is usually referred (unsurprisingly) to the Security FAQ. This is however incomplete/unclear with respect to databases with a...
3
by: papalarge | last post by:
I have a VB.NET application that consists of a toolbar and a subwindow that I want to function together and not independently. So when I give focus to one, I want to make sure that the other is...
3
Walt in Decatur
by: Walt in Decatur | last post by:
I have set up a bunch of subforms to appear in the same spot on the screen relative to the main form. I have set up command buttons with open and close each subform. However, if I have several open...
3
by: questionit | last post by:
Hi All How to bring an already opened form in front of all other forms ? Anyone with any ideas please? Thanks Qi
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.