码迷,mamicode.com
首页 > 其他好文 > 详细

VB非常见知识总结

时间:2016-06-22 09:12:40      阅读:160      评论:0      收藏:0      [点我收藏+]

标签:

1、VB.Net设置Excel中单元格字体

sheet.Range(sheet.Cells(row, stp), sheet.Cells(row, stp)).Font.Name = "Wingdings 2"

设置行row,列stp 的字体样式为[Wingdings 2]

 

2、Wingdings 2 字体为微软自带的图形字体

例如:£代表未选中的CheckBox,R代表选中的CheckBox

 

3、清空表数据

truncate table tablename

 技术分享

 

4、表单控件的值取得

技术分享

 

5、10进制转为RGB颜色

inputColorIntVal为10进制颜色代码

mDef_GridInputColor = ColorTranslator.FromHtml("#" & Convert.ToString(inputColorIntVal, 16))

RGB转10进制

(( 红 * 256) + 绿) * 256 + 蓝, 然后转为16进制计算器上的按发就是:红数字, *, 256, +, 绿数字, *, 256, +, 蓝数字, 十六进制

 

VB非常见知识总结

标签:

原文地址:http://www.cnblogs.com/markleilei/p/5605777.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!