|
-
Dec 5th, 2000, 09:37 AM
#1
Thread Starter
New Member
Hi Guys,
New to VB. I would to link a URL to an image control. When user clicks on image it needs to open that(linked) web page. Can anybody help me in writing this code.
Thanks for your help.
-
Dec 5th, 2000, 09:43 AM
#2
<a href="http://www.vb-world.net"><IMG SRC="http://www.vb-world.net/images/vbworld.gif"></a>
And if you want the link to go somewhere else, set the target.
<a href="http://www.vb-world.net" target="_blank"><IMG SRC="http://www.vb-world.net/images/vbworld.gif"></a>
^This will open it in a new window.
-
Dec 5th, 2000, 09:49 AM
#3
Thread Starter
New Member
That's not it
I am not trying to open that link from a web browser. I got an VBA application wizard where I put the image control. When I click that image it needs to open the web browser and go to that url address.
-
Dec 5th, 2000, 01:02 PM
#4
Thread Starter
New Member
I am not sure. I don't think it has anything to do with Shell.
-
Dec 5th, 2000, 01:39 PM
#5
Oh, because I thought maybe it'd be something like this:
Code:
Private Sub Image1_Click()
Shell "C:\Program Files\Internet Explorer\IExplore.exe http://www.vb-world.net", vbNormalFocus
End Sub
-
Dec 5th, 2000, 02:24 PM
#6
Thread Starter
New Member
Thank you
Thanks very much Matt. It worked.
-
Dec 5th, 2000, 08:40 PM
#7
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
|