Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » API

Post new topic   Reply to topic
Navigating A Window To A Website
View previous topic :: View next topic  
Author Message
XWaRloRDX
Newbie


Joined: 21 Feb 2004
Posts: 4

PostPosted: Feb 21st, 2004 12:58 PM    Post subject: Navigating A Window To A Website Reply with quote

HI

I want to know how to make a hWnd go to a webpage. Simple as that, can any1 help?

Cheerz~
Back to top
View user's profile Send private message
Avis
Junior Poster


Joined: 07 Oct 2003
Posts: 510
Location: India

PostPosted: Feb 21st, 2004 02:01 PM    Post subject: Reply with quote

You want to make a Hyperlink stuff ? Using label ?
_________________
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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger ICQ Number
Avis
Junior Poster


Joined: 07 Oct 2003
Posts: 510
Location: India

PostPosted: Feb 21st, 2004 02:11 PM    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger ICQ Number
XWaRloRDX
Newbie


Joined: 21 Feb 2004
Posts: 4

PostPosted: Feb 21st, 2004 05:34 PM    Post subject: Reply with quote

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
View user's profile Send private message
P.T.A.M.
Administrator


Joined: 08 Oct 2003
Posts: 752
Location: Greece

PostPosted: Feb 21st, 2004 06:53 PM    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
XWaRloRDX
Newbie


Joined: 21 Feb 2004
Posts: 4

PostPosted: Feb 21st, 2004 07:48 PM    Post subject: Reply with quote

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
View user's profile Send private message
Avis
Junior Poster


Joined: 07 Oct 2003
Posts: 510
Location: India

PostPosted: Feb 22nd, 2004 04:06 AM    Post subject: Reply with quote

Hello!

Hmm...you can use MIRC scripting for this purpose instead of VB i think. Better check [link] for more information.

Thanks!
_________________
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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger ICQ Number
XWaRloRDX
Newbie


Joined: 21 Feb 2004
Posts: 4

PostPosted: Feb 22nd, 2004 09:21 AM    Post subject: Reply with quote

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
View user's profile Send private message
Avis
Junior Poster


Joined: 07 Oct 2003
Posts: 510
Location: India

PostPosted: Feb 23rd, 2004 02:38 AM    Post subject: Reply with quote

The only way i think of is SendMessage api. Maybe i am wrong but i think this is the only way to do it. :fluut:
_________________
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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger ICQ Number
P.T.A.M.
Administrator


Joined: 08 Oct 2003
Posts: 752
Location: Greece

PostPosted: Feb 23rd, 2004 06:22 AM    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » API All times are GMT - 5 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


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic