VB.NET MessageBox.Show
VB.NET MessageBox.Show By: Vikram Singh Rana MessageBox.Show displays a dialog box. It interrupts the user. It immediately blocks further interaction. It requires only one Function call. We specify buttons, default buttons, an icon, and some other properties of the dialog. Example First, we look at an event handler that will show the message boxes in the screenshot sequentially when the program executes. The MessageBox.Show function is a Public Shared Function type. It can be called without an instance reference. Shared You can directly invoke MessageBox.Show. The method receives different numbers of parameters, and by specifying certain arguments and the right number of arguments, you can get the desired dialog box. Event handler function that uses MessageBox.Show: VB.NET Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles MyBase.Load ' ' First show a single-argument dialog box