Click to See Complete Forum and Search --> : Pro looking About


Nightwalker
September 23rd, 1999, 08:14 PM
How would one go about adding a URL to a form so user could go straight to a the developers websiter to register, search for update and patches?

Ive seen these url's on many different applications about dialog boxes but cant work out how to do it.

Please Help

D.G.Holmes
Gap Student

AndyK
September 23rd, 1999, 10:43 PM
I'm not sure if I exactly know what you want, but maybe this will help.
Add this code to module

Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (byval hwnd as Long, byval lpOperation as string, byval lpFile as string, byval lpParameters as string, byval lpDirectory as string, byval nShowCmd as Long) as Long



and this to label1.click where label1.caption = "http://www.yourlink.com"

Dim link
link = ShellExecute(me.hwnd, "Open", Label1.Caption, "", App.Path, 1)



Hope this will help :)

AndyK
September 23rd, 1999, 10:50 PM
oops...:)
not label1.click...Label1_Click ()
sorry

czimmerman
September 24th, 1999, 04:55 PM
See http://www.freevbcode.com/ShowCode.Asp?ID=12