如何在我自己的获胜表格上显示某些网页的内容? [英] how to show the the content of some web pages on my own win form?..

查看:101
本文介绍了如何在我自己的获胜表格上显示某些网页的内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,我在表单上放置了一个列表框和一个文本框.

for example, I put a listbox and a textbox on my form..

我想展示一些内容,例如代码项目中的问题列表.

I wanna show some content, such as the questions list on the Code Project..

我的目的是使用列表框显示问题的标题,当我单击标题时,内容将显示在文本框中.

my purpose is to use the listbox to show the titles of questions, and when I click the title, the content will be showed on the textbox..

如何制作?..

"1)首先使用http网络类连接到CP并从CP中读取页面"

"1) First use the http web classes to connect to and read the pages from CP"

" 2)编写一个解析器,可以分解html并拉出问题标题和问题链接.使用它来填充winform上的控件."

"2) Write a parser than can break down the html and pull out the question headers and the links to the questions. Use this to populate the controls on the winform"

我认为这是我想要的两种方法.但是您能教我详细的方法吗?..

i think these two methods are what i want.. but can you teach me how to do in detail?..

我是绿色的手..

推荐答案

您可以通过以下方式实现:

You can do this by;

1)首先使用http网络类连接到CP并从CP中读取页面

1) First use the http web classes to connect to and read the pages from CP

2)编写一个解析器,解析器可以分解html并拉出问题标题和问题链接.使用它来填充winform上的控件

2) Write a parser than can break down the html and pull out the question headers and the links to the questions. Use this to populate the controls on the winform

3)选择相关问题时,使用Web浏览器控件显示内容.

3) use a webbrowser control to display the content when you select the relevant question.


这篇关于如何在我自己的获胜表格上显示某些网页的内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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