Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

C#»­Ï߿ؼþµÄ¿ª·¢Ó¦ÓÃʵÀý½âÎö

C#»­Ï߿ؼþµÄÓ¦ÓÃʵÀý½éÉÜ֮ǰÎÒÃÇÒªÃ÷°×ÔÚC#ÖÐûÓл­ÏߵĿؼþ£¬ÕâÀïдÁËÒ»¸ö£¬´ó¼Ò·ÖÏí¡£¹²ÓÐÁ½¸ö¿Ø¼þ·Ö±ðÊÇ»­ºáÏߺͻ­ÊúÏߵ쬹ØÓÚÔõô»­Ð±ÏßÓÐÐËȤµÄ¿ÉÒÔ×öÒ»¸ö´ó¼Ò·ÖÏí¡£
    C#»­Ï߿ؼþÖ®ºáÏß
using System;  
using System.Collections;  
using System.ComponentModel;  
using System.Drawing;  
using System.Data;  
using System.Windows.Forms;  
 
namespace Jiashi.WinControls  
{  
 ///   
 /// LineX »­ºáÏ߿ؼþ  
 ///   
 public class LineX : System.Windows.Forms.UserControl  
 {  
 
#region ÊôÐÔ¶¨Òå  
private System.Drawing.Color lineColor;  
private int lineWidth;  
///   
/// ÏßµÄÑÕÉ«ÊôÐÔ  
///   
public System.Drawing.Color LineColor  
{  
 set 
 {  
this.lineColor=value;  
System.Windows.Forms.PaintEventArgs ep=  
new PaintEventArgs(this.CreateGraphics(),  
this.ClientRectangle);  
this.LineX_Paint(this,ep);  
 }  
 get{return this.lineColor;}  
}  
///   
/// ÏߵĴÖϸ  
///   
public int LineWidth  
{  
 set 
 {  
this.lineWidth=value;  
System.Windows.Forms.PaintEventArgs ep=  
new PaintEventArgs(this.CreateGraphics(),  
this.ClientRectangle);  
this.LineX_Paint(this,ep);  
 }  
 get{return this.lineWidth;}  
}  
#endregion  
private System.ComponentModel.Container components = null;  
 
///   
/// ¹¹Ô캯Êý³õʼÑÕÉ«ºÍÏß´Öϸ  
///   
public LineX()  
{  
 InitializeComponent();  
 this.lineColor=this.ForeColor;  
 this.lin


Ïà¹ØÎĵµ£º

C#ÓïÑԹ淶

1. ÃüÃû¹æ·¶
a)    Àà
¡¾¹æÔò1-1¡¿Ê¹ÓÃPascal¹æÔòÃüÃûÀàÃû£¬¼´Ê××ÖĸҪ´óд¡£
¡¾¹æÔò1-2¡¿Ê¹ÓÃÄܹ»·´Ó³À๦ÄܵÄÃû´Ê»òÃû´Ê¶ÌÓïÃüÃûÀà¡£
¡¾¹æÔò1-3¡¿²»ÒªÊ¹ÓÓI”¡¢“C”¡¢“_”µÈÌØ¶¨º¬Òåǰ׺¡£
¡¾¹æÔò1-4¡¿×Ô¶¨ÒåÒì³£ÀàÓ¦ÒÔException½áβ¡£
¡¾¹æÔò1-5¡¿ÎļþÃûÒªÄÜ·´Ó ......

ÀûÓÃWM_COPYDATAÔÚÓ¦ÓóÌÐò¼ä´«µÝÊý¾Ý(C#)

ÀûÓÃWM_COPYDATAÔÚÓ¦ÓóÌÐò¼ä´«µÝÊý¾ÝºÜ¼òµ¥,¿ªÏúҲС
Ò»¡¢´«µÝÊý¾Ý²¿·Ö
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
using System.Windows.Forms;
namespace ThreeTorches
{
    public struct Copydatastru ......

C#ÃæÊÔ±ÊÊÔСÌùÊ¿ 2

¶ÔÓÚ¶à̬£¬»¹±ØÐèÌáÒ»¸öC#ÖеĹؼü×Ö£ºnew¡£Ç°ÃæÌáµ½£¬¶ÔÓÚvirtual·½·¨£¬JIT»áÈ·¶¨ÊµÀýµÄʵ¼ÊÀàÐÍÈ»ºó¾ö¶¨µ÷ÓÃʲô·½·¨¡£µ«ÊÇÈç¹ûÅÉÉúÀàÖÐnew¹Ø¼ü×ÖÐÞÊη½·¨£¬ÔòËüÏòCLR³ÎÇå´ËÅÉÉúÀàÖеķ½·¨Óë»ùÀàÖеķ½·¨ºÁÎÞ¹ØÏµ£¬ÒÔÏ´úÂë×îÖÕµ÷ÓÃÊÇ»ùÀàµÄintroduce·½·¨£º
Code
class Program
{
    static vo ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ