472,139 Members | 1,642 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,139 software developers and data experts.

Web Control in Windows Form

Hi,

I have the following problem:

I have a .CFM web page and I have to populate, from VB, two textboxes on it.
I
was thinking using sendkeys (even if I don't like it too much) but when I
open the web browser and navigate to the selected page, I cannot set the
focus to the html part of the control (only the web control takes the focus)
so I can't use sendkeys to populate the fields I need.

I made the same with another web site (in html), but I create a local .HTML
file that
simulates the form and then redirect the process to the original website
getting back the results. This sounds that cannot be done with a .CFM page
(if it is possible, please may you tell me how?), in fact I can redirect to
the original web site but I got the same page (blank) and not the results.

Any idea is greatly appreciated.

Thanks in advance,
LDV-ME.
Nov 20 '05 #1
2 2043
Hi Peter,

thanks for your response and sorry for the vagueness of my
question. Yes, by Web Control, I meant Web Browser ActiveX
(AxWebBrowser). Exactly, I want to populate a web form and
submit that and retrieve the result. When I try with the
website I am interested on, it doesn't return the results.
I will look into the HTML object library.

Thanks,
LDV-ME.

-----Original Message-----
Hi Miky,

What do you mean by Web Control, do you mean the Web Browser ActiveXcontrol?
Since the WebControl can not be used with Windows Form.

If so, I can not reproduce the problem.
I tested with the code below.
AxWebBrowser1.Navigate ("http://enterprisesecurity.symantec.com/products/products.cfm?productID=3")

It seems that you wants to automation the populate the Form on the WebForm.I think you may try to use the Microsoft HTML Object Library which is usedto manipulate the HTML DOM.
311292 HOW TO: Find the src Attribute of a Frame Element in Visual Basic.NET
http://support.microsoft.com/?id=311292

If I misunderstand your meaning ,please feel free to let me know.
Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.--------------------
From: "Miky" <le******@davinci.com>
Subject: Web Control in Windows Form
Date: Sun, 2 Nov 2003 09:09:34 -0500
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <#5**************@tk2msftngp13.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.vb
NNTP-Posting-Host: pcp03305715pcs.waren301.mi.comcast.net 68.43.156.185Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl! tk2msftngp13.phx.gblXref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:152798X-Tomcat-NG: microsoft.public.dotnet.languages.vb

Hi,

I have the following problem:

I have a .CFM web page and I have to populate, from VB, two textboxes on
it.
I
was thinking using sendkeys (even if I don't like it too
much) but when Iopen the web browser and navigate to the selected page, I cannot set thefocus to the html part of the control (only the web control takes thefocus)
so I can't use sendkeys to populate the fields I need.

I made the same with another web site (in html), but I

create a local .HTMLfile that
simulates the form and then redirect the process to the original websitegetting back the results. This sounds that cannot be done with a .CFM page(if it is possible, please may you tell me how?), in fact I can redirect tothe original web site but I got the same page (blank) and not the results.
Any idea is greatly appreciated.

Thanks in advance,
LDV-ME.


.

Nov 20 '05 #2
Hi Miky,

Thank you for your reply.

Also you may try to take a look at the link below to see if that class will
meet your request.
WebClient Class
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemnetwebclientclasstopic.asp
Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
Content-Class: urn:content-classes:message
From: "Miky" <le******@davinci.com>
Sender: "Miky" <le******@davinci.com>
References: <#5**************@tk2msftngp13.phx.gbl> <4q**************@cpmsftngxa06.phx.gbl>Subject: RE: Web Control in Windows Form
Date: Fri, 7 Nov 2003 18:19:00 -0800
Lines: 104
Message-ID: <05****************************@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Thread-Index: AcOlnqvaTD4PclFnSwmInMxOqli0vw==
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Newsgroups: microsoft.public.dotnet.languages.vb
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:154848
NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

Hi Peter,

thanks for your response and sorry for the vagueness of my
question. Yes, by Web Control, I meant Web Browser ActiveX
(AxWebBrowser). Exactly, I want to populate a web form and
submit that and retrieve the result. When I try with the
website I am interested on, it doesn't return the results.
I will look into the HTML object library.

Thanks,
LDV-ME.

-----Original Message-----
Hi Miky,

What do you mean by Web Control, do you mean the Web

Browser ActiveX
control?
Since the WebControl can not be used with Windows Form.

If so, I can not reproduce the problem.
I tested with the code below.
AxWebBrowser1.Navigate

("http://enterprisesecurity.symantec.com/products/prod
ucts.cfm?productID=3")

It seems that you wants to automation the populate the

Form on the WebForm.
I think you may try to use the Microsoft HTML Object

Library which is used
to manipulate the HTML DOM.
311292 HOW TO: Find the src Attribute of a Frame Element

in Visual Basic
.NET
http://support.microsoft.com/?id=311292

If I misunderstand your meaning ,please feel free to let

me know.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and

confers no rights.
--------------------
From: "Miky" <le******@davinci.com>
Subject: Web Control in Windows Form
Date: Sun, 2 Nov 2003 09:09:34 -0500
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <#5**************@tk2msftngp13.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.vb
NNTP-Posting-Host:pcp03305715pcs.waren301.mi.comcast.net 68.43.156.185Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.phx.gblXref: cpmsftngxa06.phx.gblmicrosoft.public.dotnet.languages.vb:152798X-Tomcat-NG: microsoft.public.dotnet.languages.vb

Hi,

I have the following problem:

I have a .CFM web page and I have to populate, from VB,two textboxes on
it.
I
was thinking using sendkeys (even if I don't like it too

much) but when Iopen the web browser and navigate to the selected page,I cannot set thefocus to the html part of the control (only the webcontrol takes the
focus)
so I can't use sendkeys to populate the fields I need.

I made the same with another web site (in html), but I

create a local .HTMLfile that
simulates the form and then redirect the process to theoriginal websitegetting back the results. This sounds that cannot bedone with a .CFM page(if it is possible, please may you tell me how?), infact I can redirect tothe original web site but I got the same page (blank)and not the results.
Any idea is greatly appreciated.

Thanks in advance,
LDV-ME.


.


Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Duncan Mole | last post: by
1 post views Thread by Brian Henry | last post: by
5 posts views Thread by Paul Bromley | last post: by
reply views Thread by Tony Johansson | last post: by
2 posts views Thread by R. K. Wijayaratne | last post: by
5 posts views Thread by =?Utf-8?B?U2FsYW1FbGlhcw==?= | last post: by
reply views Thread by leo001 | last post: by

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.