Web Control in Windows Form

  • Thread starter Thread starter Miky
  • Start date Start date
M

Miky

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.
 
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.
--------------------
 
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.
 
Back
Top