Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[HELP] Vb.Net Icon Code.
#1
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.
Reply
#2
what are you trying to inbetween this MsgBox("Icon Changed Successfully!")
i dont understand?
~ Digital-Punk
Reply
#3
To make it that when they click the button, It changes the icon.
Reply
#4
Well that's pretty much like asking for the whole code to run your program.

I did some research, and it's not getting me anywhere. Try learning how to bind exe files or something of that nature. There has to be information on setting an icon.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Get Country Code In 1 Line Of Code. wchar_t 13 4,765 11-28-2012, 06:49 AM
Last Post: Cubs
  [VB.NET] Advance Icon Changer BlackSpider 17 9,942 11-25-2012, 10:41 PM
Last Post: ƃu∀ ıʞƃu∀
  SF Coders - Icon Changer - Project 1 Arron XR 14 4,609 09-11-2012, 08:20 PM
Last Post: malis2007
  Icon Websites? (Looking for Icons for Programs) AceInfinity 14 5,350 09-08-2012, 04:20 PM
Last Post: spesificrelax
  Crypter code source - project files [ vb.net ] rid47 2 2,517 09-08-2012, 04:17 PM
Last Post: spesificrelax

Forum Jump:


Users browsing this thread: 1 Guest(s)