2011年7月21日

摘要: 可以用DSA和RSA,如:using System;using System.Text;using System.Security.Cryptography; class dsacrypto_SignData { public static void Main(String[] args){ //先要将字符串转换为字节数组,这与编码有关。 String str = "this is a test."; byte[] bytes = Encoding.ASCII.GetBytes(str); //选择签名方式,有RSA和DSA DSACryptoServiceProvider 阅读全文
posted @ 2011-07-21 01:59 骑着毛驴去编程 阅读(302) 评论(0) 推荐(0) 编辑

2011年7月20日

摘要: 1. 如何创建一个可改变大小没有标题栏的窗体?(How to create a form with resizing borders and no title bar?)form1.Text = string. Empty;form1.ControlBox = false;2. 如何在.NET的Windows窗体上启用XP主题集?(How to use XP Themes with Windows Forms using the .NET?)确认你的控件中FlatStyle属性已经修改为System,再修改Main方法。static void Main(){Application.Enable 阅读全文
posted @ 2011-07-20 18:08 骑着毛驴去编程 阅读(561) 评论(0) 推荐(1) 编辑
摘要: Office Access 2007 引入了几个新的文件扩展名:ACCDB用于新的 Office Access 2007 文件格式的文件扩展名。取代 MDB 文件扩展名。ACCDE用于处于“仅执行”模式的 Office Access 2007 文件的文件扩展名。ACCDE 文件删除了所有Visual Basic for Applications (VBA)源代码。ACCDE 文件的用户只能执行 VBA 代码,而不能修改这些代码。ACCDE 取代 MDE 文件扩展名。ACCDT用于 Access 数据库模板的文件扩展名。ACCDRACCDR 是一个新的文件扩展名,它可以使您在运行时模式下打开数据 阅读全文
posted @ 2011-07-20 17:21 骑着毛驴去编程 阅读(5605) 评论(1) 推荐(0) 编辑
摘要: MS ACCESS ODBC开放式接口连接字符串标准链接:"Driver= {MicrosoftAccessDriver(*.mdb)};DBQ=C:\App1\你的数据库名.mdb;Uid=你的用户名;Pwd=你的密码;"如果ACCESS数据库未设置用户名和密码,请留空。下同。WorkGroup方式(工作组方式)连接:"Driver={Microsoft Access Driver (*.mdb)}; Dbq=C:\App1\你的数据库名.mdb; SystemDB=C:\App1\你的数据库名.mdw;"采用独占方式进行连接:"Driver 阅读全文
posted @ 2011-07-20 17:13 骑着毛驴去编程 阅读(2539) 评论(0) 推荐(0) 编辑

2011年7月18日

摘要: 每个实例化的 Window 对象(无论是否可见)都会自动添加到一个窗口引用的集合中,该集合由 Application 管理并且通过 Windows 公开。使用以下代码,可以枚举 Windows 以获取所有实例化窗口:foreach( Window window in Application.Current.Windows ) { Console.WriteLine(window.Title); } 阅读全文
posted @ 2011-07-18 23:54 骑着毛驴去编程 阅读(793) 评论(0) 推荐(1) 编辑

2011年7月16日

摘要: GridView控件,DataList控件,Repeater控件是常用的数据绑定控件,而其中GridView(2003版本对应的控件是DataGrid)是三者中最为常用的,下面将通过一个简单的例子把GridView中一些使用方法集中在一起,包括GridView中自带分页的使用,GridView中删除当前行的操作,GridView中更新当前行的操作,GridView中HyperLinkField列的使用. 页面前台代码如下:<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="G 阅读全文
posted @ 2011-07-16 01:08 骑着毛驴去编程 阅读(383) 评论(1) 推荐(0) 编辑
摘要: //////////////////////.aspx代码//////////////////////// <div> <asp:GridView ID="gv_pro" runat="server" AllowPaging="true" PageSize="10" PagerSettings-Mode="Numeric" AllowSorting="true" Font-Size="12px" Width="760" 阅读全文
posted @ 2011-07-16 01:06 骑着毛驴去编程 阅读(368) 评论(0) 推荐(0) 编辑
摘要: CSS定位的定义: 在CSS中关于定位的内容是:position:relative | absolute | static | fixed static 没有特别的设定,遵循基本的定位规定,不能通过z-index进行层次分级。 relative 不脱离文档流,参考自身静态位置通过 top,bottom,left,right 定位,并且可以通过z-index进行层次分级。 absolute 脱离文档流,通过 top,bottom,left,right 定位。选取其最近的父级定位元素,当父级 position 为 static 时,absolute元素将以body坐标原点进行定位,可以通过z-in 阅读全文
posted @ 2011-07-16 00:39 骑着毛驴去编程 阅读(301) 评论(0) 推荐(1) 编辑

2011年7月15日

摘要: using System.Windows.Forms;using DevExpress.XtraPrinting;using System.Xml.Serialization;namespace MyDevExpressDemo{ /// <summary> /// PrintSettingController 的摘要说明。 /// </summary> public class PrintSettingController { PrintingSystem ps = null; string formName=null; DevExpress.XtraPrinting 阅读全文
posted @ 2011-07-15 23:39 骑着毛驴去编程 阅读(1370) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Drawing;using System.Collections;using System.ComponentModel;using DevExpress.XtraReports.UI;using System.Collections.Generic;namespace DL698AmmeterTest.form{ public partial class XtraReport1 : DevExpress.XtraReports.UI.XtraReport { private string _changShang;//厂商 private s 阅读全文
posted @ 2011-07-15 23:18 骑着毛驴去编程 阅读(2382) 评论(1) 推荐(1) 编辑

导航