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

C# -> MessageBox On Top

Can someone give me a simple example using

MessageBox.Show, if DialogResult.Yes
a way to keep it always ontop
and center from parent form
Nov 17 '05 #1
1 6533
Hi, I do not know of a way of making the messagebox stay on top, but there
is a good article on code project to create a new messagebox class dealing
with just this

http://www.codeproject.com/dialog/CR...oAllDialog.asp

Hope this helps

Publicjoe

C# Tutorial at http://www.publicjoe.f9.co.uk/csharp/tut.html
C# Ebook at http://www.publicjoe.f9.co.uk/csharp/samples/ebook.html - 71
Chapters
VB Ebook at http://www.publicjoe.f9.co.uk/vbnet/samples/ebook.html - 28
Chapters
C++ Ebook at http://www.publicjoe.f9.co.uk/cppt/samples/ebook.html - 8
Chapters
Java Ebook at http://www.publicjoe.f9.co.uk/java/samples/ebook.html - 2
Chapters
"Hareth" <ab******@hotmail.com> wrote in message
news:eO**************@TK2MSFTNGP14.phx.gbl...
Can someone give me a simple example using

MessageBox.Show, if DialogResult.Yes
a way to keep it always ontop
and center from parent form

Nov 17 '05 #2

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

Similar topics

0
by: Peter Zuber | last post by:
Hi NG We want to load controls dynamically and create them on a WinForm. Doing so, we seem to loose type information. The scenario is as follows: The class MANCombobBox inherits from ComboBox...
16
by: DraguVaso | last post by:
Hi, I have 2 instances of a user-defined class. When I do a cls2 = cls1, and I change a property of cls2, this property is also changed in my cls1!! Does anybody know what the reason of this...
9
by: Andrea | last post by:
how can I convert a byte to a string ? Any idea? Andrea
4
by: antonio. kim | last post by:
Hello. I'd want to see the right value that inserted, but very small value like 0.00007m doesn't displayed exactly(displayed 7E-5). ex) decimal b = 0.00007m; TextBox.Text = b.ToString(); =>...
6
by: Craig Lister | last post by:
I have a treeview with a Root, a Contact Type, and a Contact. Like MSN Messenger. Is there a way that I can say something like if treenode.tag is classContact then string Surname =...
10
by: Russ | last post by:
I've been trying to figure out how to show a simple messagebox with an OK button in my web client program (C#). I have looked at every reference to JScript and MessageBox that seemed even remotely...
2
by: sebastien1101 | last post by:
how to disable the alert sound (windows system) when a messagebox.show appear ?
0
by: Tom | last post by:
The included code block demonstrates programmatically clicking a non-derived ToolStripButton in the OnShown() method. When I derive a button from ToolStripButton and override the _private_...
4
by: jdk0118 | last post by:
So I am making some code that shows your mouses X and Y coordinates. As of now I am doing it via command line and I have to press enter. How would I got about putting it in a MessageBox() ? I...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.