G
Guest
Hi,
I have a little problem with getting images into my pictureboxes while the
programm is running. I want to have the option changing pictures without
recompiling the programm. Because of this I tried to load pictures and then
put them into a picturebox with the folloing code I found here in the
newsgroup:
Dim imageName As New String("Test.bmp")
Dim Pippo = New
Bitmap(System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("MedicAlertClient.images." + imageName))
picTest.Image = Pippo
But I get a SystemNullReference Exeption. Can somebody tell my how to find
out where my base directory is, and how to load an assign an image to the
picturebox?
Thx,
Cyberdot
PS: Excuse my bad english, it's not my native language... ;o)
I have a little problem with getting images into my pictureboxes while the
programm is running. I want to have the option changing pictures without
recompiling the programm. Because of this I tried to load pictures and then
put them into a picturebox with the folloing code I found here in the
newsgroup:
Dim imageName As New String("Test.bmp")
Dim Pippo = New
Bitmap(System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("MedicAlertClient.images." + imageName))
picTest.Image = Pippo
But I get a SystemNullReference Exeption. Can somebody tell my how to find
out where my base directory is, and how to load an assign an image to the
picturebox?
Thx,
Cyberdot
PS: Excuse my bad english, it's not my native language... ;o)