Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Embedding pictures and icons into the exe

Embedding pictures and icons into the exe

Scheduled Pinned Locked Moved Visual Basic
helpquestiontutorialworkspace
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Namboy82
    wrote on last edited by
    #1

    Hi everyone I would like to know how to embed a image used in a PictureBox or an icon used in a Menu, someone sugessted using an imageList but then do you have to reference it to you form or the control that you are using, if so what is the best possible way to do this??? I have created a setup program but after it is installed it comes up with an exception, could that be due to me not referencing my pictures, can anybody give a reason for the problem and a solution. Sorry about the clarity of the other messages but it is hard to explain the problems and what i want to achieve. The error reads "An exception 'system.IO.FileNotFoundException' has occured in PgoramMenu.exe." Thanks Vu

    A E 2 Replies Last reply
    0
    • N Namboy82

      Hi everyone I would like to know how to embed a image used in a PictureBox or an icon used in a Menu, someone sugessted using an imageList but then do you have to reference it to you form or the control that you are using, if so what is the best possible way to do this??? I have created a setup program but after it is installed it comes up with an exception, could that be due to me not referencing my pictures, can anybody give a reason for the problem and a solution. Sorry about the clarity of the other messages but it is hard to explain the problems and what i want to achieve. The error reads "An exception 'system.IO.FileNotFoundException' has occured in PgoramMenu.exe." Thanks Vu

      A Offline
      A Offline
      Anonymous
      wrote on last edited by
      #2

      You can ambed pictures the following way :: (this is how I do it) Include de picture or image in your project, and select is in your 'Solution Explorer' The in the properties window, change to 'Embedded Resource' Now you can access the image from within your app... Dim bmpMyImage As New Bitmap (Me.GetType, "Namespace.To.Image.jpg") (Don't know if the above line is exactly correct, but something like that should help you on your way.)

      1 Reply Last reply
      0
      • N Namboy82

        Hi everyone I would like to know how to embed a image used in a PictureBox or an icon used in a Menu, someone sugessted using an imageList but then do you have to reference it to you form or the control that you are using, if so what is the best possible way to do this??? I have created a setup program but after it is installed it comes up with an exception, could that be due to me not referencing my pictures, can anybody give a reason for the problem and a solution. Sorry about the clarity of the other messages but it is hard to explain the problems and what i want to achieve. The error reads "An exception 'system.IO.FileNotFoundException' has occured in PgoramMenu.exe." Thanks Vu

        E Offline
        E Offline
        Eduard Keilholz
        wrote on last edited by
        #3

        You can ambed pictures the following way :: (this is how I do it) Include de picture or image in your project, and select is in your 'Solution Explorer' The in the properties window, change to 'Embedded Resource' Now you can access the image from within your app... Dim bmpMyImage As New Bitmap (Me.GetType, "Namespace.To.Image.jpg") (Don't know if the above line is exactly correct, but something like that should help you on your way.)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups