| View previous topic :: View next topic |
| Author |
Message |
Lyfa The Lonely Man
Reputation: 12
Joined: 02 Nov 2008 Posts: 743
|
Posted: Sat Jun 13, 2009 12:49 pm Post subject: What code would I use to open up the web? |
|
|
From a Delphi form? I want people to be able to click a label and it opens in there default browser?
_________________
|
|
| Back to top |
|
 |
NoManchesPuto I post too much
Reputation: 0
Joined: 24 Jan 2009 Posts: 2820
|
Posted: Sat Jun 13, 2009 1:11 pm Post subject: Re: What code would I use to open up the web? |
|
|
| [Sex]~F3ar wrote: | | From a Delphi form? I want people to be able to click a label and it opens in there default browser? |
Lmao! I'm looking for it in my source! Use this:
| Code: | | ShellExecute(0, 'open', 'http://www.google.com', nil, nil, SW_SHOWNORMAL) ; |
_________________
|
|
| Back to top |
|
 |
Lyfa The Lonely Man
Reputation: 12
Joined: 02 Nov 2008 Posts: 743
|
Posted: Sat Jun 13, 2009 1:14 pm Post subject: Re: What code would I use to open up the web? |
|
|
| ~21 wrote: | | [Sex]~F3ar wrote: | | From a Delphi form? I want people to be able to click a label and it opens in there default browser? |
Lmao! I'm looking for it in my source! Use this:
| Code: | | ShellExecute(0, 'open', 'http://www.google.com', nil, nil, SW_SHOWNORMAL) ; |
|
NVM, I found another easier way, no code at all.
_________________
|
|
| Back to top |
|
 |
NoManchesPuto I post too much
Reputation: 0
Joined: 24 Jan 2009 Posts: 2820
|
Posted: Sat Jun 13, 2009 1:26 pm Post subject: |
|
|
Add this in your 'uses" under "interface": | Code: | | Registry, ShellAPI; |
Then add this code: | Code: | | ShellExecute(0, 'open', 'http://www.google.com', nil, nil, SW_SHOWNORMAL) ; |
_________________
|
|
| Back to top |
|
 |
Lyfa The Lonely Man
Reputation: 12
Joined: 02 Nov 2008 Posts: 743
|
Posted: Sat Jun 13, 2009 7:45 pm Post subject: |
|
|
| ~21 wrote: | Add this in your 'uses" under "interface": | Code: | | Registry, ShellAPI; |
Then add this code: | Code: | | ShellExecute(0, 'open', 'http://www.google.com', nil, nil, SW_SHOWNORMAL) ; |
|
Lawl, Gmail chat FTW
_________________
|
|
| Back to top |
|
 |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
Posted: Sun Jun 14, 2009 2:52 am Post subject: Re: What code would I use to open up the web? |
|
|
| [Sex]~F3ar wrote: | | ~21 wrote: | | [Sex]~F3ar wrote: | | From a Delphi form? I want people to be able to click a label and it opens in there default browser? |
Lmao! I'm looking for it in my source! Use this:
| Code: | | ShellExecute(0, 'open', 'http://www.google.com', nil, nil, SW_SHOWNORMAL) ; |
|
NVM, I found another easier way, no code at all. | s
do you mind shareing.... -.-'
_________________
Intel over amd yes. |
|
| Back to top |
|
 |
|