By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,054 Members | 902 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,054 IT Pros & Developers. It's quick & easy.

Web Control in Windows Form

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.