{ World of Warcraft Launcher Tutorial }

Required Files:







Follow this steps:


  • Open Visual Studio.
  • Click "New Project..."


  • Go under "Templates" and Select "Visual Basic" and then find "Windows Form Application" Click OK.


  • This is how it should look if you done everthing correctly.


  • Now Right Click the "Launcher" in solution explorer and click Properties. This is the window that should appear after you clicked Properties.


  • Now click on "Icon:" and find the IconWoW.ico and select it.


  • Go back to design tab and click "Form1".


  • Scroll all the way down until u see "Icon". Now use IconWoW.ico for your icon.


  • Now scroll up until you see "Text". You can change the text to like: "Optium WoW Launcher" or your server or anything you want!


  • Go to launcher tab again.


  • Resources > Add Existing File... Now select all the files from Launcher GUI and load them.


  • Now click on form1 again and scroll until you find "BackgroundImage".


  • Select "background.png" from Launcher GUI as "BackgroundImage". Resize it until you get something as this:


  • Now click on toolbox and select PictureBox under Common Controls. Load play_static as Image and BackColor as Transaprent.


  • Now do same for the all buttons until you have something like this:


  • Now we can move to coding! ooo i like this part ^_^

    Okay so, here's the thing. People love to see button changes after click, ima tell you that.

    Alright let's begin.

    First of all you must add this at the very top of the code:

    Code:
    Imports System.IO


    Play button is our PictureBox1

    So, double click the Play button and then paste this code:

    Code:
    PictureBox1.Image = My.Resources.play_pressed
    it should look like this:



    Moving to website button!

    Double click website button and paste this code:

    Code:
       PictureBox3.Image = My.Resources.web_pressed
            Process.Start("http://www.google.com")
    It should look like this:



    On to cache one

    Double click Cache button and paste this code:

    Code:
        PictureBox2.Image = My.Resources.cache_pressed
            If Directory.Exists(My.Computer.FileSystem.CurrentDirectory & "/Cache") Then
                Dim Cache As String = (My.Computer.FileSystem.CurrentDirectory & "/Cache")
                Select Case MsgBox("Do you want to delete the Cache folder?", MsgBoxStyle.Critical + MsgBoxStyle.YesNo, "WARNING")
                    Case MsgBoxResult.Yes
                        Directory.Delete(Cache, True)
                    Case MsgBoxResult.No
                End Select
            End If
    Should look like this:



    Now let's make that play button work!

    Paste this code:

    Code:
        If File.Exists(My.Computer.FileSystem.CurrentDirectory & "/Wow.exe") Then
                Shell(My.Computer.FileSystem.CurrentDirectory & "/Wow.exe")
                Me.Close()
            Else
                MsgBox("Could not start Wow.exe", MsgBoxStyle.Critical, "Application Not Found")
            End If
    Should look like this:



    Now right click "Solution 'Launcher'" and click Build Solution!



    And now you are done!!

    Navigate to your program directory, in my case my desktop then Launcher -> Bin -> Debug

    You should see Launcher application.
    Move it to your wow folder(where your wow.exe is) and test it.

    NOTE: Remember to save the visual project for later editing



Credits TionHD