473,776 Members | 1,650 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1588
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()
GetWindowPlacem ent()
SetWindowPlacem ent()

// Anders
Jul 21 '05 #3

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

Similar topics

6
8845
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 clicking on the tab. thanks.
4
1715
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 form. As a result of the .Show, the form's Load event is called and I have a population routine fires off. Normally, all is well and good and the new form is active and gets displayed on top of the main
3
3234
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. But, Form2 is ending up behind MainForm. Anyone have an idea of how can I set/keep Form2 to be in front of the MainForm? And before someone suggests it, no -- I don't consider TopMost to be the solution. That will make the form the topmost...
1
1306
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 first one? Thanks for a tip! Thomas
2
308
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 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...
4
2814
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 separate front-end and back-end, which is rather surprising considering that all Access databases should be split into a separate front-end and back-end. Noticing that there are quite a lot of questions on this subject in the Access newsgroups...
3
2601
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 visible on the screen (brought to front, right behind the one in focus). I've played with the activated event of each form, but everything I've tried so far fails, as it's a pretty cyclical process that gets initiated. I'd love any help......
3
5973
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 at the same time, only the one that is "later" in the order of controls shows, the others sit underneath and one can't set focus on them. First question. Design-wise, I like the way I've set this up, as one can expect a subform to always pop up...
3
5904
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
0
9628
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9464
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10120
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10061
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7471
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5367
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5493
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4031
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2860
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.