vb.net beginner plz help :)

im looking for a peace of code that will fit into this
[code]Private Sub BuPlay_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BuPlay.Click

If Me.lblPath.Text & "Wow.exe" = "" Then
MsgBox("Please specify your World of Warcraft Folder (that contains the wow.exe)")
Else
Shell(Me.lblPath.Text & "Wow.exe")
End If

Call CloseLauncher()

End Sub[/code]
what i want it to do is if theres a missing file a MsgBox will pop up.instad of the jitDebugging thing

Comments

  • The JIT is popping up becasue something is wrong in your project. If it pops up on start then the issue is most likely with a resource you are including. Also this statement will always return true . If you want to check the value of the text box do it without adding the file name.

    ~rlc

    : im looking for a peace of code that will fit into this
    : [code]: Private Sub BuPlay_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BuPlay.Click
    :
    : If Me.lblPath.Text & "Wow.exe" = "" Then
    : MsgBox("Please specify your World of Warcraft Folder (that contains the wow.exe)")
    : Else
    : Shell(Me.lblPath.Text & "Wow.exe")
    : End If
    :
    : Call CloseLauncher()
    :
    : End Sub[/code]:
    : what i want it to do is if theres a missing file a MsgBox will pop
    : up.instad of the jitDebugging thing
    :
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion