Link to home
Start Free TrialLog in
Avatar of Brian Concannon
Brian Concannon

asked on

VB.net help with images

I need programming help with my vb.net project.  I want some images to be in the project resource file, and put the images on various controls.   I can do this successfully by reading the images I want from a file, but that creates installation overhead for the app.  I need to know how to put the images into the project, apart from any files.
ASKER CERTIFIED SOLUTION
Avatar of it_saige
it_saige
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of richard rees
richard rees

tried id, still a bug, see att.
CODE.PNG
how do I upload 3 files?  will try one at a time.User generated imageOK 3RD FILE NOW
User generated imageUser generated image
I obviously have difficulty showing multiple screenshots.

Can I get a teamviewer session from you?  I will pay.
How did you mark your resource?  Did you add it through the project resources page or mark it as an Embedded resource?

You can always determine the resource name by simply iterating over the GetManifestResourceNames collection; e.g. -
	Private Sub OnLoad(sender As Object, e As EventArgs) Handles MyBase.Load
		For Each item In Assembly.GetExecutingAssembly().GetManifestResourceNames()
			Console.WriteLine(item)
		Next
	End Sub

Open in new window

Which would produce the following output -User generated image-saige-
Screen capture

I tried it and have a null stream error.  I have screenshots for you and would like more help. How should I proceed?
IT_SAIGE SEE PIC.  i still do not know how to converse with you, this way seems cumbersome.  Null stream error even with verified name.

User generated image
Solution accepted thank you
Solution accepted by user