DotNet2.0不允许线程互操作各控件的解决方法。
首先定义一个委托:delegate void AgentInfo(string ip, string agentName);在需要的地主通过委拖还设置另一个线程的信息。 AgentInfo ai = new AgentInfo(ShowAgentInfo); this.Invoke(ai, ip, agentNa …… 阅读全文
首先定义一个委托:delegate void AgentInfo(string ip, string agentName);在需要的地主通过委拖还设置另一个线程的信息。 AgentInfo ai = new AgentInfo(ShowAgentInfo); this.Invoke(ai, ip, agentNa …… 阅读全文
usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.Security.Cryptography;using …… 阅读全文
以下创建了一个Person类型的强类型化集合。using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.We …… 阅读全文
private void menuStepAdd_Click(object sender, EventArgs e) { frmAddStep addStep = new frmAddStep(); addStep.FormBorderStyle = FormBorderStyle.None; addStep.Top …… 阅读全文
两种简洁方法 1、 2、 两种其它方法:3、前台实现方法在中添加 function show() {var obj = document.all.tags("LABEL");for (i=0;i{document.all["dd"][i].innerHTML=i+1;} } 4、后台实现方法后台实现方法:在.aspx里添加在.cs里 …… 阅读全文
Winform程序在更改程序图标时,有时更改后,只要把原来的图标删除掉,这时,窗口上的工具栏和菜单栏就什么也看不到了。---------------------------------需要先在资源里把那个图标删除掉,然后再从盘上删除掉以前的图标文件。 …… 阅读全文