如何使用VISUAL BASIC 2008 WEBBROWSER在一个框架中访问元素? [英] HOW DO I ACCESS ELEMENTS WITHIN AN IFRAME USING VISUAL BASIC 2008 WEBBROWSER?

查看:67
本文介绍了如何使用VISUAL BASIC 2008 WEBBROWSER在一个框架中访问元素?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我正在学习html和vb.net编程.我对两种语言都了解一点.因此,我有兴趣创建自己的小型音乐论坛并成为主持人的主要网站所有者.

我简要介绍了创建主要帖子消息TEXTAREA的过程,并提出了以下html编码:

Hello,

I am in the process of learning both html and vb.net programming. I know a little about both languages. So, I''m interested in creating my own small music forum and being the main moderator site owner.

I briefly went over creating the main post message TEXTAREA and came up with the following html coding:

<td class="controlbar"> <textarea name="message" id="vB_Editor_001_textarea" rows="10" cols="60" 

   style="display: none; width: 540px; height: 250px;" tabindex="1" dir="ltr">
</textarea>
<iframe style="border: 2px inset ; width: 540px; height: 250px;" tabindex="1" 

id="vB_Editor_001_iframe"></iframe></td>




*到目前为止,这并不是确切的代码,但这只是我的iFrame TEXTAREA示例.

如何通过vb 2008 Webbrowser控件单击链接,按钮,输入文本等?

这是到目前为止消息框区域的图片:

http://sites.google.com/site/iframeissue/ [




*This isn''t going to be the exact code as of right now, but it''s just my example of an iFrame TEXTAREA.

How would I click links, buttons, input text etc. via the vb 2008 webbrowser control?

Here is a picture of what the message box area looks like so far:

http://sites.google.com/site/iframeissue/[^]

I would really appreciate the help!

推荐答案

为表单/控件创建HTML(作为字符串),并使用HtmlDocument类将InnerText添加到< iframe>代码.
Create your HTML (as a string) for the form/controls, and use the HtmlDocument class to add InnerText to the <iframe> tag.


Webbrowser + iframes +不同的域
Webbrowser + Iframes + Different Domains


这篇关于如何使用VISUAL BASIC 2008 WEBBROWSER在一个框架中访问元素?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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