摘要: (C) Currency: . . . . . . . . ($123.00)(D) Decimal:. . . . . . . . . -123(E) Scientific: . . . . . . . -1.234500E+002(F) Fixed point:. . . . . . . -123.45(G) General:. . . . . . . . . -123 (default):.... 阅读全文
posted @ 2009-10-08 21:20 greencolor 阅读(127) 评论(0) 推荐(0) 编辑
摘要: b.exe文件的清除今天,发现电脑的启动项目中总是有一b.exe,无法删除,后来觉的是中毒了,通过下面的方法很顺利的清除了b.exe按F8,进入安全模式,运行cmd,出现C:\Documents and Settings\Administrator>输入cd Local Settings再输入cd Temp再输入del b.exe重启后就好了 阅读全文
posted @ 2009-10-06 22:41 greencolor 阅读(231) 评论(0) 推荐(0) 编辑
摘要: lock在图形的绘制方面有一定的应用,特别是当要求结束一个计算后,再进行绘图时,常会将计算的任务用lock, 最后进行绘图 Thread myThread; Thread myThread1; public void Add() { { for (int i = 100; i >= 0; i--) { Thread.Sleep(200); label1.Text = i.ToString(... 阅读全文
posted @ 2009-10-05 14:24 greencolor 阅读(1578) 评论(0) 推荐(0) 编辑
摘要: Thread[] threads = new Thread[10]; // define array, which canonly be used to // storeSystem.Threading.Thread type threads[i] = t; // here, t must beSystem.Threading.Thread type 阅读全文
posted @ 2009-10-04 16:40 greencolor 阅读(143) 评论(0) 推荐(0) 编辑
摘要: public Account(int initial) -------- here has int { balance = initial; } static void Main() { Account acc = new Account(1000); ------ herehas not int ... } 阅读全文
posted @ 2009-10-04 16:22 greencolor 阅读(152) 评论(0) 推荐(0) 编辑
摘要: Process cmd = new Process(); cmd.StartInfo.FileName = "systeminfo.exe"; cmd.StartInfo.UseShellExecute = false; cmd.StartInfo.RedirectStandardInput = true;cmd.StartInfo.RedirectStandardOutput = true;cm... 阅读全文
posted @ 2009-09-28 15:51 greencolor 阅读(219) 评论(0) 推荐(0) 编辑
摘要: public class Class1 : Component { private Size _size; public Class1() { _size = new Size(); } [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] public Size Size {... }public c... 阅读全文
posted @ 2009-09-28 14:37 greencolor 阅读(165) 评论(0) 推荐(0) 编辑
摘要: string[] = String[];But String[] is faster than string[]; 阅读全文
posted @ 2009-09-26 00:18 greencolor 阅读(152) 评论(0) 推荐(0) 编辑
摘要: public delegate void Del(string message);public static void DelegateMethod(string message){ System.Console.WriteLine(message);}// Instantiate the delegate.Del handler = DelegateMethod;// Call the dele... 阅读全文
posted @ 2009-09-23 16:01 greencolor 阅读(181) 评论(0) 推荐(0) 编辑
摘要: class SampleCollection<T>{ private T[] arr = new T[100]; public T this[int i] { get { return arr[i]; } set { arr[i] = value; } }}// This class shows how client code uses the indexerclass Program... 阅读全文
posted @ 2009-09-23 15:48 greencolor 阅读(133) 评论(0) 推荐(0) 编辑