Can't see images when run the application
-
i set a picturebox control on my form and i load an image to it from the image property , i also set the Visible property to "True" but when i debug the application , i can't see the image in the run mode, only the border of the picturebox. The extention of the image is "JPG" and "Gif" , and i can open those pictuers easly as i'm using windows XP, but i still can't see the picture on the run mode. is there a code i should use to load the image in the picturebox at run time , and if yes where to place this code, in the main code body of the form or behind the picturebox itself. please advise and thank you again i could found a possible code which is < Dim img As Image img = picturebox1.image > but when i use it i have an errore which state that Image is not a type. please advise and thank you.:) Ali
-
i set a picturebox control on my form and i load an image to it from the image property , i also set the Visible property to "True" but when i debug the application , i can't see the image in the run mode, only the border of the picturebox. The extention of the image is "JPG" and "Gif" , and i can open those pictuers easly as i'm using windows XP, but i still can't see the picture on the run mode. is there a code i should use to load the image in the picturebox at run time , and if yes where to place this code, in the main code body of the form or behind the picturebox itself. please advise and thank you again i could found a possible code which is < Dim img As Image img = picturebox1.image > but when i use it i have an errore which state that Image is not a type. please advise and thank you.:) Ali
You can use given command to load picture at run time Dim bmp As New System.Drawing.Bitmap(FileName) PictureBox1.Image = bmp Thanks & Regards Kumar Prabhakar
abc
-
You can use given command to load picture at run time Dim bmp As New System.Drawing.Bitmap(FileName) PictureBox1.Image = bmp Thanks & Regards Kumar Prabhakar
abc
Thank you so much, this was really helpful and solve the problem but the point now is , when i place the path for the image in the code. i can't run this application on any ther machine also when adding the setup wizard to the solution i added the image within this wizard. but when i tried to run the application on another machine after installing it, the application didn't work, so how i can over come this problem, please Advise and thanks for your help Ali