12-15-2009, 03:22 PM
Code:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim ofd As New OpenFileDialog
ofd.Filter = "Exe Files|*.exe"
ofd.ShowDialog()
TextBox1.Text = String.Empty
TextBox1.Text = ofd.FileName
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim ofd As New OpenFileDialog
ofd.Filter = "ico Files|*.ico"
ofd.ShowDialog()
TextBox2.Text = String.Empty
TextBox2.Text = ofd.FileName
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
If TextBox1.Text = "" Then
MsgBox("Choose your .exe", 49, "Error")
End If
If TextBox2.Text = "" Then
MsgBox("Choose your icon", 49, "Error")
End If
MsgBox("Icon Changed Successfully!")
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
MsgBox("HmanDude")
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.Refresh()
Threading.Thread.Sleep(100)
Dim Location As String = "dissembler LIB.dll"
My.Computer.FileSystem.WriteAllBytes(Location, My.Resources.dissembler_LIB, False)
End Sub
End Class
This is my code. Currently, I want to fit something inbetween
"End If"
and
MsgBox("Icon Changed Successfully!")
Thanks.