Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. MessageBoxIcon

MessageBoxIcon

Scheduled Pinned Locked Moved C#
question
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    albean
    wrote on last edited by
    #1

    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?

    D A K 3 Replies Last reply
    0
    • A albean

      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?

      A Offline
      A Offline
      Alex Korchemniy
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • A albean

        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?

        D Offline
        D Offline
        dynamic
        wrote on last edited by
        #3

        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


        1 Reply Last reply
        0
        • A albean

          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?

          K Offline
          K Offline
          Kastro
          wrote on last edited by
          #4

          The icons are not part of the .NET Framework. The internal implementation of MessageBox.Show just calls the Platform SDK function MessageBox, passing a flag value that specifies the icon you want displayed. The icons themselves are stored as resources in user32.dll.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups