How to Add an MSG Block

A "Msg" block is a line of code in your Visual Basic code that sends an alert message to your users. The Msg block is typically used to warn a user or display important information while using the software. Visual Basic has a "MsgBox" function to display an alert to the user. This message window can be displayed on any part of your Visual Basic application.

Instructions

    • 1

      Click the Windows "Start" button and select "All Programs" in your main menu. Click "Microsoft .NET," then click "Visual Studio." When the program loads, double-click your project file to open your programming project.

    • 2

      Right-click the Visual Basic form where you want to add the message and select "View Code." The code file opens in your workspace. Scroll down to the section where you want the message to appear.

    • 3

      Type the following code to add the message:

      MsgBox("An alert message.")

      Replace the text in quotes with your own alert message.

    • 4

      Click the "Save" icon at the top of the window. Click "Run" to execute the code in your debugger and view the message box.

Related Searches:

References

Comments

You May Also Like

  • Foods That Block Leptin

    Foods That Block Leptin. Leptin is a hormone produced by the adipose fat tissue. It plays a key role in energy intake...

  • How to Send a Text MSG With MSN Messenger

    MSN Messenger keeps you in contact online with friends, family and any others that may use the service. In addition to instant...

  • How to Stop Ozmail Text on Verizon

    Many Verizon users are frustrated and annoyed that they keep receiving text, or SMS, messages that originate from a service called Ozmail....

Related Ads

Featured