文章分类 -  C#.net

XML字符串的读写操作函数及示例程序
摘要:#include "stdafx.h"#include //---You must Setup the MSXML4.0 before using#import using namespace MSXML2; void xmlread(char *ch1,char *ch2,char *ch3);//Read the xmlstr and Get the Text of the Element ... 阅读全文
posted @ 2006-07-25 10:42 欧阳 阅读(315) 评论(0) 推荐(0)
XML的简单读取与写入
摘要:已知有一个XML文件(bookstore.xml)如下: Oberon''s Legacy Corets, Eva 5.95 1、往节点中插入一个节点: XmlDocument xmlDoc=new XmlDocument(); xmlDoc.Load("bookstore.xml"); XmlNode root=xmlDoc.SelectSingleNode("bookstore"... 阅读全文
posted @ 2006-07-25 10:28 欧阳 阅读(125) 评论(0) 推荐(0)
指定在状态区域创建图标的组件
摘要:指定在状态区域创建图标的组件。不能继承此类。有关此类型所有成员的列表,请参阅 NotifyIcon 成员。System.Object System.MarshalByRefObject System.ComponentModel.Component System.Windows.Forms.NotifyIcon[Visual Basic]NotInheritable ... 阅读全文
posted @ 2006-07-25 10:25 欧阳 阅读(319) 评论(0) 推荐(0)
c#.net常用的小函数和方法集
摘要:c#.net常用的小函数和方法集 1、DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year; 1.... 阅读全文
posted @ 2006-07-25 10:24 欧阳 阅读(150) 评论(0) 推荐(0)
.NET开发中的一些小技巧
摘要: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 W... 阅读全文
posted @ 2006-07-25 10:22 欧阳 阅读(141) 评论(0) 推荐(0)
C#中调用Windows API的要点
摘要:C#中调用Windows API的要点 在.Net Framework SDK文档中,关于调用Windows API的指示比较零散,并且其中稍全面一点的是针对Visual Basic .net讲述的。本文将C#中调用API的要点汇集如下,希望给未在C#中使用过API的朋友一点帮助。另外如果安装了Visual Studio .net的话,在C:\Program Files\Microsoft... 阅读全文
posted @ 2006-07-25 10:22 欧阳 阅读(91) 评论(0) 推荐(0)