04-28-2017, 02:32 PM
Today i will show you how to make a simple message box generator with visual basic .net
as the name suggest the use of this program is to generate a message box . to start creating the message box generator start your visual studio and make a new project
after you make a project start by placing 1 textbox , 1 button and 4 radio button
after putting all the necessary control . now you need to change the text of the control like this
double click the generate button and enter the generator code in button1_click
now the coding is done . save and debug your custom simple message generator
if you interested . i leave the project file in the attachment . the archive password is my username : humanpuff69
as the name suggest the use of this program is to generate a message box . to start creating the message box generator start your visual studio and make a new project
Spoiler Expand
after you make a project start by placing 1 textbox , 1 button and 4 radio button
Spoiler Expand
after putting all the necessary control . now you need to change the text of the control like this
Spoiler Expand
double click the generate button and enter the generator code in button1_click
Spoiler Expand
Code:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If RadioButton2.Checked = True Then
MsgBox(TextBox1.Text, MsgBoxStyle.Information)
ElseIf RadioButton3.Checked Then
MsgBox(TextBox1.Text, MsgBoxStyle.Exclamation)
ElseIf RadioButton4.Checked Then
MsgBox(TextBox1.Text, MsgBoxStyle.Critical)
Else
MsgBox(TextBox1.Text)
End If
End Sub
End Class
now the coding is done . save and debug your custom simple message generator
if you interested . i leave the project file in the attachment . the archive password is my username : humanpuff69
Spoiler Expand