473,320 Members | 2,088 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 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 2144
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Duncan Mole | last post by:
Hi, I have created a control which draws a title bar and provides a drop down menu for a Smart Device Application. It seemed to work fine until I came to add an event handler to act on Paint...
1
by: Brian Henry | last post by:
I am trying to make a custom user control that gets a list of users from our database and populates the list, its an owner drawn control also, the problem is, I placed the item onto a form and...
5
by: Charles Law | last post by:
Sorry for reposting this question, but I did not get a single answer last time, and I'm sure you guys must have some thoughts on the matter. I have a user control which can be dragged and dropped...
5
by: Paul Bromley | last post by:
Can someone give me a very simple example on how to do this? As an example I have a commaned button in a user control. Once this user control is placed on a form I want to be able to respond in the...
9
by: Charles Law | last post by:
I have a form on which user controls are placed at runtime. When a control is added to the form a handler is added for an event that a high-level object raises, which must be handled by the new...
0
by: Matthew | last post by:
All, I have searched google and the newsgroups but can't find anything the same as what I am experiencing (though I may have missed something). I have controls (textboxes) within UserControls...
0
by: Brian Henry | last post by:
Ok I've never implemented a snap location before so I dont really know what im doing wrong here... anyways, I am making a custom slider control that takes dates as its values instead of integers......
0
by: Tony Johansson | last post by:
Hello! I have a very specific question and that is about how to inherit a visual control for example the control System.Windows.Forms.TextBox without causing the environment to delete the...
2
by: R. K. Wijayaratne | last post by:
Hi everyone, I am trying to develop a Winforms app using .NET FW 1.1 (don't want to use 2.0 for this particular project) and am trying to use the IE control. It compiles and builds without...
5
by: =?Utf-8?B?U2FsYW1FbGlhcw==?= | last post by:
Hi, I have a user control which I like to use in several projects (winforms) in the same solution. Inside lets say Winapp1 , When adding a reference to this control, I can dynamically or statically...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.