自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 c#关于异步操作。

定义异步方法        delegate void InitUserControldelegate();         private void InitUserControl()        {            //异步实现的内容                    }实现异步InitUserControldelegate ic = new InitUserC

2007-05-21 17:30:00 435

原创 巧用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 2227

原创 有关SQLDMO

网上相关文章较少,自己摸索到的一些方法。 #region 返回数据库列表        public ArrayList GetDbList()        {            ArrayList alDbs = new ArrayList();            SQLDMO.Application sqlApp = new SQLDMO.ApplicationClass(); 

2007-05-10 17:34:00 1016

原创 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 718 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 499

原创 如何向richtext格式的文件或文件流中添加图片

private   void   button2_Click(object   sender,   System.EventArgs   e)     {         openFileDialog1.Filter   =   "图片文件|*.jpg|所有文件|*.*";     if(openFileDialog1.ShowDialog()   ==   DialogResult.OK)  

2006-11-16 10:22:00 1536

原创 操作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 621

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除