|
-
September 2nd, 2002, 03:19 PM
#1
Executing shortcuts in VB6
yo,
There are two ways (possibly more) of doing what I need to do...
1. I need to have a button in my form open up a shortcut on my desktop. The shortcut is to a dialup box to connect to my ISP. Executing a shortcut, would be one way of doing this...
2. Is there a line of code that loads up your default net connection, that I could just place within my buttons code?
Any help : greatly appreciated.
snafudude
-
September 2nd, 2002, 04:40 PM
#2
You could try posting your question HERE
Regards
r3b00+
-
September 2nd, 2002, 09:26 PM
#3
I found this code, tho its not working for me right now, it did work 100% (otherwise i wouldnt document it, i guess its coz i use cable connection right now). "Internet Zahav" is the connection name, and here is the code :
Private Sub Form_Load()
taskID = Shell("rundll.exe rnaui.dll,RnaDial " & "Internet Zahav", 1)
DoEvents ' Wait until RAS-window is shown
Timer1 = True
End Sub
Private Sub Timer1_Timer()
SendKeys "Hello", True ' Press "Return" = "Connect"
SendKeys "{ENTER}", True ' Press "Return" = "Connect"
Timer1 = False
End Sub
'I hope it will help you
-
September 2nd, 2002, 10:13 PM
#4
I will do what you suggested. Thanks
STeRoiD : Thanks i'll let ya know how I get on.
Thanks
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
|
|