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

C#, Confirmation Dialog box

Hi.

I would like to have a simple confirmation dialbox that popup when I want.
A box with "Are you sure that you want to remove thatThing ?" "Yes" "No".

But, I cannot find one.
Does not any of them already exists ?
Jul 21 '05 #1
4 16296
Mathieu Chavoutier <No****@NoSpam.org> wrote:
I would like to have a simple confirmation dialbox that popup when I want.
A box with "Are you sure that you want to remove thatThing ?" "Yes" "No".

But, I cannot find one.
Does not any of them already exists ?


Have a look at MessageBox.Show and MessageBoxButtons.YesNo.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jul 21 '05 #2
Mathieu Chavoutier <No****@NoSpam.org> wrote:
I would like to have a simple confirmation dialbox that popup when I want.
A box with "Are you sure that you want to remove thatThing ?" "Yes" "No".

But, I cannot find one.
Does not any of them already exists ?


Have a look at MessageBox.Show and MessageBoxButtons.YesNo.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jul 21 '05 #3

"Jon Skeet [C# MVP]" <sk***@pobox.com> a écrit dans le message de
news:MP************************@msnews.microsoft.c om...
Mathieu Chavoutier <No****@NoSpam.org> wrote:
I would like to have a simple confirmation dialbox that popup when I want. A box with "Are you sure that you want to remove thatThing ?" "Yes" "No".
But, I cannot find one.
Does not any of them already exists ?


Have a look at MessageBox.Show and MessageBoxButtons.YesNo.


Thanks. It works as expected :o)
Jul 21 '05 #4

"Jon Skeet [C# MVP]" <sk***@pobox.com> a écrit dans le message de
news:MP************************@msnews.microsoft.c om...
Mathieu Chavoutier <No****@NoSpam.org> wrote:
I would like to have a simple confirmation dialbox that popup when I want. A box with "Are you sure that you want to remove thatThing ?" "Yes" "No".
But, I cannot find one.
Does not any of them already exists ?


Have a look at MessageBox.Show and MessageBoxButtons.YesNo.


Thanks. It works as expected :o)
Jul 21 '05 #5

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

Similar topics

6
by: Dotnet Guy | last post by:
I want to add a confirmation dialog box before I delete the records in my form. I have a piece of javascript code in html that checks for confirmation. But the main issue lies in calling this...
1
by: Amelyan | last post by:
What is the common way in ASP.NET C# to pop up a confirmation dialog box? E.g. Are you sure you want to delete this item? Yes No
1
by: Joey | last post by:
I am using a datagrid with a SELECT button to determine which record to delete. The code behind pulls the selected item's record number (via a hidden column) in the grid with...
2
by: steggun | last post by:
How To: Popup Confirmation Dialog & Redirect in LinkButton_OnClick Hello All, I have a ASP.NET 2.0 (C#) web form with a LinkButton control. In the server-side code for the LinkButton_OnClick...
1
by: Amit | last post by:
How do I display a confirmation dialog when the user tries to delete a row? When the user selects a row in the DataGridView and hits the delete key Thanks, Amit
0
by: Amil Hanish | last post by:
In VS 2003, when I would delete all breakpoints or bookmarks, there was no confirmation and it was quick and easy via shortcut keys. In VS 2005, it always pops up a confirmation dialog when I do...
5
by: Martijn Saly | last post by:
I'd like to test in my script, if it's going to be possible to enable priviliges. If I use this... netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect") ....it presents a...
3
by: pardesiya | last post by:
Hi Folks, I have an aspx webform with several controls and a 'Save' button to save product details. When the user clicks on the 'Save' button, my C# code behind connects to a Sybase database...
5
by: Tomislav | last post by:
Hello, I tried to use "javascript:return confirm();" function in following manner ( triggered by form onSubmit event ): ** <form method="post" action="mail.php" onSubmit="javascript:return...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.