周克的技术Blog

在.Net的海洋里面寻找真我

导航

2006年6月11日 #

WinFX更名为 .NET Framework 3.0.

摘要: 由于WinFX这个名字给开发人员造成了很多困惑,弄不清楚WinFX和Framework的关系,微软决定将WinFx更名为.NET Framework 3.0。The change is in name only and will not affect the technologies being delivered as part of the product. The .NET Framewor... 阅读全文

posted @ 2006-06-11 04:30 周克 阅读(4244) 评论(19) 推荐(0) 编辑

2006年6月6日 #

BindingSource.AddingNew事件可以给新增数据设置需要的值

摘要: private void tableBindingSource_AddingNew(object sender, AddingNewEventArgs e) { BindingSource bs = (BindingSource)sender; DataView view = (DataView)bs.List; DataRow... 阅读全文

posted @ 2006-06-06 03:57 周克 阅读(3848) 评论(6) 推荐(0) 编辑

2006年5月29日 #

可恶的AutoSizeColumnMode和DataError

摘要: 项目中DataGridView中使用了DataGridViewComboBoxColumn,不记得在哪里看到AutoSizeColumnMode设置成allcells,AutoSizeRowsMode=None,觉得蛮好的,结果把所有表单的DGV都设置成这样,不幸的意外发生了:结果关闭表单的时候就会发生DataError错误,说什么DataGridViewComboBoxCell的值不合法。这时候... 阅读全文

posted @ 2006-05-29 21:42 周克 阅读(1459) 评论(1) 推荐(0) 编辑

2006年5月28日 #

介绍一个可以读取保存在程序集里面的图片资源的小工具

摘要: I found the images in BindingNavigator Control are beautiful.They seem not to be in the project resources.Where are they ? The images are loacted in the Form1.resx file and not in the project resourc... 阅读全文

posted @ 2006-05-28 22:37 周克 阅读(720) 评论(0) 推荐(0) 编辑

2006年5月27日 #

vs2005强类型主从表加上级联约束后无法添加从表数据

摘要: 因为主表使用的是autoid,所以必须加上级联约束,以保证新增主表记录返回id后能更新到从表里面的关联主表id。现在的情况是datagridview控件在添加完一行从表记录后提示无法找到主表id,原因是主表还没有提交到数据源,如果我把主表的bindingsource.endedit后从表记录又没有了,如何解决这种一次性保存主从表的问题? 阅读全文

posted @ 2006-05-27 03:40 周克 阅读(1673) 评论(8) 推荐(0) 编辑

2006年5月15日 #

MSDN中文资料库WWF链接(updating...)

摘要: Microsoft Windows Workflow Foundation 入门:开发人员演练http://www.microsoft.com/china/MSDN/library/Windev/WindowsVista/WWFGetStart.mspx?mfr=trueWinFX 工作流:使用 Windows Workflow Foundation 的声明性模型简化开http://www.mic... 阅读全文

posted @ 2006-05-15 02:30 周克 阅读(1170) 评论(0) 推荐(0) 编辑

在WinForm中使用Membership

摘要: 参考Enterprise Library 2006 Security Appliction Block的quickstart 阅读全文

posted @ 2006-05-15 02:15 周克 阅读(1153) 评论(0) 推荐(0) 编辑

WWF动态加载xoml文件

摘要: http://blogs.msdn.com/tomlake/archive/2006/05/02/588756.aspx The only difference between a xoml file used with activation and one that is compiled into a type is the x:Class attribute. 阅读全文

posted @ 2006-05-15 02:13 周克 阅读(1377) 评论(1) 推荐(0) 编辑

2006年4月13日 #

固定Asp.net2.0 Web项目的动态端口号

摘要: 1.在Solution Explorer里面单击选中您要设置的Web项目名称。 2.按F4来打开属性面板,单击Use dynamic ports旁边的下拉列表,然后选择false。这样会激活Port number属性。 3.然后,单击Port number旁边的文本框,在里面输入一个固定的端口号。这样运行Web项目时,VS2005自带的Web服务器就会在您刚才指定的端口上监听。 How to: S... 阅读全文

posted @ 2006-04-13 20:03 周克 阅读(1331) 评论(1) 推荐(0) 编辑

2006年2月26日 #

深圳.Net俱乐部2.26活动资源下载之——从SmartClient到ClickOnce

摘要: 今天讲座的PPT,应广大听众要求加了一些相关资源的连接。PPT下载 程序 种子 阅读全文

posted @ 2006-02-26 21:17 周克 阅读(429) 评论(0) 推荐(0) 编辑