 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
Golden Wing Grandmaster Cheater
Reputation: 0
Joined: 29 Aug 2007 Posts: 905
|
Posted: Wed Oct 24, 2007 4:57 pm Post subject: vb6 button link |
|
|
im making a program and wanted to kno whats the code for a button link? like when they click Cheat Engine Forums is link to this site _________________
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Wed Oct 24, 2007 6:12 pm Post subject: |
|
|
This has been asked and answered before, you should search before posting questions. But to answered your question, use ShellExecute in the Command_Click sub:
| Code: | 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
Private Const SW_SHOWNORMAL = 1
Private Sub Command1_Click()
ShellExecute Me.hwnd, "open", "http://www.cheatengine.org", vbNullString, vbNullString, SW_SHOWNORMAL
End Sub |
_________________
- Retired. |
|
| Back to top |
|
 |
Golden Wing Grandmaster Cheater
Reputation: 0
Joined: 29 Aug 2007 Posts: 905
|
Posted: Wed Oct 24, 2007 7:41 pm Post subject: |
|
|
| Wiccaan wrote: | This has been asked and answered before, you should search before posting questions. But to answered your question, use ShellExecute in the Command_Click sub:
| Code: | 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
Private Const SW_SHOWNORMAL = 1
Private Sub Command1_Click()
ShellExecute Me.hwnd, "open", "http://www.cheatengine.org", vbNullString, vbNullString, SW_SHOWNORMAL
End Sub |
|
thx lol ur very helpful and where do i put the code in command1?
Edit:nvm i got it thx! _________________
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|