在C#中如何浏览网页 [英] in c# how to navigate through the web

查看:101
本文介绍了在C#中如何浏览网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个文本框和一个按钮,我想在文本框中输入任何关键字,然后按一下按钮,然后在网络中导航并在表单上显示resuklt.

i hava one text box and one button i want to enter any keyword on the textbox and press button then it navigate through net and display resuklt on the form.

推荐答案

1)将所有空格替换为"+"
2)在问题前面加上"http://www.google.co.uk/search?q="
3)将查询传递给WebBrowser.Navigate方法.
1) Replace all spaces with "+"
2) Prefix your question with "http://www.google.co.uk/search?q="
3) Pass the query to a WebBrowser.Navigate method.


这篇关于在C#中如何浏览网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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