自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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

WPF Localization Guidance

WPF Localization Guidance WPF程序实现本地化的方法介绍

2009-07-27

WPF Help Project

实现WPF使用F1打开帮助文档功能。 类HelpProvider类似C#里面的,需要设置Helpname和Keyword。

2009-07-14

WPF使用 F1 打开帮助文档源代码

实现了类似C# HelpProvider类的功能,用于WPF打开帮助文档。

2009-07-13

Beginning Visual C# Express

Beginning Visual C# Express is presented using a combination of over 400 pages of course notes and actual Visual C# Express examples. Ten plain-English lessons explain the Visual C# Express toolbox, event methods, and many elements of the C# computer language. Examples are used to demonstrate every step in the application building process. The tutorial also includes several computer projects that illustrate practical applications of Visual C# Express, including loan calculators, graphics programs, portfolio managers, checkbook balancers, and even a simple video game.

2009-07-06

Visual C# and Databases

Visual C# and Databases is a tutorial that provides a detailed introduction to using Visual C# for accessing and maintaining databases. Topics covered include: database structure, database design, Visual C# project building, ADO .NET data objects, data bound controls, proper interface design, structured query language (SQL), and database reports. Visual C# and Databases is presented using a combination of over 700 pages of course notes and actual Visual C# examples. No previous experience working with databases is presumed. It is assumed, however, that users of the course are familiar with the Visual C# environment and the steps involved in building a Visual C# application.

2009-07-06

WPF Arrow Code

WPF画箭头的相关代码,具体使用参见文章:http://blog.csdn.net/wmjcom/archive/2009/04/15/4075794.aspx

2009-07-06

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除