technofantasy

博客园 首页 新随笔 联系 订阅 管理

2006年9月6日 #

摘要: Public Sub SetSubScript()Sub SetSubScript(RTB As RichTextBox)Dim iPos As LongDim strRTF As String With RTB If .SelCharOffset >= 0 Then 'subscript the current selection ... 阅读全文
posted @ 2006-09-06 17:10 陈锐 阅读(1105) 评论(0) 推荐(0) 编辑

摘要: Public Sub HighLight()Sub HighLight(RTB As RichTextBox, lColor As Long)'add new color to color table'add tags \highlight# and \highlight0'where # is new color numberDim iPos As LongDim strRTF As Strin... 阅读全文
posted @ 2006-09-06 17:08 陈锐 阅读(1146) 评论(2) 推荐(0) 编辑

摘要: visual basic code: Dim iPos As LongDim strInsert As StringDim strRTF As StringDim lStart As Long'assumes that strInsert contains the RTF code that you want to insert'and that the current cursor posit... 阅读全文
posted @ 2006-09-06 17:06 陈锐 阅读(943) 评论(0) 推荐(0) 编辑

2006年9月1日 #

摘要: 前天完成了第1-5章,现在开始写第6章。现在的进度大概是一天8页左右。这个月预计要完成4章。老孟的书已经完成了,何志丹的书也快完成了,有点压力。进度还是很紧~~~~~ 阅读全文
posted @ 2006-09-01 14:30 陈锐 阅读(497) 评论(9) 推荐(0) 编辑

2006年8月16日 #

摘要: VB 2005中拖放数据绑定确实很爽,只要在数据源中定义好数据源,然后从数据对象上拖放控件到窗体就可以了。但是今天碰到一个问题,在库中有两个表:订单表和订单明细表。我在数据源中创建了一个新的DataAdapter,它的Fill方法的SQL语句是: SELECT 订单表.订单ID, 订单表.货主名称, 订单明细表.货物数量 * 订单明细表.货物单价 AS 总价格, 订单明细表.货物名称FRO... 阅读全文
posted @ 2006-08-16 23:31 陈锐 阅读(1095) 评论(1) 推荐(0) 编辑

2006年8月9日 #

摘要: VB 2005 Webbrowser 阅读全文
posted @ 2006-08-09 22:22 陈锐 阅读(313) 评论(0) 推荐(0) 编辑

2006年7月30日 #

摘要: 这两天一直在写第二章里面的VB 2005语法新特性,今天应该可以完成了。再回头把第二章中的集成开发环境和数据库访问新特性写一下。要争取在这一周内完成第二章。 阅读全文
posted @ 2006-07-30 11:20 陈锐 阅读(191) 评论(1) 推荐(0) 编辑

2006年7月27日 #

摘要: Charles Petzold 的千页著作《Applications = Code + Markup -- A Guide to the Microsoft Windows Presentation Foundation》已经交付印刷了,不久就会出版。 在他的博客里,他给想写书的人以下建议(粗浅翻译): Book-Writing Advicehttp://www.charlespetzold.co... 阅读全文
posted @ 2006-07-27 22:28 陈锐 阅读(332) 评论(0) 推荐(0) 编辑

2006年7月19日 #

摘要: 如果安装的是Visual Studio 2005的话,运行 c:\program files\microsoft visual studio 8\ 目录下面的 vcvarsall.bat 设置一下环境变量就可以了。 阅读全文
posted @ 2006-07-19 11:18 陈锐 阅读(5083) 评论(1) 推荐(0) 编辑

2006年7月14日 #

摘要: VSTO CommandBarButton 阅读全文
posted @ 2006-07-14 18:14 陈锐 阅读(469) 评论(0) 推荐(0) 编辑