c#技术
文章平均质量分 75
hycapril
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
API全功略(API编程的详细介绍)
API全功略(API编程的详细介绍)什么是API 首先,有必要向大家讲一讲,什么是API。所谓API本来是为C和C++程序员写的。API说来说去,就是一种函数,他们包含在一个附加名为DLL的动态连接库文件中。用标准的定义来讲,API就是Windows的32位应用程序编程接口,是一系列很复杂的函数,消息和结构,它使编程人员可以用不同类型的编程语言编制出的运行在Windows95和Windows NT原创 2004-10-11 11:14:00 · 12725 阅读 · 3 评论 -
选择文件夹的对话框控件c#
我们知道,C#里面有选择文件的对话框控件,却没有选择文件夹的对话框控件,不少人为了选择一个文件夹只好自己用TreeView类来处理,其实在C#里面完全不用那么麻烦,我们可以用C#的FolderNameEditor类的子类FolderBrowser类来实现获取浏览文件夹对话框的功能。 下面来看看具体是怎么实现的。 首先新建一个winform的项目,再新建一个类文件(File->AddNe原创 2005-04-14 11:16:00 · 2711 阅读 · 0 评论 -
柱形图 和 折线图 饼形图控件(原创)
using System;using System.Collections;using System.ComponentModel;using System.Drawing;using System.Data;using System.Windows.Forms;using System.Xml ;namespace ChartControl{ /// /// ChartControl 1.0原创 2005-04-12 15:49:00 · 2249 阅读 · 1 评论 -
读写xml文件的2个小函数(参考别人的,自己稍作整理)
#region 读写xml文件的2个小函数,2005 4 2 by hyc public void SetXmlFileValue(string xmlPath,string AppKey,string AppValue)//写xmlPath是文件路径+文件名,AppKey是 Key Name,AppValue是Value { XmlDocument xDoc = new XmlDoc原创 2005-04-12 15:54:00 · 1286 阅读 · 0 评论 -
带有小计算器的TextBox控件(原创)
/*hycapril@sohu.com需要的添加的控件, private System.Windows.Forms.TextBox textBox1; private System.Windows.Forms.Panel panel1; private System.Windows.Forms.Button B_1; private System.Windows.Forms.Butto原创 2005-04-12 15:36:00 · 1657 阅读 · 0 评论 -
c#操作注册表(转)
Windows 操作系统的注册表包含了很多有关计算机运行的配置方式,打开注册表我们可以看到注册表是按类似于目录的树结构组织的,其中第二级目录包含了五个预定义主键分别是:HKEY_CLASSES_ROOT,HKEY_CURRENT_USER,HKEY_LOCAL_MACHINE,HKEY_USERS,HKEY_CURRENT_CONFIG。 下面我们来分别解释这5个类的作用 HKEY_CLA原创 2005-04-14 11:07:00 · 1144 阅读 · 0 评论 -
(原创)切开一个字符串放到数组里面
private void CutStringToArray(ref string[,] StrArray,string StrWillCut,int NoUseNumber,int MainNum,int SubNum,string Symbol)//切开一个字符串放到数组里面,StrArray是你要放字符串的数组,StrWillCut是你要切得字符串,NoUseNumber,MainNum和原创 2005-04-12 15:59:00 · 1894 阅读 · 0 评论 -
复制文件夹所有内容 和 删除整个文件夹的2个函数(原创)
// ====================================================== // 实现一个静态方法将指定文件夹下面的所有内容copy到目标文件夹下面 // 如果目标文件夹为只读属性就会报错。 // April 18April2005 In STU // ===============================================原创 2005-04-18 22:15:00 · 1638 阅读 · 4 评论 -
Skype 自动回复机C#源代码(原创)
//Skype 自动回复机C#源代码(原创)using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Data;using SKYPEAPILib;namespace AutoReply{ /// //原创 2006-01-09 11:28:00 · 5335 阅读 · 4 评论 -
通用数据库操作类c#(转贴)
类代码 using System; using System.Data; using System.Data.SqlClient; namespace exchange { public class MyDataOp { private String StrSql; private String StrConn; private SqlConnection Conn; pu转载 2005-04-14 11:01:00 · 1765 阅读 · 1 评论 -
C#读硬盘序列号的原代码
public class IDE { [StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)] internal struct IDSECTOR { public ushort wGenConfig; public ushort wNumCyls; public ushort wReserved; public ushort wNumH原创 2004-10-12 10:23:00 · 1801 阅读 · 5 评论 -
c#中结构与类的区别
c#中结构与类的区别目录 类与结构的实例比较 类与结构的差别 如何选择结构还是类 一.类与结构的示例比较:结构示例:public struct Person{ string Name; int height; int weightpublic bool overWeight(){ //implement原创 2004-10-12 09:59:00 · 894 阅读 · 0 评论 -
C#中调用Windows API的要点
在.Net Framework SDK文档中,关于调用Windows API的指示比较零散,并且其中稍全面一点的是针对Visual Basic .net讲述的。本文将C#中调用API的要点汇集如下,希望给未在C#中使用过API的朋友一点帮助。另外如果安装了Visual Studio .net的话,在C:/Program Files/Microsoft Visual Studio .NET/Fram原创 2004-10-12 10:24:00 · 1213 阅读 · 0 评论 -
几个C#编程的小技巧
一、最小化窗口点击“X”或“Alt+F4”时,最小化窗口,如:protected override void WndProc(ref Message m){const int WM_SYSCOMMAND = 0x0112;const int SC_CLOSE = 0xF060;if (m.Msg == WM_SYSCOMMAND && (int) m.WParam == SC_CLOSE){//原创 2004-10-12 10:27:00 · 1404 阅读 · 1 评论 -
如何声明 findwindow 函数。
[DllImport("user32.dll")] private static extern IntPtr FindWindow(string lpClassName, string lpWindowName); //Open Up blank Notepad First ! string lpszParentClass = "Notepad"; string lpszParentWindo原创 2004-10-11 10:13:00 · 1412 阅读 · 0 评论 -
用Visual C#实现文件下载功能
一.概述: 本文通过一个实例向大家介绍用Visual C#进行Internet通讯编程的一些基本知识。我们知道.Net类包含了请求/响应层、应用协议层、传输层等层次。在本程序中,我们运用了位于请求/响应层的WebRequest类以及WebClient类等来实现高抽象程度的Internet通讯服务。本程序的功能是完成网络文件的下载。 二.实现原理: 程序实现原创 2004-10-12 09:56:00 · 1458 阅读 · 0 评论 -
调用WIN32 API
调用WIN32 APIusing System.Runtime.InteropServices;DllImport("user32.dll")]public static extern IntPtr FindWindow(string lpClassName, string lpWindowName); [DllImport("user32.dll")]public static extern原创 2004-10-11 09:40:00 · 1560 阅读 · 0 评论 -
C#农历
using System; namespace CNCalendar { public class CNDate { private const ushort START_YEAR = 1901; private const ushort END_YEAR = 2050; private string[] ConstellationName = { "白羊原创 2004-10-12 09:57:00 · 1261 阅读 · 2 评论 -
c#如何读INI文件中的设置信息
//write by www.wenhui.org把下面的代码改动一下,就可以在你的程序中使用,当然别忘记加上名字空间哦。using System;using System.IO;using System.Runtime.InteropServices;using System.Text;namespace Sx_Mdi{/// /// Summary description for Class1原创 2004-10-12 10:16:00 · 1259 阅读 · 0 评论 -
google calendar C# window application sample(根据google代码改造)
google calendar C# window application sample(根据google代码改造)1.饮用 google calendar dll2.create a new form named Form1;3.add three textbox in this form, one for username, one for password, one for me原创 2006-05-25 10:05:00 · 3006 阅读 · 1 评论
分享