Embedding pictures and icons into the exe
-
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
-
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
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.)
-
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
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.)