Visual Basic 2008-在WebBrowser控件中自动执行iframe [英] Visual Basic 2008 - Automate Iframe In WebBrowser Control

查看:97
本文介绍了Visual Basic 2008-在WebBrowser控件中自动执行iframe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在这里浏览了所有论坛帖子,却没有看到有关Web浏览器控件中iframe的问题的答案(但是也有类似的问题).

该论坛有一个分类栏目,允许会员每天发布话题.我有一条消息,希望每天发送一次到论坛,并决定最好以编程方式实现这一目标.但是,我在Visual Basic 2008 Webbrowser控件中注意到,它似乎没有使用htmlelementcollection代码在浏览器中自动执行iFrame. html格式:

Hi,

I looked all over the forum posts here and didn't see the answer to a question concerning iframes within the webbrowser control (there were similar issues however).

The forum has a classifieds section that allows members to post threads daily. I have a message that I like to send once every day to a forum and decided that it would be best to achieve this programmatically. However, I noticed in the visual basic 2008 webbrowser control, that it doesn't seem to automate the iFrames within the browser using the htmlelementcollection codes.

 Here is what the iframe looks like in the html format:

<TD class=controlbar><TEXTAREA style="WIDTH: 500px; DISPLAY: none; HEIGHT: 350px" dir=ltr id=vB_Editor_001_textarea tabIndex=1 rows=10 cols=60 name=message></TEXTAREA><IFRAME style="WIDTH: 500px; HEIGHT: 350px" id=vB_Editor_001_iframe tabIndex=1></IFRAME></TD>

<TD class=controlbar>

推荐答案

以下是示例页面(不是实际页面),但是具有相同的iframe:

http://www.futureproducers.com/forums/newreply.php?do=newreply&noquote=1& p = 48710189

您需要注册一个帐户才能查看消息区域,但这就是为什么我认为最好找到另一个iFrame网页以在其中使用示例代码在解释的同时.


我看到许多论坛都要求提供相同的信息,但似乎没人能找到答案.我不敢相信,因为我知道可以在vb 2008  webbrowser控件中自动执行iFrame.在所有地方,都有一些人必须在msdn论坛上知道如何执行此操作.

我可以展示一些我尝试过的示例代码,但我认为最好是有人展示给我一些例子.

谢谢
Here is an example page (not the actual page), but with the same iframe:

http://www.futureproducers.com/forums/newreply.php?do=newreply&noquote=1&p=48710189

You will need to register an account to view the message area, but that's why I think it would be best to find another iFrame web page to use an example code on while explaining.


I see many forums requesting this same information and it seems that nobody has the answer. I can't believe this since I know that it is possible to automate iFrames within a vb 2008 webbrowser control. Out of all places, somebody has got to know how to do this here in the msdn forums.

I can show some example codes that I tried, but I think it would be best for someone to show me some examples.

Thanks


这篇关于Visual Basic 2008-在WebBrowser控件中自动执行iframe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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