How to get system string resources?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • DoB

    How to get system string resources?

    Specifically, I would like to know the exact strings that are displayed on
    "Yes/No/Cancel" buttons of a Message Box.
    Does .Net Framework allow this?

    DoB


  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: How to get system string resources?

    DoB,

    No, it doesn't. The only way I can think of is to hook the windows
    message box. This article will show you how to do it in managed code.

    Gain technical skills through documentation and training, earn certifications and connect with the community


    You can probably hook into the messagebox and then use the FindWindow
    API function to find the appropriate windows, and then call SendMessage with
    a WM_GETTEXT message to get the text of the buttons.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m


    "DoB" <DoB@dob.comwro te in message
    news:eZbIVLZaIH A.4160@TK2MSFTN GP03.phx.gbl...
    Specifically, I would like to know the exact strings that are displayed on
    "Yes/No/Cancel" buttons of a Message Box.
    Does .Net Framework allow this?
    >
    DoB
    >

    Comment

    • DoB

      #3
      Re: How to get system string resources?

      No, it doesn't. The only way I can think of is to hook the windows
      message box. This article will show you how to do it in managed code.
      >
      http://msdn.microsoft.com/msdnmag/is...1/CuttingEdge/
      Thanks :-)

      DoB


      Comment

      Working...