decrypt Posted May 27, 2004 Posted May 27, 2004 I know this seems like a simple thing, but i couldn't figure it out. What is the code to put a picture from a file, in a picture box... (loading it from code) thanks :) Quote
*Experts* mutant Posted May 27, 2004 *Experts* Posted May 27, 2004 Picturebox1.Image = Image.FromFile("path") Quote
decrypt Posted May 27, 2004 Author Posted May 27, 2004 Thanks alot. :) I knew it had to be something like that, but i couldn't figure it out. :P Quote
decrypt Posted May 28, 2004 Author Posted May 28, 2004 sry for the double post, but how can i get it so that it displays nothing in the picture box? (in code) Quote
wessamzeidan Posted May 28, 2004 Posted May 28, 2004 Try PictureBox1.Image = Nothing Quote Proudly a Palestinian Microsoft ASP.NET MVP My Blog: wessamzeidan.net
ThePentiumGuy Posted May 28, 2004 Posted May 28, 2004 or if that doesn't work: picturebox.image = image.fromFile(""), pent Quote My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!) vbprogramming.8k.com My Project (Need VB.NET Programmers) http://workspaces.gotdotnet.com/ResolutionRPG
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.