65.9K
CodeProject is changing. Read more.
Home

MessageBox Translation Hook

starIconstarIcon
emptyStarIcon
starIcon
emptyStarIconemptyStarIcon

2.26/5 (12 votes)

Nov 18, 2004

viewsIcon

72437

downloadIcon

2787

With this class (sample) you can translate system MessageBox to any language. HOOK

Sample Image - messageboxhook.jpg

Introduction

In short: With this class (sample) you can translate system MessageBox to any language. With fiew API functions it is easy to hook on system messagebox and catch messages that will provide you easy messagebox translation. You can use this to translate other dialogs like OpenFileDialog, SaveFileDialog, FolderDialog, ColorDialog, FontDialog, PrintDialog .. etc..

You can see here how you can use API functions in VB.NET, and how you can hook to any system dialog framework is providing for display.

Code is writen in VB.NET, but it easy to convert it to C#.


I dont know what else i can say about this, the thing is very trivial.


Enjoy,
Josip Habjan