PC Review


Reply
Thread Tools Rate Thread

Assign new value to internet explorer ?

 
 
=?Utf-8?B?SHVzYW0=?=
Guest
Posts: n/a
 
      15th Mar 2005
Hi EveryBody:

I have this code which read the address bar of internet explorer:

Function EnumParentProc(ByVal hWnd As IntPtr, ByVal lParam As IntPtr) As
Boolean
Dim sb As New StringBuilder(256)
GetWindowText(hWnd, sb, sb.Capacity)
Dim windowText As String = sb.ToString()
If (windowText.EndsWith("- Microsoft Internet Explorer")) Or
(windowText.EndsWith("- Microsoft Internet Explorer - [Working Offline]"))
Then
EnumChildWindows(hWnd, ecp, IntPtr.Zero)
End If
Return True
End Function

Function EnumChildProc(ByVal hWnd As IntPtr, ByVal lParam As IntPtr) As
Boolean
Dim className As New StringBuilder(256)
GetClassName(hWnd, className, className.Capacity)
If className.ToString() = "ComboBoxEx32" Then
Dim textlength As Integer = SendMessage(hWnd, WM_GETTEXTLENGTH,
IntPtr.Zero, IntPtr.Zero)
Dim windowText As New StringBuilder(textlength + 1)
SendMessage(hWnd, WM_GETTEXT, windowText.Capacity, windowText)
windowText.ToString
My question is:

how can I make this code after reading the address bar of Internet Explorer
assign new value for IExplorer like for i.e www.msn.com ?

any help will be appreciated

regard's

husam
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Internet explorer and windows explorer lock up when Internet explorer menu bar is used David D. Pettyjohn Windows XP Help 1 16th Dec 2007 05:14 AM
The user blank, has decided to allow the Internet Explorer Web Browser () to be added to Internet Explorer Nocturnal Spyware Discussion 1 1st Oct 2005 08:50 AM
Saving Web pages in Internet Explorer as .mht causes Internet Explorer to crash M Windows XP General 3 7th Nov 2004 06:22 PM
Trackball Explorer Button Assign Problem =?Utf-8?B?TWFyZGlnYW4=?= Windows XP Hardware 2 24th Mar 2004 05:47 PM
Constant Internet Explorer Errors: Shuts internet explorer down Tyler Microsoft Windows 2000 Applications 2 15th Jul 2003 04:45 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:50 PM.