473,461 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Show MessageBox in front of active Window

MessageBox::Show(Window, String)
How do I pass the value for the Window parameter, rather how do I get the
value for the active window
Also,there are two forms open at the same time, one overlapping the other.
Now if I click the form at behind how do I bring to to front. I tried giving
BringToFront() didn't work.

Nov 17 '08 #1
2 7331
Prats wrote:
MessageBox::Show(Window, String)
How do I pass the value for the Window parameter, rather how do I get
the value for the active window
GetLastActivePopup() ?
Also,there are two forms open at the same time, one overlapping the
other. Now if I click the form at behind how do I bring to to front. I
tried giving BringToFront() didn't work.
Nov 17 '08 #2
Prats wrote:
MessageBox::Show(Window, String)
How do I pass the value for the Window parameter, rather how do I get
the value for the active window
You don't use the active window, you use the window from which the user
requested the modal task that generated the message. If the message box is
created from an asynchronous task on a worker thread you create it unowned
(standalone). Never create children of arbitrary windows, it might be an
ephemeral window (i.e. printing... page X/N) which automatically dismisses
itself when the task completes and your message box goes away with it
without giving the user any chance to read it.
>

Also,there are two forms open at the same time, one overlapping the
other. Now if I click the form at behind how do I bring to to front.
I tried giving BringToFront() didn't work.

Nov 17 '08 #3

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

Similar topics

44
by: Mariusz Jedrzejewski | last post by:
Hi, I'll be very grateful if somebody can explain me why my Opera 7.23 (runing under linux) doesn't show me inner tables. Using below code I can see only "inner table 1". There is no problem with...
13
by: Chris | last post by:
I can create Javascript confirm message boxes during page creation, etc adding them to the button attributes (many good posts on this!). But how can I add this event after the button is pressed? I...
7
by: Pi | last post by:
I have an MDI parent with one or more children forms. Each child form has an engine thread that processes data. The child form's _Closing event is roughly 01 Private Sub...
2
by: Dean Slindee | last post by:
Anybody written code in VB.NET to: 1) show a print preview window of reports already written and stored in an Access 2002 database; or 2) execute the print of a report stored in an Access 2002...
0
by: NvrBst | last post by:
Hello. I'm trying to display a tooltip to an external window. I have a wrapper class public class WindowWrapper : System.Windows.Forms.IWin32Window { public WindowWrapper(IntPtr handle) {...
3
by: Todd Jaspers | last post by:
Hey guys, I am writing a web app using C#/ASP/.NET/Whatever... I'd like to have a window pop-up with some text. Basically, I'm trying to find out what the MessageBox.Show or the...
2
by: Marcel Brekelmans | last post by:
Hi, I'm trying to display a MessageBox after a FolderBrowserDialog. I see that it gets displayed, but not activated. The form is not in front and when I have some other forms open the MessageBox...
1
by: Asad Asad | last post by:
I wants to make a program in Visual Basic 6.0 that will display my name on the front of each active window ( Like Jetadio, for example jetadio 6.3 displays song name in light color when song starts)....
0
by: Curious | last post by:
Hi, I used MessageBox.Show method to show message boxes to alert about issues. However, it seems that they're always minimized at the bottom of the screen. Is there anyway I can make them...
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...
0
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,...
0
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...
0
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,...
0
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...
0
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...
0
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,...
0
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...
0
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...

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.