随笔分类 -  C#

摘要:2个按钮重叠,点击anniu1 后隐藏 点击anniu2后显示 说的不清楚 自己实验吧。 anniu1.BringToFront(); anniu2.SendToBack(); 阅读全文
posted @ 2012-09-21 13:37 ______Blazing 阅读(1088) 评论(0) 推荐(0)
摘要:原本执行代码 弹出错误框 在webBrowser的DocumentCompleted事件中加上 webBrowser1.ScriptErrorsSuppressed = true; 这行代码就可以了 阅读全文
posted @ 2012-09-21 09:47 ______Blazing 阅读(3173) 评论(1) 推荐(0)
摘要:HTML按钮元素: C# 执行代码 HtmlDocument doc = webBrowser1.Document; HtmlElementCollection coll = doc.GetElementsByTagName("input"); foreach (HtmlElement item i 阅读全文
posted @ 2012-09-20 21:14 ______Blazing 阅读(286) 评论(11) 推荐(0)
摘要:自动填表的方式有很多,关键是获取控件的id或者name。 比如源代码有 <input id="pwdInput" tabindex="2" class="ipt-t" type="password" name="password" onMouseOver="fEvent('mouseover',th 阅读全文
posted @ 2012-09-20 14:01 ______Blazing 阅读(906) 评论(0) 推荐(1)
摘要:收集了常用的控件缩写以备查用 控件名称 缩写 Buttom按钮 Btn CheckBox复选框 Chk ColumnHeader视图列表头 Col ComboBox组合框 Cbo ContextMenu快捷菜单 Ctm DataGrid数据网格控件 Dg DataGridView数据网格视图控件 D 阅读全文
posted @ 2012-09-20 13:48 ______Blazing 阅读(1514) 评论(2) 推荐(2)