MsgBoxEx
Video Capture Help ] AVIFile Tutorial ] Licensing and Distribution ] Resources ] Awards ] Latest News ] Source Code ] Free Controls ]

 

Variable-position MsgBox with custom icons!
Download (10k) VB source here!

This example includes a bas module that you can pop into your own project.  The module contains  function called MsgBoxEx which you can call wherever you normally call MsgBox.  MsgBoxEx very safely subclasses the standard windows MsgBox dialog (you can even step through the code).  You can call MsgBoxEx exactly like you call MsgBox and it will return the same vbMsgBoxResult.  Or you can use the new Optional Left, Top and Icon parameters to position the MsgBox and add a custom icon!  Too Cool!

Techniques demonstrated in this project
---------------------------------------
Using the SetWindowsHookEx API

Subclassing standard Windows MsgBoxes safely


You may freely use and modify this code in your
own programs. However, you may not redistribute
this archive without permission from Ray Mercer
<raymer@shrinkwrapvb.com>

Copyright (c) 1999-2000, Ray Mercer - All Rights Reserved