TALSOFT
Active member
- Joined
- Feb 23, 2012
- Messages
- 34
- Programming Experience
- 5-10
So I am wondering what I am doing wrong here
I am trying to load a GIF file by its string name from my.resources as what GIF to show is chosen at random
and based off that random number we get a valid string name. The names come out proper because I used the Msgbox trick
Here is my faulty coding
The issue is that the Imagebox that is referanced to IMGBOXUPDATE goes blank after this function.
I am trying to load a GIF file by its string name from my.resources as what GIF to show is chosen at random
and based off that random number we get a valid string name. The names come out proper because I used the Msgbox trick
Here is my faulty coding
And Card_File_Name is a predefined string, and no there is no space after the letter N in card_file_name it just appears that way because its italicizedPublic Function PrintCardName(ByVal Suit As String, ByVal Hand As String, ByRef ImgBoxUpdate As System.Windows.Forms.PictureBox)
'Working code omitted to save reading time
ImgBoxUpdate.Image = My.Resources.ResourceManager.GetObject(Card_File_Name)
End Function
The issue is that the Imagebox that is referanced to IMGBOXUPDATE goes blank after this function.
Last edited: