- 博客(10)
- 资源 (9)
- 收藏
- 关注
原创 WPF程序本地化的方法Localization
看到一篇文章,描述WPF程序本地化的问题,比较清晰,以后可以使用。 下载:WPF Localization Guidance.pdf
2009-07-27 13:58:00 1659
原创 C#中string转换成字节byte的处理方法
C#中一个字节最大255,用byte来表示,两个或者多个字节用byte[]表示。(1)string转换成byte: 两种方法: byte data = Convert.ToByte(string); 或者: byte data = byte.Parse(string); (2)string转换成by
2009-07-20 14:32:00 23054
原创 C#中OnRender()显示MessageBox()的方法
如果在OnRender()中直接显示MessageBox时,会出现这个异常错误:the exception message is "Dispatcher processing has been suspended, but messages are still being processed.". 所以,在这里我采用BeginInvoke()实现这个功能。prote
2009-07-17 15:46:00 2366 1
转载 WinForm数据绑定--BindingContext
Binding对象:代表某对象属性值和某控件属性值之间的简单绑定。其主要负责将控件的属性和对象的属性进行关联。 BindingManagerBase:管理绑定到相同数据源和数据成员的所有 Binding 对象。 这个对象在前面的章节中没有涉及,但实际上不管是简单绑定还是复杂绑定中都使用到了这个对象的相应的派生类。 BindingContext对象:
2009-07-15 00:32:00 1178
原创 C#中Brush、Color、String相互转换
示例: using System.Windows.Media; 1、String转换成Color Color color = (Color)ColorConverter.ConvertFromString(string); 2、String转换成Brush BrushConverter brushConverter = n
2009-07-14 15:13:00 16685 4
原创 WPF中F1帮助文档的打开
最近在看帮助文档实现部分,前面看了一下C#里面有个HelpProvider类用于实现帮助文档,但是后来发现WPF里面居然没有这个控件,甚是郁闷,所以就在网上找找,下面就是所有的相关网页,内容不多,主要就是以下两个例子: 第一个例子,只有一篇文章介绍,也没有看到别人转载: http://blogs.windowsclient.net/bragi/arch
2009-07-12 23:21:00 5621 2
转载 c#操作Access数据库的简单例子
本文介绍C#访问操作Access数据库的基础知识,并提供一个相关的例程。1.通过ADO.NET的OleDb相关类来操作Access主要知识点如下:using System.Data.OleDb;using System.Data;连接字符串:String connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=product
2009-07-12 22:59:00 1502
原创 用C#实现利用F1打开帮助文件
最近需要做帮助文档,所以在网上查了一下,这里把一些有用的资料摘录一下。 1. 首先这篇文章是比较详细的一个介绍:Open Help file on F1 function key press in windows application This article explains how to open help file on F1 Function ke
2009-07-10 13:53:00 6389 2
转载 强大的.NET反编译工具Reflector
今天听到反编译工具,就在网上搜了一下,找到以下说明,摘录在这里。这个软件确实功能强大,C#的代码都能被反编译出来,看来以后的程序还需要再次加密了。【文】 早就听说Reflector这个强大的类库分析与反编译工具,不过一直没有很好的利用起来。最近使用Reflector解决了一个实际开发问题,现将其总结出来。 需求导入:项目是一个GIS项目,在项目中使用
2009-07-08 15:40:00 2650
转载 .Net下的委托入门讲解
主 题: “.net百题问答的活动”--许多人问过的--《 C#委托及事件 》 所属论坛: .NET技术 C# 有许多人问的,.Net中的委托以及事件处理。我拿简单的例子说明一下,是现实中的例子: 比如说一个公司(场景),你是老板,手下有两个员工,小张和小王。 你命令小王,如果小张玩游戏,则小王扣去小张500元钱。 这就是现实中的委托。 实际上,在写程序中,程序员就是老板
2009-07-06 12:45:00 609
Beginning Visual C# Express
2009-07-06
Visual C# and Databases
2009-07-06
WPF Arrow Code
2009-07-06
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人