Advertisement
RieqyNS13

Code for form1 spamming project

Oct 20th, 2011
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 4.98 KB | None | 0 0
  1. Public Class Form1
  2.     Sub message()
  3.         If TextBox1.Text = "" And TextBox2.Text = "" Then
  4.             MsgBox("Ada kotak yang belum diisi")
  5.         End If
  6.         If TextBox1.Text = "" And TextBox2.Text <> "" Then
  7.             MsgBox("Kotak nomer 1 belum diisi")
  8.         End If
  9.         If TextBox1.Text <> "" And TextBox2.Text = "" Then
  10.             MsgBox("Kotak nomer 2 belum diisi")
  11.         End If
  12.         If TextBox1.Text <> "" And TextBox2.Text <> "" And NumericUpDown1.Value <> 0 And NumericUpDown2.Value <> 0 Then
  13.             Timer1.Interval = NumericUpDown2.Value
  14.             Timer1.Start()
  15.         End If
  16.         If TextBox1.Text <> "" And TextBox2.Text <> "" And NumericUpDown1.Value = 0 And NumericUpDown2.Value <> 0 Then
  17.             MsgBox("Jumlah Spam harus lebih dari 0")
  18.         End If
  19.         If TextBox1.Text <> "" And TextBox2.Text <> "" And NumericUpDown1.Value <> 0 And NumericUpDown2.Value = 0 Then
  20.             MsgBox("Interval harus lebih dari 0")
  21.         End If
  22.         If TextBox1.Text <> "" And TextBox2.Text <> "" And NumericUpDown1.Value = 0 And NumericUpDown2.Value = 0 Then
  23.             MsgBox("Interval dan Jumlah Spam harus lebih dari 0")
  24.         End If
  25.     End Sub
  26.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  27.         message()
  28.        End Sub
  29.  
  30.     Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
  31.         If NumericUpDown1.Value = 0 Then
  32.             Timer1.Stop()
  33.             Me.Show()
  34.         Else
  35.             NumericUpDown1.Value -= 1
  36.             If RadioButton1.Checked Then
  37.                 MsgBox(TextBox1.Text, MsgBoxStyle.Information, TextBox2.Text)
  38.             End If
  39.             If RadioButton2.Checked Then
  40.                 MsgBox(TextBox1.Text, MsgBoxStyle.Critical, TextBox2.Text)
  41.             End If
  42.             If RadioButton3.Checked Then
  43.                 MsgBox(TextBox1.Text, MsgBoxStyle.AbortRetryIgnore, TextBox2.Text)
  44.             End If
  45.             If RadioButton4.Checked Then
  46.                 MsgBox(TextBox1.Text, MsgBoxStyle.ApplicationModal, TextBox2.Text)
  47.             End If
  48.             If RadioButton5.Checked Then
  49.                 MsgBox(TextBox1.Text, MsgBoxStyle.Exclamation, TextBox2.Text)
  50.             End If
  51.             If RadioButton6.Checked Then
  52.                 MsgBox(TextBox1.Text, MsgBoxStyle.MsgBoxHelp, TextBox2.Text)
  53.             End If
  54.             If RadioButton7.Checked Then
  55.                 MsgBox(TextBox1.Text, MsgBoxStyle.MsgBoxRight, TextBox2.Text)
  56.             End If
  57.             If RadioButton8.Checked Then
  58.                 MsgBox(TextBox1.Text, MsgBoxStyle.MsgBoxRtlReading, TextBox2.Text)
  59.             End If
  60.             If RadioButton9.Checked Then
  61.                 MsgBox(TextBox1.Text, MsgBoxStyle.MsgBoxSetForeground, TextBox2.Text)
  62.             End If
  63.             If RadioButton10.Checked Then
  64.                 MsgBox(TextBox1.Text, MsgBoxStyle.OkOnly, TextBox2.Text)
  65.             End If
  66.             If RadioButton11.Checked Then
  67.                 MsgBox(TextBox1.Text, MsgBoxStyle.Question, TextBox2.Text)
  68.             End If
  69.             If RadioButton12.Checked Then
  70.                 MsgBox(TextBox1.Text, MsgBoxStyle.YesNoCancel, TextBox2.Text)
  71.             End If
  72.         End If
  73.     End Sub
  74.  
  75.     Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
  76.         If TextBox1.Text = "" And TextBox2.Text = "" Then
  77.             MsgBox("Ada kotak yang belum diisi")
  78.         End If
  79.         If TextBox1.Text = "" And TextBox2.Text <> "" Then
  80.             MsgBox("Kotak nomer 1 belum diisi")
  81.         End If
  82.         If TextBox1.Text <> "" And TextBox2.Text = "" Then
  83.             MsgBox("Kotak nomer 2 belum diisi")
  84.         End If
  85.         If TextBox1.Text <> "" And TextBox2.Text <> "" And NumericUpDown1.Value <> 0 And NumericUpDown2.Value <> 0 Then
  86.             Me.Hide()
  87.             Timer1.Interval = NumericUpDown2.Value
  88.             Timer1.Start()
  89.         End If
  90.         If TextBox1.Text <> "" And TextBox2.Text <> "" And NumericUpDown1.Value = 0 And NumericUpDown2.Value <> 0 Then
  91.             MsgBox("Jumlah Spam harus lebih dari 0")
  92.         End If
  93.         If TextBox1.Text <> "" And TextBox2.Text <> "" And NumericUpDown1.Value <> 0 And NumericUpDown2.Value = 0 Then
  94.             MsgBox("Interval harus lebih dari 0")
  95.         End If
  96.         If TextBox1.Text <> "" And TextBox2.Text <> "" And NumericUpDown1.Value = 0 And NumericUpDown2.Value = 0 Then
  97.             MsgBox("Interval dan Jumlah Spam harus lebih dari 0")
  98.         End If
  99.     End Sub
  100.  
  101.     Private Sub SpammingProgramToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SpammingProgramToolStripMenuItem.Click
  102.         Form2.Show()
  103.  
  104.     End Sub
  105.  
  106.     Private Sub SpammingTextToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SpammingTextToolStripMenuItem.Click
  107.         Form3.Show()
  108.  
  109.     End Sub
  110. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement