Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: VB Picturebox control

20 Jul 2012   #1

Windows 7 Enterprise 64 Bit
VB Picturebox control

Hi, is there way to change the picture box image when pressed a button?

Something like this:

PictureBox1.Image = (Pic.png)

This crashed the application:

PictureBox1.Image = System.Drawing.Bitmap.FromFile(Pic.png)


My System SpecsSystem Spec
20 Jul 2012   #2

W10 Pro desktop, W10 laptop, W10 laptop, W10 Pro tablet (all 64-bit)

My System SpecsSystem Spec
20 Jul 2012   #3

Windows 7 Enterprise 64 Bit


PictureBox1.Image = Image.FromFile _ (System.Environment.GetFolderPath _ (System.Environment.SpecialFolder.Personal) _ & "\Image.gif")

I dont know what to type into this...

Edit: It works! i used: picturebox1.image = Projectname.My.Resources.Resources.Imagename
My System SpecsSystem Spec


 VB Picturebox control

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar help and support threads
Thread Forum
I've lost control of permissions, how can get get control back?
Thanks for reading this. Boy, do I need help. Somehow I got my permissions all messed up. I can't access some folders. I have worked a lot trying to use properties-security tab and playing around, and I can sometimes change permissions so I can use a folder. But I am trying to open "Documents...
General Discussion
Can't control gain! No slider in control panel!
Hello! I got myself an Audio-Technica AT2020USB+ condenser microphone a few weeks ago, and I haven't really found out how I can change the gain, which I hear is important to do. There is only one slider where the gain slider also should have been. The mic doesn't have a gain know like some other...
Sound & Audio
Command Line Open Control Panel\All Control Panel Items
How to open "All Control Panel Items" from the command line? thanks...
General Discussion
AMD VISION Control Center / Catalyst Control Center = Same Thing?
When I got this laptop I had Catalyst Control Center when I right clicked the desktop, but when I installed a new driver it changed to AMD VISION Control Center. I didn't really notice anything different other than that. Is it suppose to change like that, did I download the wrong one or have the...
Nvidia color control vs Windows color control settings?
I am trying to set my monitor's screen give accurate renditions of my pictures. I use Quick Gamma to set gamma. When doing this I can use either Nvidia's controls or windows controls (right click desktop>Nvidia Control Panel. When using Nvidia's Control Panel, there are two choices: Use other...
General Discussion
How to control WMD with an IR remote control
I have a couple universal remotes that say they will control a WMC. Both are standard IR remote controls. How or what do I need to get my CPU to accept the controls from the remote? And phenom 3.4 quad core 8 gig ram Ultimate 64
Media Center

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 01:38.

Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App