MessageBoxIcon
-
Does anybody know how I can access the MessagBoxIcons directly? I want to stick one on a Form (not a MessageBox). Is there some sort of internal imagelist in the Framework?
If you use Reflector to decompile the .net framework you will see that the native MessageBox method is called. The MessageBoxIcon is just an enum. The value is passed to the native func as an int. I suggest opening the native lib with VS.NET and ripping the icons.
-
Does anybody know how I can access the MessagBoxIcons directly? I want to stick one on a Form (not a MessageBox). Is there some sort of internal imagelist in the Framework?
in this folder : ( where your drive goes inplace of " D " ) D:\Program Files\Microsoft Visual Studio .NET\Common7\Graphics\icons there you will find them , listed under " Computer " i think , although they are embeded in .net for the messagebox's Vb:
Public Function TwinsOnWay(ByVal twins As String) As String
Select Case twins
Case "Gender"
Return "Two Girls"
End Select
End Function
-
Does anybody know how I can access the MessagBoxIcons directly? I want to stick one on a Form (not a MessageBox). Is there some sort of internal imagelist in the Framework?
The icons are not part of the .NET Framework. The internal implementation of
MessageBox.Show
just calls the Platform SDK functionMessageBox
, passing a flag value that specifies the icon you want displayed. The icons themselves are stored as resources in user32.dll.