Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Help

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
DURAN
Newbie cheater
Reputation: 14

Joined: 19 Apr 2007
Posts: 16
Location: The Netherlands

PostPosted: Fri Dec 07, 2007 12:52 pm    Post subject: Help Reply with quote

I wanna open with the button www.google.com in VB6
can someone give a code?
Back to top
View user's profile Send private message
Blader
I post too much
Reputation: 2

Joined: 19 Jan 2007
Posts: 2049

PostPosted: Fri Dec 07, 2007 2:08 pm    Post subject: Reply with quote

First declare some stuff
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 Const SW_SHOWMAXIMIZED = 3


Now for the button code:
Code:
Private Sub command1_Click()
ShellExecute ByVal 0&, "open", _
    "http://www.google.com", _
    vbNullString, vbNullString, _
    SW_SHOWMAXIMIZED
End Sub


It opens in default browser and opens in a tab Razz

_________________
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Fri Dec 07, 2007 3:58 pm    Post subject: Reply with quote

Please use the search button before asking questions like this too. It has been asked dozens of times and all have gotten the same answer.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
DURAN
Newbie cheater
Reputation: 14

Joined: 19 Apr 2007
Posts: 16
Location: The Netherlands

PostPosted: Sat Dec 08, 2007 5:03 am    Post subject: Reply with quote

wow thanks and uhm i want a code if i click the button a new form comes out
Back to top
View user's profile Send private message
Pseudo Xero
I post too much
Reputation: 0

Joined: 16 Feb 2007
Posts: 2607

PostPosted: Sat Dec 08, 2007 5:05 am    Post subject: Reply with quote

MobScene wrote:
wow thanks and uhm i want a code if i click the button a new form comes out

Google is there for a reason.

_________________
haxory' wrote:
can't VB do anything??
windows is programmed using VB right? correct me if im wrong.

so all things in windows you have like the start menu is a windows form too.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites