I want to link my VB app to some web based help files, but am having a little trouble. I have inserted the Internet Transfer Control and added the code inet1.openurl...to a menu click event but nothing happens. What am I missing?
If you just want to open the files in a browser the easiest and quickest is with this code here. This also includes sending an email to your default if you like and no internet controls in site!
Public 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
then call this with one of the two following commands.
Dim lng as Long
'email the internet site
lng = ShellExecute (frmMain.hwnd, "Open", "mailto:xxx@yyy.net", "", App.Path, 1)
'open the internet site
lng = ShellExecute(frmMain.hwnd, "Open", "
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.