2007年2月27日

圖片轉化為二進制

摘要: private void bttransform_Click(object sender, EventArgs e){ this.lbpoint.Items.Clear(); Bitmap bitmap1 = (Bitmap) this.originpicture.Image; GraphicsUnit unit1 = GraphicsUnit.Pixel; RectangleF ef1 = bi... 阅读全文

posted @ 2007-02-27 14:45 KenL 阅读(762) 评论(1) 推荐(0)

VB

摘要: 1. \b :与单词的边界匹配,即单词与空格之间的位置。例如,"er\b" 与"never"中的"er"匹配,但是不匹配"verb"中的"er"。 \B :与非单词边界匹配。"ea*r\B"与"never early"中的"ear"匹配。 \d :与一个数字字符匹配。等价于[0-9]。 \D :与非数字的字符匹配。等价于[^0-9]。 \f :与分页符匹配。 \n :与换行符字符匹配。 \r :与... 阅读全文

posted @ 2007-02-27 14:40 KenL 阅读(468) 评论(0) 推荐(0)

Print SN

摘要: FileInfo fi=new FileInfo (Application.StartupPath +"\\label.prn");using(StreamWriter sw = fi.CreateText()){sw.WriteLine("^XA"); sw.WriteLine("^LH0,0"); sw.WriteLine("^FO170,090^A0N,110,110^FDINNOLUX D... 阅读全文

posted @ 2007-02-27 14:10 KenL 阅读(307) 评论(0) 推荐(0)

javascript

摘要: 1.Response.Write("");2. scriptClientId = controlToFocus.ClientID scriptFunction.Append("") Return scriptFunction.ToString()3.在子页面的保存代码里调用父页面的js脚本里的刷新函数子页面代码:Response.Write("");//parent改爲... 阅读全文

posted @ 2007-02-27 14:07 KenL 阅读(134) 评论(0) 推荐(0)

一些

摘要: //对于没有数字的内容,下面这行完全满足要求,但加了数字就不行,必须调用OnItemDataBound ItemsGrid.Attributes.Add("style","word-break:keep-all;word-wrap:normal"); //下面这行是自动换行 //ItemsGrid.Attributes.Add("style","word-break:break-all;wor... 阅读全文

posted @ 2007-02-27 13:58 KenL 阅读(103) 评论(0) 推荐(0)

导航