当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Data;using System.IO;...
 

 

    摘要:第7章 事件本章将讨论autocad中的事件。我们将介绍事件处理函数的使用,特别是监视autocad命令的事件处理函数和监视被autocad命令修改的对象的事件处理函数。在解释怎样在c#中实现autocad的事件处理之前,我们将首先简要地讨论一下.net中的事件。 第一部分  c#中的事件事件只是用来通知一个行为已经发生的信息。在objectarx中,我们使用反应器(reactor)来处理auto......
 ·读写一般格式的xml文件     »显示摘要«
    摘要:把数据都一次性存入数据库固然好,但是设想如果用户运行系统的计算机没有接入网络,即根本建立不了与数据库的连接,那该怎么办?总不能不要数据了任由其丢失吧。于是此时本地数据文件变的尤为重要,她们成为承载数据的媒介。不过选择存储数据的文件格式需要仔细周全的考虑,在存储和读取数据文件的过程中,不同的文件格式会给程序的性能带来不同的影响。xml(extensible markup language)文件作为与......


用DES加密数据库信息,增强Asp.net的安全性(2)--实现源码

using system;using system.drawing;using system.collections;using system.componentmodel;using system.windows.forms;using system.data;using system.io;using system.text;using system.xml;using system.security.cryptography;

  public frmmain()  {   //   // windows 窗体设计器支持所必需的   //   initializecomponent();   int[] tmp=new int[8]{23,234,195,165,201,240,143,198};   foreach(int i in tmp)   {    keypassword+=((char)i).tostring();   }  } 【程序编程相关:[FxCop.设计规则]6. 避免使用输

namespace writeconfig{ /// <summary> /// form1 的摘要说明. /// </summary> public class frmmain : system.windows.forms.form {  private system.windows.forms.label labserver;  private system.windows.forms.label labdatabase;  private system.windows.forms.label labuser;  private system.windows.forms.label labpassword;  private system.windows.forms.textbox txtserver;  private system.windows.forms.textbox txtdatabase;  private system.windows.forms.textbox txtuser;  private system.windows.forms.textbox txtpassword;  private system.windows.forms.button btnread;  private system.windows.forms.label label1;  private system.windows.forms.textbox txtfile;  private system.windows.forms.button btnwrite;  private system.windows.forms.button btnlook;  private system.windows.forms.openfiledialog ofd;  private system.windows.forms.label labkey;  private system.windows.forms.textbox txtkey;  private fileinfo fi;  private bool find;  private string password="";  protected string keypassword="";  private system.windows.forms.button btndeletenode;    /// <summary>  /// 必需的设计器变量.  /// </summary>  private system.componentmodel.container components = null; 【推荐阅读:数据装载工具(ETL)设计(Extrac

  /// <summary>  /// 清理所有正在使用的资源.  /// </summary>  protected override void dispose( bool disposing )  {   if( disposing )   {    if (components != null)     {     components.dispose();    }   }   base.dispose( disposing );  }

  #region windows 窗体设计器生成的代码  /// <summary>  /// 设计器支持所需的方法 - 不要使用代码编辑器修改  /// 此方法的内容.
...   下一页

 ·小偷程序(asp.net+c#)     »显示摘要«
    摘要:在.net 平台下,创建一个asp.net的程序1、引用两个namespace using system.text //因为用了encoding类 using system.net //因为用了webclient 类2、整个程序用了三个控件 txturl //输入你要获取的网页地址 textbox控件 txtbody //得到你要获取的网页内容 textbox控件 btnreturn //按钮bu......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE