473,498 Members | 1,737 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Obtaining the Current URL From IE and NetScape

Hi EveryBody:

I am new developer in Vb.Net And I found a code that Obtained the URL of IE
Or Netscape.

Unfortunatlly this Code is Applies to: VB4-32, VB5, VB6

And I want to use it for Vb.NEt When I plug it in my development enviromet I
found Alot of errors. So Can Any one Help me And Adjust this code and make it
applicable for Vb.Net

The form Should be Like the following:

Drop a command button (Command1) two labels (Label1, Label2) onto a form,
setting the autosize property of the labels True. The third label in the
illustration above is the result of preparing the graphic as a composite
image to demonstrate both NS modes. Add the following code to the form:

The Code IS :

Option Explicit

Private Sub Command1_Click()

On Error GoTo command_error

With Label1
.Caption = ""
.AutoSize = True
.LinkTopic = "IExplore|WWW_GetWindowInfo"
.LinkItem = "0xffffffff"
.LinkMode = 2
.LinkRequest
End With

DoEvents

With Label2
.Caption = ""
.AutoSize = True
.LinkTopic = "Netscape|WWW_GetWindowInfo"
.LinkItem = "0xffffffff"
.LinkMode = 2
.LinkRequest
End With

Exit Sub

command_error:

'try the next step on error
Resume Next

End Sub

Any help will be appreciated

regard's

Husam

Dec 26 '05 #1
3 1954
"Husam" <Hu***@discussions.microsoft.com> schrieb:
I am new developer in Vb.Net And I found a code that Obtained the URL of
IE
Or Netscape.

Unfortunatlly this Code is Applies to: VB4-32, VB5, VB6

And I want to use it for Vb.NEt When I plug it in my development enviromet
I
found Alot of errors. So Can Any one Help me And Adjust this code and make
it
applicable for Vb.Net


DDE is not supported by the .NET Framework.

For MSIE:

\\\
' Requires a reference to "Microsoft Internet Controls" ("SHDocVw.dll").
For Each IE As InternetExplorer In New ShellWindows()
MsgBox(IE.LocationURL)
Next IE
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Dec 26 '05 #2

Herfried .
DDE is not supported by the .NET Framework.
DDE is obsolete for a while know however you can still use it
i have some nice example code from Mark Hurd that shows how to use DDE in
VB.Net

for those of you interested http://members.ozemail.com.au/~markhurd/

only interesting for maintenance purposes ( creating new systems that need
to comunicate to older systems )

regards

Michel Posseth [MCP]


"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl... "Husam" <Hu***@discussions.microsoft.com> schrieb:
I am new developer in Vb.Net And I found a code that Obtained the URL of
IE
Or Netscape.

Unfortunatlly this Code is Applies to: VB4-32, VB5, VB6

And I want to use it for Vb.NEt When I plug it in my development
enviromet I
found Alot of errors. So Can Any one Help me And Adjust this code and
make it
applicable for Vb.Net


DDE is not supported by the .NET Framework.

For MSIE:

\\\
' Requires a reference to "Microsoft Internet Controls" ("SHDocVw.dll").
For Each IE As InternetExplorer In New ShellWindows()
MsgBox(IE.LocationURL)
Next IE
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Dec 27 '05 #3
Hi
Your code is indeed very effective for IE, but it is not working
properly in the netscape browser.can u help me with code that will run
on the netscape browser.In my current project it is needed.
regards
suhasis
my email id is
su************@webspiders.com
****please help me If you can

Jan 13 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
5378
by: Shaun Heveron | last post by:
Hi, I'm working on a portable ANSI C++ application designed to compile and execute under Windows and LINUX/UNIX. Is there a portable way of obtaining the current working directory? Sorry, if...
7
21263
by: Privacy Advocate | last post by:
//crossposted to: comp.lang.javascript, alt.comp.lang.javascript in an effort to get factual answers from JavaScript experts// Simply put; Is it possible to obtain the real (actual) IP address of...
0
1322
by: VP | last post by:
Hi there, well i am stuck on a problem with regards to obtaining security permissions on folders. At the moment I have created a simple treeview example which shows all sub-directories in a tree...
1
1836
by: Terry Mulvany | last post by:
Grettings, Normally I can use Request.RawUrl to get the 'current' page (amongst many other things). But in the case of using a Server.Transfer but the path from the root of the site . So if...
3
3041
by: Biff | last post by:
Hello, I am bringing up an iFrame with a calendar control in it in coordination with a text box that holds a date field. In my code behind class I add a method call to the text box's OnFocus...
5
1882
by: zion_zii | last post by:
Im working on an embedded project and i have to obtain individual digits from a byte thats the output of a device. Im trying to output this info to an LCD and need to convert it to ASCII first. I...
8
1721
by: Daz | last post by:
Hi everyone. I just wanted to know if there was any way to use script to display a list of methods linked to a particular object? The object I have in mind is getBrowser(), and I can't seem to...
6
2608
by: honguin | last post by:
Hi, The current scenario is that I have an iframe inside an asp.net web page where I periodically check the url inside the iFrame. I know that all this information can be obtained in the...
7
2739
by: =?Utf-8?B?Sm9obiBTdGFnZ3M=?= | last post by:
Hello, Please read this all before giving an answer :) I'm doing some troubleshooting on a web application that my company wrote. It's written in asp.net 1.1. The error that the Event viewer...
0
7125
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7165
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7205
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7379
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4910
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4590
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3093
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1419
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.