当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: 1、DateTime 数字型 System.DateTime c
 

 

 ·基于visio的二次开发     »显示摘要«
    摘要:基于visio的二次开发前一段时间,由于项目的需要;学习了一些关于visio二次开发的知识;现在工具基本成形了,也算告一段落了;因此想总结一下关于visio的二次开发的一些基本知识;对于基于visio的二次开发资料真的很少,刚刚开始的时候就是闷头瞎撞,后来在msdn上发现了一篇文章介绍基于visio的二次开发,很是有帮助;1) 《programming with the microsoft off......
    摘要: .net 问题与解决问题一:sqlconnection conn = new sqlconnection(configurationsettings.appsettings["connectionstring"]); sqldataadapter da = new sqldataadapter("select say from 口号", conn); ......


c#.net常用的小函数和方法集

1.datetime 数字型 system.datetime currenttime=new system.datetime(); 1.1 取当前年月日时分秒 currenttime=system.datetime.now; 1.2 取当前年 int 年=currenttime.year; 1.3 取当前月 int 月=currenttime.month; 1.4 取当前日 int 日=currenttime.day; 1.5 取当前时 int 时=currenttime.hour; 1.6 取当前分 int 分=currenttime.minute; 1.7 取当前秒 int 秒=currenttime.second; 1.8 取当前毫秒 int 毫秒=currenttime.millisecond; (变量可用中文)

3. 变量.tostring() 字符型转换 转为字符串 12345.tostring("n"); //生成 12,345.00 12345.tostring("c"); //生成 ¥12,345.00 12345.tostring("e"); //生成 1.234500e+004 12345.tostring("f4"); //生成 12345.0000 12345.tostring("x"); //生成 3039 (16进制) 12345.tostring("p"); //生成 1,234,500.00% 【程序编程相关:EXCEL读取与写入数据的最佳方案(个人

2.int32.parse(变量) int32.parse("常量") 字符型转换 转为32位数字型 【推荐阅读:DataGrid中加多选按钮

5.system.text.encoding.default.getbytes(变量) 字码转换 转为比特码 如:byte[] bytstr = system.text.encoding.default.getbytes(str); 然后可得到比特长度: len = bytstr.length; 【扩展信息:“身份证号”的数字分析

4.变量.length 数字型 取字串长度: 如: string str="中国"; int len = str.length ; //len是自定义变量, str是求测的字串的变量名

6.system.text.stringbuilder("") 字符串相加,(+号是不是也一样?) 如:system.text.stringbuilder sb = new system.text.stringbuilder(""); sb.append("中华"); sb.append("人民"); sb.append("共与国");


...   下一页
    摘要:web程序员,界面美化是你心中永远的痛吗? jason.net --2005.07.05   回想自己从事web方面的开发已经有6-7年,对于各种web技术都已经非常熟悉.可是,身为程序员的我对于制作b/s表单界面的事着实心痛。 心痛1:很多后端代码和逻辑要写,可我还不得不费力的在各种网页制作工具中拖放控件放到美工提供的美术模板中。再配上css写上javascript。表单大一点够我弄......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE