Post4VPS Forum | Free VPS Provider

Full Version: How to make a simple message generator in vb.net
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Spoiler Expand
[Image: decd0b3ef4864bdea4c50a3d0774e79f.png]
[Image: 75bd75a67ba44c6f93df81d083b7a984.png]
[Image: dcb6caca7fba4bd3ae46b62be0775802.png]

after you make a project start by placing 1 textbox , 1 button and 4 radio button
Spoiler Expand
[Image: 040b7a968c1145bdb2be949ba58d4993.png]

after putting all the necessary control . now you need to change the text of the control like this
Spoiler Expand
[Image: 6d352ab309174d0b9be39d580a74b721.png]

double click the generate button and enter the generator code in button1_click
Spoiler Expand
[Image: a22e0c34ca634ff5bcb5c71f7628b669.png]
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
[Image: GIF.gif]

if you interested . i leave the project file in the attachment . the archive password is my username : humanpuff69

Spoiler Expand
[Image: 307d20871689429697129de58071d25f.png]
Simple but good tutorial I guess, might help someone who might be really new.
Usefull its will be too helpfull but for newbies Because Old Users know how to do it these simple works But keep it up
(04-29-2017, 09:43 AM)Happymint Wrote: [ -> ]Usefull its will be too helpfull but for newbies Because Old Users know how to do it these simple works But keep it up

thanks for the suggestion . in the next time maybe i make a harder vb.net tutorial for advanced user
Utilise un programme d'automatisme sur ton ordinaeur il te permettra de faire toute tes ta^che ne boucle exemple : euh... Super Macro
(This language is French (use google Traduxtion please ))
(04-29-2017, 10:39 AM)humanpuff69 Wrote: [ -> ]thanks for the suggestion . in the next time maybe i make a harder vb.net tutorial for advanced user

I'm not that advance user but I want to learn making a system like cashier, booking, reservation, payroll etc. Maybe you can post something like this lol