你得单步调试一下,看问题出在哪里,如果是点击原创或转载得放在radioButton1_CheckedChanged和radioButton2_CheckedChanged中吧
解决方案 »
- 微软的三层架构和MVC的区别是什么?
- dataadapter.update()中使用事务的问题?
- 用C#怎么实现实时传输从视频头捕获的视频?
- 请教一个设计随机的问题
- 在网页上放了个flash,但是首次打开不能显示,刷新一下网页就能显示了,这是什么原因?
- 文本框中,怎样判断输入的内容是不是数字?
- 请问如何能自动安装证书
- 请教一个IEWebControls中的TREEVIEW的问题?
- asp.net源代码在xp下面可以运行,在学校的2000下面就运行不了,为什么?
- 高分求c#中用oledbConnection连接vfp的.dbf数据库的连接字符串!!!!!
- chart连接数据库读取数据,哪里出错了?
- C# 多个oracle 数据库事务怎么处理???
{
if (radioButton2.Checked)
{
label1.Text = radioButton2.Text;
}
else if (radioButton1.Checked)
{
label1.Text = radioButton1.Text;
}
}
webBrowser1.Document.GetElementById("textAreaContainer").SetAttribute("value", textBox2.Text.Trim());
按照你刚说的实现还是一样的:
private void radioButton2_CheckedChanged(object sender, EventArgs e)
{
if (radioButton2.Checked == true)
{
radioButton1.Checked = false;
label2.Text = radioButton2.Text;
}
} private void radioButton1_CheckedChanged(object sender, EventArgs e)
{
if (radioButton1.Checked == true)
{
radioButton2.Checked = false;
label1.Text = radioButton1.Text;
} }
private void radioButton1_MouseClick(object sender, MouseEventArgs e)
{
for (int i = 0; i < webBrowser1.Document.GetElementsByTagName("input").Count; i++)
{
if (webBrowser1.Document.GetElementsByTagName("input")[i].GetAttribute("name") == "isSelf")
webBrowser1.Document.GetElementsByTagName("input")[i].InvokeMember("click");
break;
}
}
}
这样模拟鼠标点击后成功了,可以正常在天涯论坛发帖!学习了,谢谢各位大婶!