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.



Answer this question

MessageBoxIcon.Hand not working as expected

  • ghostface039

    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


  • MessageBoxIcon.Hand not working as expected