index > Visual C# General > MessageBoxIcon.Hand not working as expected

MessageBoxIcon.Hand not working as expected

I have a MessageBox that I would like to use to advise users that a DataGridView has no records in it that can be modified. I've written the code for the MessageBox to look something like the following...

MessageBox.Show("No records are available for editing.",

"No records to modify",

MessageBoxButtons.OK,

MessageBoxIcon.Hand);

The problem is that the Hand icon does not display when this message box displays. Instead, I get the standard error icon that consists of a white x in the middle of a circular red background. I've noticed that the tooltip that appears while I'm writing my code even tells me that this is what will display. Is this a known bug or am I having this problem for some other reason like perhaps because I am developing on VS 2005 Standard?

This isn't a show stopper. But any help would be appreciated.

Northwester

The hand icon was added to mimic the standard Win32 constants allowed by the API. However the hand icon in Windows is from the Win3.x days and maps to the stop sign in all current versions of Windows. For closure here is the summary:

Exclamation, Warning = Exclamation point
Information, Asterisk = Lower-case i
Question = Question mark
Stop, Error, Hand = Stop sign

In your case I'd recommend the Information value.

Michael Taylor - 8/29/06

TaylorMichaelL
reply 2

You can use google to search for other answers

 

More Articles

• Controlling a splitter movement from another splitter
• Viewing .tga Images
• Variables
• How do I create a simple table in C#
• Hide/Show
• Windows Service :: Why does my OnStart() code cause Service to sh...
• Creating a Wizard-Style Application
• Garbage collector
• Menu usage in C#
• Stopping a memory leak
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• AxSHDocVw
• MapPoint - Faster Route Calculation (Per
• Use Propety with Collection
• DirectX Redistribute Error
• Time formatting
• Infragistics problem
• Selected a listviewitem
• Windows Service with Timer...
• What is faster: GDI+, Direct Draw or Ope
• Desktop shining through my buttons durin
• regarding windows services
• HOWTO find a Word document.
• Link Button - Windows Application
• class issue
• using windows logon name

Hot Articles

• Replace main node name
• simple editor using webBrowser control
• main menu resizing problem
• Why no multiple inheritance allowed in C#?
• How to Install Windows Service using com
• Equivalent of IllegalArgumentException i
• Programming in C# but looking for RTC fo
• where are the icon images
• Cancel Keydown
• help with the following code
• Point of Sale Application
• Set form background color
• Enum Components
• Hiding the vertical scrollbox on a multi
• Circle with line through it w/Drag and D

Recommend Articles

• Remoting.. Event Errors
• Drop down list does not display any items
• Reading words from other windows
• Visual Studio 2003 - C# Writing XML to a
• Referencing an executable component from
• check internet connection + internet speed
• How can I format a richtextbox?
• Password Form
• SQL schema discovery - find primary key
• How can I show HTML content to Win Form
• exception as "security exception wa
• run unmanaged app from managed app
• What kind of ASP.Net application will be
• is there an HTML Validator plugin?
• Have any function caculate date after cu