新手 求大神帮忙~~!!! 判断textbox1.text为不为空,如果不为空,给值给textbox2,如果为空,给值给textbox1 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 view plaincopy to clipboardprint:private void button1_Click( object sender, EventArgs e ) { System.Windows.Forms.HtmlDocument document =this.webBrowser1.Document; if ( document == null ) { return; } document.All["logname"].SetAttribute( "Value", "用户名" ); //用户名 document.All["originalLogpasswd"].SetAttribute( "Value", "密码" ); //密码 document.All["dologin"].InvokeMember( "click" ); //登录按钮的click方法 } private void button1_Click( object sender, EventArgs e ) { System.Windows.Forms.HtmlDocument document =this.webBrowser1.Document; if ( document == null ) { return; } document.All["logname"].SetAttribute( "Value", "用户名" ); //用户名 document.All["originalLogpasswd"].SetAttribute( "Value", "密码" ); //密码 document.All["dologin"].InvokeMember( "click" ); 、、按钮的click } 请问,在ADO.NET中插入null值 读写XML文件的问题 .ToString("0.000")会把小数点后面的0除掉??? 问一下,各位大侠,现在开发网站需要那些技术啊? 请教如何验证TextBox的输入内容 winforms中webbrowser页面与窗体的交互 winForm中的工具栏(toolStrip)控件的按钮如何实现回车事件? 在C#下如何使控件随着窗体的大小而变化 为什么我的tooltip显示一次 datagridview 赋值问题,希望得到大家的帮助!!! C#怎么对Access数据库按列导入数据 c#如何实现多个客户端向服务器端传送文件
{
System.Windows.Forms.HtmlDocument document =this.webBrowser1.Document;
if ( document == null )
{
return;
}
document.All["logname"].SetAttribute( "Value", "用户名" ); //用户名
document.All["originalLogpasswd"].SetAttribute( "Value", "密码" ); //密码
document.All["dologin"].InvokeMember( "click" ); //登录按钮的click方法
}
private void button1_Click( object sender, EventArgs e )
{
System.Windows.Forms.HtmlDocument document =this.webBrowser1.Document;
if ( document == null )
{
return;
}
document.All["logname"].SetAttribute( "Value", "用户名" ); //用户名
document.All["originalLogpasswd"].SetAttribute( "Value", "密码" ); //密码
document.All["dologin"].InvokeMember( "click" ); 、、按钮的click
}