473,398 Members | 2,368 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,398 software developers and data experts.

Messagebox displayed on form

Hi,

I need to know if on a .NET form a messagebox is displayed.

Someone has an idea?

Thanks.
Nov 21 '05 #1
6 972
Ital,

A messagebox is itself a form, so cannot be displayed on a form.
You can however use a panel to fake that.

I hope this helps?

Cor
Nov 21 '05 #2
The problem is that I can't close a form if there is a messagebox displayed
on form.
Therefore, if there is a messagebox on the form I don't close the form.
But I don't know a correct way to know if a messagebox is displayed and
moreover I can't use a panel.
I hope to have cleared up better the problem.

"Cor Ligthert" <no************@planet.nl> wrote in message
news:u8**************@TK2MSFTNGP14.phx.gbl...
Ital,

A messagebox is itself a form, so cannot be displayed on a form.
You can however use a panel to fake that.

I hope this helps?

Cor

Nov 21 '05 #3
Ital,

It is normal that you first have to close the messagebox before you close.
Or do you want to close using the messagebox.
(Show us how you show the messagebox, there are more possibilities)

Cor
Nov 21 '05 #4
"ITALstudio s.r.l." <so******@italstudio.it> schrieb:
I need to know if on a .NET form a messagebox is displayed.


Well, shouldn't you know when you show a messagebox in code?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #5
Hi,
Unfortunately, I can't know when on the form is displayed a messagebox.

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:ey**************@tk2msftngp13.phx.gbl...
"ITALstudio s.r.l." <so******@italstudio.it> schrieb:
I need to know if on a .NET form a messagebox is displayed.


Well, shouldn't you know when you show a messagebox in code?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #6
"ITALstudio s.r.l." <so******@italstudio.it> schrieb:
Unfortunately, I can't know when on the form is displayed
a messagebox.


Why not? The messagebox will block execution until it is closed. Can you
describe your scenario in more detail?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #7

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

Similar topics

2
by: Scott Vesey | last post by:
In VB, when using the form: MessageBox.Show("some text") The result is a small blank dialog with a blank button. If I specify the full set of parameters for the MessageBox.Show using the...
8
by: Dennis C. Drumm | last post by:
I have ordered the book .NET Framework Solutions, In Search of the Lost Win32 API by John Paul Meuller which I think will help answer some of my questions I have regarding making custom...
4
by: Tressa | last post by:
I have a messagebox that I only want to pop up only if it is not already being displayed on the screen. My code is still poping up the messagebox even though it is on the screen. What am I doing...
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...
10
by: Andrew | last post by:
Hi, I have a messagebox that pops up due to an event. I did it in javascript. ie. alert("Time's up. Assessment Ended"); I want to capture the OK and Cancel events of this alert messagebox. My...
6
by: Calligra | last post by:
have a form which looks at the title of the workbook saved on a different workbook, determines whether or not information has been inputted previously and then asks the user if the information is...
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...
6
by: Goran Djuranovic | last post by:
Hi all, I have a VB.NET windows application that uses MDI form. When I try to delete a datagrid row from one of the MDI children forms, I use a MessageBox YesNo confirmation, which, after confirmed,...
6
by: Frank Rizzo | last post by:
I am trying to programmatically close a messagebox. I don't see any obvious managed choices. Back in the day, I remember using a combination of FindWindow and EndDialog apis(...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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...

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.