- 博客(7)
- 收藏
- 关注
原创 c#关于异步操作。
定义异步方法 delegate void InitUserControldelegate(); private void InitUserControl() { //异步实现的内容 }实现异步InitUserControldelegate ic = new InitUserC
2007-05-21 17:30:00 462
原创 巧用Farpoint 实现Excel数据导入
private DataTable GetExcel(string filepach) { string str; FarPoint.Win.Spread.FpSpread fpSpread1 = new FarPoint.Win.Spread.FpSpread(); try {
2007-05-12 15:49:00 2297
原创 有关SQLDMO
网上相关文章较少,自己摸索到的一些方法。 #region 返回数据库列表 public ArrayList GetDbList() { ArrayList alDbs = new ArrayList(); SQLDMO.Application sqlApp = new SQLDMO.ApplicationClass();
2007-05-10 17:34:00 1046
原创 Byte[]和stream 快速转换
Byte[] to StreamMemoryStream stream = new MemoryStream(bs); Stream to Byte[]byte[] bs2 = stream.ToArray();byte[] bs3 = stream2.GetBuffer();
2007-05-10 17:29:00 835 1
原创 如何操作Socket.
客户端private void Form1_Load(object sender, EventArgs e) { try { clientSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
2007-05-10 17:25:00 515
原创 如何向richtext格式的文件或文件流中添加图片
private void button2_Click(object sender, System.EventArgs e) { openFileDialog1.Filter = "图片文件|*.jpg|所有文件|*.*"; if(openFileDialog1.ShowDialog() == DialogResult.OK)
2006-11-16 10:22:00 1558
原创 操作RichTextBox
将RichTextBox的内容直接写入数据库:private void button1_Click(object sender, EventArgs e){ System.IO.MemoryStream mstream = new System.IO.MemoryStream(); this.richTextBox1.SaveFile(mstream, RichTextBoxStreamT
2006-11-16 01:17:00 643
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人