Click here to Skip to main content
15,894,720 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHelp Me Pin
hamed200929-Jun-09 17:39
hamed200929-Jun-09 17:39 
AnswerRe: Help Me Pin
dan!sh 29-Jun-09 19:16
professional dan!sh 29-Jun-09 19:16 
GeneralRe: Help Me Pin
hamed200929-Jun-09 21:38
hamed200929-Jun-09 21:38 
AnswerRe: Help Me Pin
Christian Graus30-Jun-09 0:16
protectorChristian Graus30-Jun-09 0:16 
GeneralRe: Help Me Pin
dan!sh 30-Jun-09 0:21
professional dan!sh 30-Jun-09 0:21 
GeneralRe: Help Me Pin
Christian Graus30-Jun-09 10:34
protectorChristian Graus30-Jun-09 10:34 
QuestionImage reference Pin
jhp53129-Jun-09 17:22
jhp53129-Jun-09 17:22 
AnswerRe: Image reference Pin
jhp53130-Jun-09 0:17
jhp53130-Jun-09 0:17 
So yea, I posted the same query on another forums and they answered the question Big Grin | :-D

The answer is the following ::::
If you look at the designer code of the resource file, you will find the following code
Public Shared ReadOnly Property image1() As System.Drawing.Bitmap
    Get
        Dim obj As Object = ResourceManager.GetObject("image1", resourceCulture)
        Return CType(obj,System.Drawing.Bitmap)
    End Get
End Property


However, the coding behind our windows form isn't a namespace, so instead of going straight to resource manager, My.Resources.imgs.ResourceManager

so in the code I had above, you can just go
Me.PictureBox1.Image = My.Resources.imgs.ResourceManager.GetObject(text)

QuestionDropdown box display issue in vb .net Pin
Member 451421829-Jun-09 17:04
Member 451421829-Jun-09 17:04 
AnswerRe: Dropdown box display issue in vb .net Pin
Henry Minute30-Jun-09 2:50
Henry Minute30-Jun-09 2:50 
QuestionDeveloping on WinXP & Office 2003, targeting WinServer2008 & Office 2007 - getting "Retrieving the COM class factory..." error Pin
Daniel Boling29-Jun-09 11:26
Daniel Boling29-Jun-09 11:26 
AnswerRe: Developing on WinXP & Office 2003, targeting WinServer2008 & Office 2007 - getting "Retrieving the COM class factory..." error Pin
Christian Graus29-Jun-09 13:21
protectorChristian Graus29-Jun-09 13:21 
AnswerRe: Developing on WinXP & Office 2003, targeting WinServer2008 & Office 2007 - getting "Retrieving the COM class factory..." error Pin
EliottA29-Jun-09 13:53
EliottA29-Jun-09 13:53 
GeneralRe: Developing on WinXP & Office 2003, targeting WinServer2008 & Office 2007 - getting "Retrieving the COM class factory..." error Pin
Daniel Boling30-Jun-09 2:41
Daniel Boling30-Jun-09 2:41 
GeneralRe: Developing on WinXP & Office 2003, targeting WinServer2008 & Office 2007 - getting "Retrieving the COM class factory..." error Pin
EliottA30-Jun-09 2:48
EliottA30-Jun-09 2:48 
QuestionMS VB 2008 express, install for all users Pin
Jesper hoegh29-Jun-09 9:12
Jesper hoegh29-Jun-09 9:12 
AnswerRe: MS VB 2008 express, install for all users Pin
Dave Kreskowiak29-Jun-09 9:45
mveDave Kreskowiak29-Jun-09 9:45 
Questionmake limit time to the vedio capture Pin
my30name29-Jun-09 5:31
my30name29-Jun-09 5:31 
AnswerRe: make limit time to the vedio capture Pin
garfield18529-Jun-09 5:34
garfield18529-Jun-09 5:34 
GeneralRe: make limit time to the vedio capture [modified] Pin
my30name29-Jun-09 22:56
my30name29-Jun-09 22:56 
QuestionString$ function Pin
garfield18529-Jun-09 5:12
garfield18529-Jun-09 5:12 
AnswerRe: String$ function Pin
Nagy Vilmos29-Jun-09 5:35
professionalNagy Vilmos29-Jun-09 5:35 
AnswerRe: String$ function Pin
Luc Pattyn29-Jun-09 5:35
sitebuilderLuc Pattyn29-Jun-09 5:35 
GeneralRe: String$ function Pin
garfield18529-Jun-09 5:46
garfield18529-Jun-09 5:46 
GeneralRe: String$ function Pin
Luc Pattyn29-Jun-09 7:00
sitebuilderLuc Pattyn29-Jun-09 7:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.