CF opener/ Is this code right?
Hey i makeing a Crossfire NA opener "Patcher_CF" and i wanna know if this code is right or whats wrong with it?
Opener:
Browse For path to open CF without putting in folder:
OpenFileDialog2:
I want it so u dont have to put it in CF folders and you browse for the path like C:/Program/Z8Games/Crossfire/Patcher_CF
Help?
Opener:
Code:
Try
Shell("cf_Patcher.exe")
MsgBox("CrossFire Launched Success Made by @Stanman08")
Catch ex As Exception
MsgBox("Please Put Launcher On Crossfire Folder", MsgBoxStyle.Exclamation, "Made By: @Stanman08")
End Try
Code:
OpenFileDialog2.Filter = "Exe files | *.exe"
OpenFileDialog2.ShowDialog()
GhostTextBox1.Text = OpenFileDialog2.FileName
Code:
Dim OFD As New OpenFileDialog
If Not OFD.ShowDialog = DialogResult.Cancel Then
GhostTextBox1.Text = System****.Path.GetFileName(OFD.FileName)
End If
Help?

