Microsoft KB Archive/110104

= MSGBLAST.VBX Control Processes Windows Messages from VB =

Article ID: 110104

Article Last Modified on 2/24/2005

-

APPLIES TO


 * Microsoft Visual Basic 2.0 Standard Edition
 * Microsoft Visual Basic 3.0 Professional Edition
 * Microsoft Visual Basic 2.0 Professional Edition
 * Microsoft Visual Basic 3.0 Professional Edition

-



This article was previously published under Q110104



SUMMARY
The Message Blaster (MSGBLAST.VBX) file is a Visual Basic custom control that lets you catch and process Windows messages from Visual Basic. You can obtain Message Blaster from the Microsoft Developer Network (MSDN) CD-ROM disk number 5 or 6. On that MSDN CD-ROM disk, see the "Message Blaster: Processing Messages in Visual Basic" technical article.



Message Blaster: Processing Messages in Visual Basic
The Microsoft Visual Basic development environment is not based on a message-driven programming model, as is Microsoft Windows. In Microsoft Windows, messages control most everything that happens. Visual Basic, on the other hand, supports a predefined set of events for each object (form or control) that you create. An application written in Visual Basic cannot respond to messages from Microsoft Windows that are not handled directly by a Visual Basic event.

The Message Blaster (MSGBLAST.VBX) is a Visual Basic custom control that addresses this restriction by allowing you to catch and process Windows messages (except WM_CREATE and WM_NCCREATE messages) from Visual Basic.

Message Blaster was created for Visual Basic version 2.0 on April 30, 1993, by:


 * Ed Staffin, Microsoft Consulting Services
 * Kyle Marsh, Microsoft Developer Network Technology Group

You can obtain the Message Blaster from Microsoft Developer Network (MSDN) compact disk (CD) number 5 or 6. Run the "MS Development Library CD 6" icon that is installed in the "MS Development Library" folder in Program Manager. Click the Contents button. Double-click "Technical Articles." Double-click "Visual Basic Articles." Double-click the "Message Blaster: Processing Messages in Visual Basic" article. The following files are available for download from the Microsoft Download Center:

Msgblast.exe

For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to Obtain Microsoft Support Files from Online Services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file. The sample program EX1 uses the Message Blaster control to process WM_MENUINIT and WM_MENUSELECT messages.

How to Join MSDN
The Microsoft Developer Network (MSDN) provides technical information and development toolkits for all developers who write applications for Microsoft operating systems. MSDN members receive a quarterly CD-ROM disk and a bimonthly newsletter.

To join the Microsoft Developer Network:


 * In the U.S. and Canada, call (800) 759-5474, 24 hours a day, 7 days a week.
 * In France, call 05 90 59 04 (toll-free).
 * In Germany, call 0130 81 02 1.
 * In the Netherlands, call 06 022 24 80 (toll-free).
 * In the United Kingdom, call 0800 96 02 79 (toll-free).
 * In Japan, call 03 5461-2617.
 * For any other country in Europe, call +31 10 258 88 64.
 * Outside of Europe, the U.S., Canada, or Japan, call (402) 691-0173.

This MSDN information is taken from the "Microsoft Developer Network News" newsletter dated January 1994. This information is subject to change.

Keywords: kbinfo kbdownload kbfile KB110104

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.