473,394 Members | 1,679 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,394 software developers and data experts.

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 7325
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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
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
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...
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...

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.