View Full Version : Visual basic simple help
hocsc
April 11th, 2002, 06:30
Hi,
I just started working visual basic and i want to add a button with a link to a program or a webpage behind it. How can i do this? Please help me!
Greetz!
Akalon
April 11th, 2002, 06:36
You'll be better off asking at http://www.visualbasicforum.com
eclipticzero
April 11th, 2002, 07:42
use shell() or whatever it is
hocsc
April 11th, 2002, 07:54
Originally posted by eclipticzero[2]
use shell() or whatever it is
Private Sub Startapache_Click(Index As Integer)
End Sub
This is the button but how do i add the shell rule? please help me fast!
eclipticzero
April 11th, 2002, 12:06
Declarations:
Option Explicit
Private 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
Code:
Shell("C:\bling\apache\bling.exe")
-----------------
There ya go, hope it works
leetcrew
April 13th, 2002, 10:40
shell "c:\program files.....\iexplore.exe http://www.domain.com"
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.