473,779 Members | 1,884 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with messageboxes generated by Topmost window after losing focus

I need my communication status window to be topmost when it's open/active.
Ive set the TopMost property of the form to true and it does work ok.
After performing tasks this window generates an error or confirmation
messagebox. If this window is the Active/Selected window then the messagebox
appears in front of it ok. If I click on another application before the
messageboxes are generated, then they appear and are hidden behind the
topmost status window.
This "feature" is constantly being raised by our test team and I need to
stop it happening.
(Running the software on XP pro.)

Any advice would be appreciated.
Nov 17 '05 #1
2 4564
Before the MessageBox is due to appear, call Activate() on the calling form.
This makes your app activate (and frontmost) and your MessageBox will appear
on 'top' of this.

"Claire" <cz*********@co mmunity.nospam> wrote in message
news:Ot******** ******@TK2MSFTN GP09.phx.gbl...
I need my communication status window to be topmost when it's open/active.
Ive set the TopMost property of the form to true and it does work ok.
After performing tasks this window generates an error or confirmation
messagebox. If this window is the Active/Selected window then the
messagebox appears in front of it ok. If I click on another application
before the messageboxes are generated, then they appear and are hidden
behind the topmost status window.
This "feature" is constantly being raised by our test team and I need to
stop it happening.
(Running the software on XP pro.)

Any advice would be appreciated.

Nov 17 '05 #2
Thank you Adam
Nov 17 '05 #3

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

Similar topics

4
2433
by: VR | last post by:
First, greetings to everyone :) I'm doing a university seminar & I've encountered a problem. I have a gallery with thumbnails linked on pictures. What I want is popup to be opened with dimensions of linked picture after clicking on a thumbnail. I found javascript which is compatible with IE, Firefox & Opera but I can't get it to work. All I get is this http://www.justfonts.com/tini/problem.html (thumbnail dissapeared).
6
1703
by: nizar.jouini | last post by:
I have web page that contains two links. link "a" and link "b". When I click on "a" a small window should pop up. when I click on "b" another small window should pop up. So what you should see now is the base window which contains links "a" and "b" and two small pop-up windows "a" and "b". Now I can make the script to pop up "a" and "b" but the problem is that they're not shown at the same time. Any suggestions????
2
6852
by: JaguarX | last post by:
I have an application that needs a window to stay on top of the other ones, I thought that TopMost = true would be suitable for this feature but it also makes this window to stay on top of all other application running on my PC, Does anybody know How can I prevent this TopMost window appear when I switch to the other applications?? _______________________ JaguarX
3
7863
by: Hovhannes Asatryan | last post by:
Hello guys. I have a problem with a topmost form. I am writting in C#. I have Mdi Form wich has 2 child forms. I want to set one of them as a topmost window, but when I sets MdiParent the TopMost property does not working. How can I set the one form as a topmost? Can anyone send me code example?
12
7539
by: E Goforth | last post by:
Hello, I have a VB6 app that calls a VB.NET app via named pipes and a third party component. Inside the VB.NET app I'm trying to force a form to the top, at least temporarily. Inside a form's public sub I'm doing: Public Sub ThisIsMySub(TheseAreMyArguments) Me.Show Me.WindowState = FormWindowState.Normal Me.TopMost = True
2
3840
by: Max | last post by:
Hello, My VB.NET application displays a Windows form in a panel on my main form. While my application has the focus, I want the form in the panel to have the "topmost" position, even if it is not the active form. Everything works as expected, but if the user selects another application by pressing a tab in the taskbar, then my "topmost" form still occupies the "topmost"
4
9441
by: ATracy | last post by:
How do I load a form as the top most form without setting focus to it? I am using vb.net 2005 Using topmost it take the focus away from the application I am typing into then when it closes it send the focus back.
1
2594
by: Phil Galey | last post by:
I have a small application, which is to always stay on top. Another application, which it is supposed to stay on top of, is QuarkXPress 5. I'm using Me.TopMost = True in the Form1_Deactivate event, and it works almost perfectly. It always stays on top, except when I click on one of the tools in the floating tool bar of QuarkXPress. Anything else in QuarkXPress is no problem ... document, menus, etc. But click on anything on...
0
1197
by: Luke R | last post by:
My question is best explained by example. In the VB.NET 2005 code window, if you do a ctrl+f find, the find window stays on top when you put focus back to the code so you would think that the find window is always on top. However, when you drag another application over the VB.NET window, the find window is not on top of that window. Its like its TopMost, but only TopMost within the applications forms, not all applications.
0
9632
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
10302
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10136
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...
0
9925
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8958
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6723
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5372
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...
1
4036
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
2
3631
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.