![](https://iknow-base.cdn.bcebos.com/lxb/notice.png)
webBrowser1.DocumentText 不显示内容 10
Form2form2=newForm2();Pointpoint=newPoint(Screen.PrimaryScreen.WorkingArea.Width-form...
Form2 form2 = new Form2();
Point point = new Point(Screen.PrimaryScreen.WorkingArea.Width - form2.Size.Width, Screen.PrimaryScreen.WorkingArea.Height - form2.Size.Height);//
form2.StartPosition = FormStartPosition.Manual;//窗体其实位置类型,manual由location指定
form2.Location = point;
form2.webBrowser1.DocumentText = "百度";
DialogResult result = MessageBox.Show(form2.webBrowser1.DocumentText , "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
我想给form2的webBrowser的内容赋值,但是内容赋值不过去,弹出对话框内容为空。请问是什么问题,这是一个鼠标点击事件! 展开
Point point = new Point(Screen.PrimaryScreen.WorkingArea.Width - form2.Size.Width, Screen.PrimaryScreen.WorkingArea.Height - form2.Size.Height);//
form2.StartPosition = FormStartPosition.Manual;//窗体其实位置类型,manual由location指定
form2.Location = point;
form2.webBrowser1.DocumentText = "百度";
DialogResult result = MessageBox.Show(form2.webBrowser1.DocumentText , "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
我想给form2的webBrowser的内容赋值,但是内容赋值不过去,弹出对话框内容为空。请问是什么问题,这是一个鼠标点击事件! 展开
2011-02-14 · 知道合伙人互联网行家
关注
![](https://wyw-base.cdn.bcebos.com/pc-content/follow.gif)
展开全部
你这是VB.NET吧。我用VB6这么做:
webbrowser1.document.body.innerHTML="这里是网页内容"
要等webbrowser1加载完页面,才可执行该语句。
这其实是和javascript一样的语法。
webbrowser1.document.body.innerHTML="这里是网页内容"
要等webbrowser1加载完页面,才可执行该语句。
这其实是和javascript一样的语法。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询