Results 1 to 4 of 4
  1. #1
    Intellectual's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Location
    GDI
    Posts
    5,389
    Reputation
    785
    Thanks
    16,091
    My Mood
    Yeehaw

    Icon File Extractor

    Hello guy in this tutorial you gonna learn how to make an icon extractor which extract icons from files and save them , first you must include this on your source code
    Code:
     Dim extractpath As String
        Dim savepath As String
    • 1 Tools we need:
      - 3 Buttons
      - 2 Textboxs
      - 1 PictureBox



    • 2 Changing tool text:
      - Button1 = Browse File
      - Button2 = Save Extracted icon
      - Button3 = Extract



    • 3 Coding:
      Browse Executable Button
      Code:
         Dim s As New OpenFileDialog
              If s.ShowDialog = Windows.Forms.DialogResult.OK Then
                  PictureBox1.Image = Icon.ExtractAssociatedIcon(s.FileName).ToBitmap()
                  extractpath = s.FileName
                  TextBox1.Text = s.FileName
              End If


      Save Extracted icon
      Code:
        Dim s As New SaveFileDialog
              If s.ShowDialog = Windows.Forms.DialogResult.OK Then
                  savepath = s.FileName
                  TextBox2.Text = s.FileName
              End If


      Extract
      Code:
         If savepath = Nothing Then
                  MsgBox("Select a path to save the icon first", MsgBoxStyle.Critical, "Select path!")
                  Exit Sub
              End If
              If extractpath = Nothing Then
                  MsgBox("Select a path to extract the icon from", MsgBoxStyle.Critical, "Select path!")
                  Exit Sub
              End If
      
              Try
                  Dim bm As New Bitmap(PictureBox1.Image)
                  Dim ico As Icon = Icon.FromHandle(bm.GetHicon)
                  Dim fs As New System****.FileStream(savepath & ".ico", IO.FileMode.CreateNew)
                  ico.Save(fs)
                  fs.Close()
              Catch ex As Exception
                  MsgBox("A following error occured: " & vbCrLf & vbCrLf & ex.ToString)
              End Try
          End Sub

  2. The Following 2 Users Say Thank You to Intellectual For This Useful Post:

    Cryptonic (05-21-2013),deinemudda012345 (05-20-2013)

  3. #2
    deinemudda012345's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Posts
    269
    Reputation
    292
    Thanks
    232
    My Mood
    Angelic
    Thanks for this

  4. #3
    OneBestMetin's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0


    I have here an Error.
    Attached Thumbnails Attached Thumbnails
    31K93.png  


  5. #4
    egycnq's Avatar
    Join Date
    Sep 2018
    Gender
    male
    Posts
    202
    Reputation
    84
    Thanks
    34
    My Mood
    Amazed
    Thanks for this

Similar Threads

  1. WarZ Data files extractor
    By naruske in forum WarZ Discussion
    Replies: 9
    Last Post: 12-31-2012, 02:36 PM
  2. Where can I find the MW3 prestige icon files?
    By ^$^ in forum Call of Duty Modern Warfare 3 Help
    Replies: 2
    Last Post: 02-28-2012, 06:03 AM
  3. [Release] xChanger(Icon Changer-Icon Extractor)
    By ANDREAS789 in forum CrossFire Spammers, Injectors and Multi Tools
    Replies: 10
    Last Post: 12-28-2010, 05:38 AM
  4. Replies: 6
    Last Post: 04-30-2009, 12:25 AM
  5. ICO (Windows Icon) file format plugin for Photoshop
    By MrVader in forum Art & Graphic Design
    Replies: 7
    Last Post: 10-21-2008, 03:15 AM