Questions tagged [my.resources]
20 questions
25
votes
5 answers
VB.Net: Dynamically Select Image from My.Resources
I have a group of images in my My.Resources. I want to select select images to display dynamically at run time. How do I do this?
'Static (Compile time) Assignment
UltraPictureBox1.Image = my.Resources.zoo_picture_1
'Dynamic (Runtime)…

Jeff
- 8,020
- 34
- 99
- 157
7
votes
2 answers
My.Resources in WPF XAML?
Is there a way to access My.Resources thru Xaml?
Like this
This is the error I get:
\Application.xaml(122,36):…

Shimmy Weitzhandler
- 101,809
- 122
- 424
- 632
4
votes
2 answers
Image source using project resource (WPF)
I added a bunch of images as project resources.
Now i want to use them in my WPF application using the image control.
How can I assign the resource to the source of the image control?

Bill Gates
- 87
- 1
- 2
- 3
3
votes
2 answers
vb.net: Get to resources of a referenced project
I have a project which contains all custom controls and images; we'll call it projectBase. Now I have created a windows forms project (project1) that references projectBase. I need to access the embedded resource (images) of projectBase in…

spo
- 33
- 1
- 3
3
votes
1 answer
Loading internal text file as XML
I'm writing a VB.NET app where I want to load an internal text file from Resource.
But the code shows Invalid URI: The Uri string is too long.
The code is
'document.Load("C:\Users\Sou\Documents\Visual Studio…

Sourav
- 17,065
- 35
- 101
- 159
2
votes
2 answers
How do you load an image from resource file in vb 2010 expresss?
First of all Im new to vb 2010 and so far have enjoyed what I have been able to do with it. That being said I have run into an issue with my current project.
Basically I have created a timer and all works well on that part. My issue lies in that my…

CustomZ02
- 43
- 1
- 2
- 6
2
votes
1 answer
Load Image from My.Resources to a Picturebox (VB.NET)
I'm having trouble loading an image from My.Resources. I have already tried a no. of codes like....:
PictureBox1.Image = My.Resources.Online_lime_icon; And
PictureBox1.Image = CType(My.Resources.ResourceManager.GetObject("Online_lime_icon"),…

Moondoggie
- 61
- 1
- 2
- 9
1
vote
0 answers
using resource bitmap
I cannot figure this out: I added a resource "kurzor_10.png" and I'm trying to use it like this:
Dim bm As Bitmap = New Bitmap(My.Resources.kurzor_10)
This doesn't work. MS Studio offers me in the above code under My.Resources.{selection} ALL…

Oak_3260548
- 1,882
- 3
- 23
- 41
1
vote
1 answer
Some questions about resources
I am writing application that use resources, and I have some questions about it:
Can app-inside resources (my.resources) be edited, removed and added, and how can I do it?
How can I create an array of the app-inside resources?
How can I read an…

Benjli
- 125
- 2
- 13
1
vote
0 answers
vb.net how to change values in embedded "My.Resource" files
First thing I want to do:
I would like to know if an embedded resource file can be changed? If I had a test.htm in the resource area and in side that file i had the word "YourVariable", When i load form1 (Run program) it would change "YourVariable"…

Atomicbreakout
- 11
- 3
1
vote
2 answers
Progress bar for copying file from 'My.resources' VB.net
I am trying to copy a file from 'My.resources' with a progress bar, i have search through many other file copy progress bar scripts but none of them support copying from internal; files. here is my code:
Private Sub Install_Click(sender As Object, e…

Connor Galea
- 13
- 1
- 4
0
votes
2 answers
How can I write a subroutine to write an embedded binary resource to a file?
I have a resource file embedded within my VB.NET 2019 project that with a button click, I would like to copy to the desktop. I tried to do this with a private sub so I could reuse the function but I cannot get it to work. The files are binary…

Mike
- 33
- 8
0
votes
0 answers
VB.net - using a string as resource name to make code more customizable
I would like to put the name of a resource into a string, because this resource name appears everywhere in the code and this prevents quick changes.
Dim fontMemPointer As IntPtr = Marshal.AllocCoTaskMem(My.Resources.DIGITALDREAMNARROW.Length)
You…

Geoff Vane
- 33
- 1
- 8
0
votes
1 answer
VB.NET 2010 - Extracting an application resource to the Desktop
I am trying to extract an application resource from My.Resources.FILE
I have discovered how to do this with DLL & EXE files, but I still need help with the code for extracting PNG & ICO files.
Other file types also. (If possible)
Here is my current…

SilverSlash
- 69
- 9
0
votes
1 answer
passing values to a resource file in vb.net
I have a user form that allows a user to select a start and stop date (using DateTimePicker objects calleddtStart and dtEnd respectively). These dates are then used as criteria in an sql query against a database.
When I originally wrote the program,…

paul frith
- 551
- 2
- 4
- 21