|
-
May 21st, 2004, 04:49 PM
#1
Thread Starter
Junior Member
Hyperlink a Picturebox in VB.NET
Hi-
I want to have an image on a form that opens up a webpage when someone clicks on it. I tried using the LinkLabel control, but the link never worked unless their was a value for the Text property.
Is there a way to make a picturebox open a webpage when a user clicks it?
Thanks,
-Steve
-Steve
Steve Parks
CEO
Adept Developer Consulting, Inc.
http://www.adeptdeveloper.com/
-
May 21st, 2004, 05:38 PM
#2
Sleep mode
In the Click event of the picturebox , add this code :
VB Code:
Process.Start("iexplorer.exe","www.whatever.com")
-
May 21st, 2004, 05:44 PM
#3
Thread Starter
Junior Member
How do I find the path to IE? Is there an Environment variable or anything for that?
-Steve
-Steve
Steve Parks
CEO
Adept Developer Consulting, Inc.
http://www.adeptdeveloper.com/
-
May 21st, 2004, 06:50 PM
#4
Sleep mode
This way should work fine with both Win2000 and XP but I'm not so sure about earlier versions of windows . So , it doesn't need any specific path to run explorer .
VB Code:
Process.Start("IEXPLORE", "www.address.com")
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|