[RESOLVED] How do I use my.resource.C &"textbox1.text"
Ok this is really confusing.
I have resources named:
C1
C2
C3
C4
Now When I want to load Images, I am using rnd to get a random number in textbox so i am trying to get the same number in that image i.e.
PHP Code:
Picturebox1.Image = My.Resources.C & textbox1.text
But its not working so is there any other option?
Regards,
Re: How do I use my.resource.C &"textbox1.text"
it works this way:
vb Code:
Picturebox1.Image = directcast(My.Resources.ResourceManager.getObject("C" & textbox1.text), bitmap)
Re: [RESOLVED] How do I use my.resource.C &"textbox1.text"