文章分类 -  C#

一段画SIN曲线的代码
摘要:/// /// 初如化画布,并调用画线程序 /// /// /// private void button2_Click(object sender, System.EventArgs e) { System.Drawing.Bitmap bmp = new Bitmap(400,220); Graphics g = Graphics.FromImage(bmp); ... 阅读全文

posted @ 2004-10-08 21:33 浪花 阅读(1757) 评论(0) 推荐(0)

WINFORM接受传入参数
摘要:static void Main(String[] args) { MainForm mf = new MainForm(); if(args.Length == 0) mf.Args1 = ""; else mf.Args1 = args[0]; Application.Run(mf); } 阅读全文

posted @ 2004-09-09 18:55 浪花 阅读(248) 评论(0) 推荐(0)

ASP.NET虚拟目录的操作
摘要:以下摘自网上: //假如虚拟目录名为"Webtest",先在项目中引用 //System.DirectoryServices.dll,再 using System.DirectoryServices; protected System.DirectoryServices.DirectoryEntry dirroot; 1、添加新的虚拟目录 DirectoryEntry newVi... 阅读全文

posted @ 2004-09-09 18:49 浪花 阅读(1888) 评论(0) 推荐(0)

C#中按照给定的类名和DLL文件创建对象的方法
摘要:/// /// 照给定的类名和DLL文件创建类对象 /// /// 类的名称字符串,应该包含类的命名空间 比如Form类 System.Window.Form /// 这个是DLL文件的名称,如果不是当前目录,应该包含目录名 internal object CreateObject(string objclass,string dllfile) { Typ... 阅读全文

posted @ 2004-09-06 10:53 浪花 阅读(1224) 评论(0) 推荐(0)

导航