通过VB.NET Progamatically HTML表单 [英] HTML Forms Progamatically Via VB.NET

查看:60
本文介绍了通过VB.NET Progamatically HTML表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在搜索和搜索,我似乎无法在Google上找到一个足够好的搜索字符串来获取有关
$ b $的任何有用信息b我正在寻找。


我看到很多程序弹出一个网页并填写表格

字段。这是在VB.NET中轻松完成的吗?


我有一个简单的HTML表单,我希望某些软件能够

来填充自动提交。


谢谢!!


-

- Mitchell Vincent

- KBilling - 发票变得简单!

- http:/ /www.k-billing.com

I''ve been searching and searching and I can''t seem to come up with a
decent enough search string at Google to get any useful information on
what I''m looking for.

I see scores of programs that pop open a web page and fill in form
fields. Is this something that is easily done in VB.NET?

I have a simple HTML form that I would like for some software to be able
to fill in and submit automatically.

Thanks!!

--
- Mitchell Vincent
- kBilling - Invoices Made Easy!
- http://www.k-billing.com

推荐答案




我想我们可以需要使用webbrowser控件来托管html文档。

这是一个供你参考的链接。

如何在Visual Basic .NET中托管WebBrowser控件以发布表单数据

(311294)
http://support.microsoft.com/default...B;EN-US;311294


祝你好运,


Peter Huang

Microsoft在线合作伙伴支持


安全! - www.microsoft.com/security

此帖子原样是按原样提供的。没有保证,也没有授予任何权利。

Hi

I think we may need to use a webbrowser control to host html document.
Here is a link for your reference.
How to host a WebBrowser control in Visual Basic .NET to post form data
(311294)
http://support.microsoft.com/default...B;EN-US;311294

Best 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.


Peter Huang [MSFT]写道:
Peter Huang [MSFT] wrote:

这是一个供你参考的链接。
如何在Visual Basic .NET中托管WebBrowser控件以发布表单数据
(311294)
http ://support.microsoft.com/default...B; EN-US; 311294

致以最诚挚的问候,

Peter Huang
微软在线合作伙伴支持

获得安全! - www.microsoft.com/security
此帖子提供按原样没有保证,也没有授予任何权利。
Hi

I think we may need to use a webbrowser control to host html document.
Here is a link for your reference.
How to host a WebBrowser control in Visual Basic .NET to post form data
(311294)
http://support.microsoft.com/default...B;EN-US;311294

Best 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.




对不起,我不是很清楚。这不是基于网络的应用程序 -

这是一个桌面应用程序。


我想在表单上放置一个Web浏览器控件并让用户点击

" login"按钮,应用程序将加载页面,填写

用户的用户名和密码(以前存储过)和

提交表单..


-

- Mitchell Vincent

- KBilling - 发票变得简单!

- < a rel =nofollowhref =http://www.k-billing.comtarget =_ blank> http://www.k-billing.com


Mitchel,


这就是Peter回答你的问题,试试这个。


打开一个新的Windows应用程序项目


在工具箱中右键单击并选择添加/删除项目


在自定义工具箱中选择Com并在该Microsoft Webbrowser中


当它在工具箱中时将它拖到你的表格上

拖动一个按钮到你的表格。


那么这段代码和你有一个迷你Web浏览器。


\\\

Private Sub Button1_Click(ByVal sender As System.Object,ByVal e As

System.EventArgs)处理Button1.Click

Me.AxWebBrowser1.Navigate2(" www.google.com")

End Sub

///


我希望这有点帮助吗?


Cor
Mitchel,

That was what Peter was answering you, try this.

Open a new windows application project

In the toolbox rightclick and select add/Remove items

In the customize toolbox select Com and in that Microsoft Webbrowser

When that is in the toolbox drag it to your form
Drag also a button to your form.

Then this code and you have a mini Webbrowser.

\\\
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Me.AxWebBrowser1.Navigate2("www.google.com")
End Sub
///

I hope this helps a little bit?

Cor


这篇关于通过VB.NET Progamatically HTML表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆