| View previous topic :: View next topic |
| Author |
Message |
XWaRloRDX Newbie
Joined: 21 Feb 2004 Posts: 4
|
Posted: Feb 21st, 2004 12:58 PM Post subject: Navigating A Window To A Website |
|
|
HI
I want to know how to make a hWnd go to a webpage. Simple as that, can any1 help?
Cheerz~ |
|
| Back to top |
|
Avis Junior Poster

Joined: 07 Oct 2003 Posts: 510 Location: India
|
|
| Back to top |
|
Avis Junior Poster

Joined: 07 Oct 2003 Posts: 510 Location: India
|
Posted: Feb 21st, 2004 02:11 PM Post subject: |
|
|
Hi!
If you need what i have specified above then check this code:
[vb:1:ef9534a453]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
Const SW_SHOWNORMAL = 1
Private Sub lblHomePage_Click()
ShellExecute Me.hwnd, vbNullString, "http://www.avissoft.com", vbNullString, "C:\", SW_SHOWNORMAL
End Sub[/vb:1:ef9534a453]
Hope this helps! _________________ Code Snippets, Tutorials, Utilities, Controls
Low cost Web Hosting
Hosting starts at as low as $4 per year!
Always follow posting guidelines
Put your VB code in [vb ] your code [ /vb] tags! |
|
| Back to top |
|
XWaRloRDX Newbie
Joined: 21 Feb 2004 Posts: 4
|
Posted: Feb 21st, 2004 05:34 PM Post subject: |
|
|
Hi
Thanks for the reply but thats not what I wanted. That opens a new internet explorer window and navigates it to the site you enter right?
What I want is to find a window that already exists (for my code I'm using a child window in the mIRC IRC chat program) and make this window go to a webpage.
Do you know how this could be done? |
|
| Back to top |
|
P.T.A.M. Administrator

Joined: 08 Oct 2003 Posts: 752 Location: Greece
|
Posted: Feb 21st, 2004 06:53 PM Post subject: |
|
|
I am confused because you mention mIRC... The handle belongs to what kind of window?
Thanks _________________ No one is completely useless. They can at least be an example of what to avoid. |
|
| Back to top |
|
XWaRloRDX Newbie
Joined: 21 Feb 2004 Posts: 4
|
Posted: Feb 21st, 2004 07:48 PM Post subject: |
|
|
OK I'm fairly new to VB, but its just a child window of the parent mIRC window. Just think of it as a normal MDI child window.
I want this window to load a webpage inside of it. |
|
| Back to top |
|
Avis Junior Poster

Joined: 07 Oct 2003 Posts: 510 Location: India
|
|
| Back to top |
|
XWaRloRDX Newbie
Joined: 21 Feb 2004 Posts: 4
|
Posted: Feb 22nd, 2004 09:21 AM Post subject: |
|
|
Yes Avis I know that! Thats why I said in an earlier post that this could be done with nHTMLn.dll for mIRC but I want to learn how to do it myself, thats why I came here!
So can any1 help? |
|
| Back to top |
|
Avis Junior Poster

Joined: 07 Oct 2003 Posts: 510 Location: India
|
|
| Back to top |
|
P.T.A.M. Administrator

Joined: 08 Oct 2003 Posts: 752 Location: Greece
|
Posted: Feb 23rd, 2004 06:22 AM Post subject: |
|
|
Or maybe send keys or the keyb_event API? :ermm: _________________ No one is completely useless. They can at least be an example of what to avoid. |
|
| Back to top |
|
|