Advertisement
Bwl-Network

Launcher V.2

Jan 3rd, 2013
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 8.55 KB | None | 0 0
  1. Public Class Form1
  2.  
  3.     Private Sub Form1_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseDown
  4.         If (e.Button = Windows.Forms.MouseButtons.Left) Then
  5.             Me.Capture = False
  6.             Me.WndProc(Message.Create(Me.Handle, &HA1, CType(&H2, IntPtr), IntPtr.Zero))
  7.  
  8.         Else : End If
  9.     End Sub
  10.  
  11.     Private Sub PictureBox3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox3.Click
  12.         Application.Exit()
  13.     End Sub
  14.  
  15.     Private Sub PictureBox2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox2.Click
  16.         Me.WindowState = FormWindowState.Minimized
  17.     End Sub
  18.  
  19.     Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click
  20.         Process.Start("C:\wow 3.3.5.a\wow.exe")
  21.         Application.Exit()
  22.     End Sub
  23.  
  24.     Private Sub PictureBox9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox9.Click
  25.         Try
  26.             My.Computer.FileSystem.WriteAllText("C:\wow 3.3.5.a\Data\deDE\realmlist.wtf", "Set Realmlist 127.0.0.1", False)
  27.             MsgBox("Deine Realmlist wurde erfolgreich geändert. / Your realmlist was successfull changed ", MsgBoxStyle.Information)
  28.         Catch ex As Exception
  29.             MsgBox("Deine Realmlist konnte nicht geändert werden / Your realmlist could not be changed", MsgBoxStyle.Critical)
  30.  
  31.         End Try
  32.     End Sub
  33.  
  34.     Private Sub PictureBox10_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox10.Click
  35.         If My.Computer.FileSystem.DirectoryExists("C:\wow 3.3.5.a\Cache") Then
  36.             Try
  37.                 My.Computer.FileSystem.DeleteDirectory("C:\wow 3.3.5.a\Cache", FileIO.DeleteDirectoryOption.DeleteAllContents)
  38.                 MsgBox("Dein Cache Ordner wurde erfolgreich gelöscht / Successfully deleted your cache folder", MsgBoxStyle.Information)
  39.             Catch ex As Exception
  40.                 MsgBox("Dein Cache Ordner konnte nicht gelöscht werden / Could not delete your cache folder", MsgBoxStyle.Critical)
  41.             End Try
  42.  
  43.         Else
  44.             MsgBox("Dein Cache Ordner wurde bereits gelöscht ! / Your cache is already cleared folder!", MsgBoxStyle.MsgBoxHelp)
  45.  
  46.         End If
  47.     End Sub
  48.  
  49.     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  50.         PictureBox1.Parent = Me
  51.         PictureBox1.BackColor = Color.Transparent
  52.         PictureBox10.Parent = Me
  53.         PictureBox10.BackColor = Color.Transparent
  54.         PictureBox9.Parent = Me
  55.         PictureBox9.BackColor = Color.Transparent
  56.         PictureBox8.Parent = Me
  57.         PictureBox8.BackColor = Color.Transparent
  58.         PictureBox7.Parent = Me
  59.         PictureBox7.BackColor = Color.Transparent
  60.         PictureBox6.Parent = Me
  61.         PictureBox6.BackColor = Color.Transparent
  62.         PictureBox5.Parent = Me
  63.         PictureBox5.BackColor = Color.Transparent
  64.         PictureBox4.Parent = Me
  65.         PictureBox4.BackColor = Color.Transparent
  66.         PictureBox3.Parent = Me
  67.         PictureBox3.BackColor = Color.Transparent
  68.         PictureBox2.Parent = Me
  69.         PictureBox2.BackColor = Color.Transparent
  70.     End Sub
  71.  
  72.     Private Sub PictureBox1_MouseEnter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.MouseEnter
  73.         PictureBox1.BackgroundImage = My.Resources.Button
  74.     End Sub
  75.  
  76.     Private Sub PictureBox1_MouseLeave(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.MouseLeave
  77.         PictureBox1.Parent = Me
  78.         PictureBox1.BackgroundImage = Nothing
  79.     End Sub
  80.  
  81.     Private Sub PictureBox10_MouseEnter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox10.MouseEnter
  82.         PictureBox10.BackgroundImage = My.Resources.Cache
  83.     End Sub
  84.  
  85.     Private Sub PictureBox10_MouseLeave(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox10.MouseLeave
  86.         PictureBox10.Parent = Me
  87.         PictureBox10.BackgroundImage = Nothing
  88.     End Sub
  89.  
  90.     Private Sub PictureBox9_MouseEnter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox9.MouseEnter
  91.         PictureBox9.BackgroundImage = My.Resources.Realmlist
  92.     End Sub
  93.  
  94.     Private Sub PictureBox9_MouseLeave(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox9.MouseLeave
  95.         PictureBox9.Parent = Me
  96.         PictureBox9.BackgroundImage = Nothing
  97.     End Sub
  98.  
  99.     Private Sub PictureBox3_MouseEnter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox3.MouseEnter
  100.         PictureBox3.BackgroundImage = My.Resources.Schließen
  101.     End Sub
  102.  
  103.     Private Sub PictureBox3_MouseLeave(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox3.MouseLeave
  104.         PictureBox3.Parent = Me
  105.         PictureBox3.BackgroundImage = Nothing
  106.     End Sub
  107.  
  108.     Private Sub PictureBox2_MouseEnter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox2.MouseEnter
  109.         PictureBox2.BackgroundImage = My.Resources.Minimieren
  110.     End Sub
  111.  
  112.     Private Sub PictureBox2_MouseLeave(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox2.MouseLeave
  113.         PictureBox2.Parent = Me
  114.         PictureBox2.BackgroundImage = Nothing
  115.     End Sub
  116.  
  117.     Private Sub PictureBox5_MouseEnter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox5.MouseEnter
  118.         PictureBox5.BackgroundImage = My.Resources.Fanpgage
  119.     End Sub
  120.  
  121.     Private Sub PictureBox5_MouseLeave(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox5.MouseLeave
  122.         PictureBox5.Parent = Me
  123.         PictureBox5.BackgroundImage = Nothing
  124.     End Sub
  125.  
  126.     Private Sub PictureBox6_MouseEnter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox6.MouseEnter
  127.         PictureBox6.BackgroundImage = My.Resources.Youtube
  128.     End Sub
  129.  
  130.     Private Sub PictureBox6_MouseLeave(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox6.MouseLeave
  131.         PictureBox6.Parent = Me
  132.         PictureBox6.BackgroundImage = Nothing
  133.     End Sub
  134.  
  135.     Private Sub PictureBox4_MouseEnter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox4.MouseEnter
  136.         PictureBox4.BackgroundImage = My.Resources.Buttons
  137.     End Sub
  138.  
  139.     Private Sub PictureBox4_MouseLeave(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox4.MouseLeave
  140.         PictureBox4.Parent = Me
  141.         PictureBox4.BackgroundImage = Nothing
  142.     End Sub
  143.  
  144.     Private Sub PictureBox8_MouseEnter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox8.MouseEnter
  145.         PictureBox8.BackgroundImage = My.Resources.Donor
  146.     End Sub
  147.  
  148.     Private Sub PictureBox8_MouseLeave(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox8.MouseLeave
  149.         PictureBox8.Parent = Me
  150.         PictureBox8.BackgroundImage = Nothing
  151.     End Sub
  152.  
  153.     Private Sub PictureBox7_MouseEnter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox7.MouseEnter
  154.         PictureBox7.BackgroundImage = My.Resources.Votepage
  155.     End Sub
  156.  
  157.     Private Sub PictureBox7_MouseLeave(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox7.MouseLeave
  158.         PictureBox7.Parent = Me
  159.         PictureBox7.BackgroundImage = Nothing
  160.     End Sub
  161.  
  162.     Private Sub PictureBox4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox4.Click
  163.         MsgBox("Your Hompage URL must in here", MsgBoxStyle.Information)
  164.     End Sub
  165.  
  166.     Private Sub PictureBox6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox6.Click
  167.         MsgBox("Youtube Channel link must in here", MsgBoxStyle.Information)
  168.     End Sub
  169.  
  170.     Private Sub PictureBox5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox5.Click
  171.         MsgBox("Your Fanpage must in here", MsgBoxStyle.Information)
  172.     End Sub
  173.  
  174.     Private Sub PictureBox8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox8.Click
  175.         MsgBox("Your Donorpage URL must in here", MsgBoxStyle.Information)
  176.     End Sub
  177.  
  178.     Private Sub PictureBox7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox7.Click
  179.         MsgBox("Your Votingpage URL must in here", MsgBoxStyle.Information)
  180.     End Sub
  181. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement