❗ MSGBOX Generator

Posts 1–10 of 10 · Page 1 of 1
❗ MSGBOX Generator
Ok, this isn't going to be much of tutorial, but I will tell you what you need...

What you need:
1 TextBox
1 Rich Text Box
4 RadioButtons
1 Button

Naming:
RadioButton 1 - Critical
RadioButton 2 - Information
RadioButton 3 - Exclamation
RadioButton 4 - Yes / No

What to do:
Make RadioButton 1 Checked -So there are no errors...

Now, time for the code, just copy and paste it (Ctrl C = Copy, Ctrl V = Paste... Code:
Code:
Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        If RadioButton1.Checked = True Then
            MsgBox("" & RichTextBox1.Text, MsgBoxStyle.Critical, "" & TextBox1.Text)
        ElseIf RadioButton2.Checked = True Then
            MsgBox("" & RichTextBox1.Text, MsgBoxStyle.Information, "" & TextBox1.Text)
        ElseIf RadioButton3.Checked = True Then
            MsgBox("" & RichTextBox1.Text, MsgBoxStyle.Exclamation, "" & TextBox1.Text)
        ElseIf RadioButton4.Checked = True Then
            MsgBox("" & RichTextBox1.Text, MsgBoxStyle.YesNo, "" & TextBox1.Text)
        End If
    End Sub
End Class
what does this do exactly? i see u rhiana
Quote Originally Posted by Forsaken_One View Post
what does this do exactly? i see u rhiana
lmfao spying on me huh? xD I knew it hehe
Quote Originally Posted by Forsaken_One View Post
u wish i was...
Says one Cock Sucker to another xD hehe
Quote Originally Posted by xrhianax View Post
Says one Cock Sucker to another xD hehe
Stop making this a spam thread omfg... nad btw, this makes a msg box pop up, you can rename some of the stuff to disguise it...
Quote Originally Posted by Pixie View Post
Stop making this a spam thread omfg... nad btw, this makes a msg box pop up, you can rename some of the stuff to disguise it...

omfgI'msorry
OMG WOW
THANK YOU!!! I have to say thanks for the partial-tut because I'm still trying to learn VB and having trouble with it, but this is an excellent way for me to learn, thanks pixiecorp!
Quote Originally Posted by Pixie View Post
Stop making this a spam thread omfg... nad btw, this makes a msg box pop up, you can rename some of the stuff to disguise it...
Wait, I get four errors that say "MSGBox is a namespace and cannot be used as an expression"
What do I do, I'm using VB 2008 Express
Quote Originally Posted by meowmixx101 View Post
Wait, I get four errors that say "MSGBox is a namespace and cannot be used as an expression"
What do I do, I'm using VB 2008 Express
Hmm... I don't know... Make sure you have every thing you need... and name it correctly to... ALSO, make sure the code is it is said in the code box...
Posts 1–10 of 10 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Talk with us