Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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#±à³ÌˮƽµÄ50¸öÒª¾÷


ÏëÌá¸ßc#±à³Ìˮƽ£¿ÏÂÃæÕâ50Ìõ¾­Ñé²»¿É²»¶Á£¡
Ìá¸ßC#±à³ÌˮƽµÄ50¸öÒªµã
1.×ÜÊÇÓÃÊôÐÔ (Property) À´´úÌæ¿É·ÃÎʵÄÊý¾Ý³ÉÔ±
2.ÔÚ  readonly ºÍ const Ö®¼ä£¬ÓÅÏÈʹÓà readonly
3.ÔÚ as ºÍ Ç¿ÖÆÀàÐÍת»»Ö®¼ä£¬ÓÅÏÈʹÓà as ²Ù×÷·û
4.ʹÓÃÌõ¼þÊôÐÔ (Conditional Attributes) À´´úÌæÌõ¼þ±àÒëÓï¾ä #if
5.×ÜÊÇΪ×Ô¶¨Ò ......

C#Çå³ýÒ³Ã滺´æ

C#Çå³ýÒ³Ã滺´æ
    private void SetPageNoCache()
        {
            Response.Buffer = true;
            Response.ExpiresAbsolute = Sy ......

C# stringÀàÐÍÌØÐÔС¼Ç

(1)stringÊÇÒýÓÃÀàÐÍ£º
stringÊÇÒýÓÃÀàÐÍ£¬Õâ¾ÍÊÇ˵stringÔÚ¶ÑÉϱ£´æÊý¾Ý£¬¶øÔÚÕ»Öд洢µÄÊǶÔÏóµØÖ·£¬ÔÚÀí½âstringÀàÐÍÌØÐÔʱÊ×ÏÈÐèÒª¼ÇסÕâµã¡£Ö»²»¹ýÓëÆäËüһЩÒýÓÃÀàÐÍÏà±È£¬ËüÓÖÓÐһЩ±È½ÏÌØÊâµÄÌØÐÔ£¬±ÈÈçÏÂÃæµÄÕâЩ£º
(2)stringÊDz»¿É±äµÄ(immutable)£º
stringµÄÕâÒ»ÌØÐÔÊÇÖ¸£¬¶ÔÓÚÒÑÓеÄÒ»¸östring¶ÔÏ󣬵±ÄãÐÞ¸ ......

C# µ÷Óà c++ dll µÄһЩÎÊÌâ×ܽá

1.c++µÄµ½´¦º¯ÊýÖ»ÒªÔÚº¯ÊýÉêÃ÷µÄʱºò¼Ó¸öµ¼³ö¹Ø¼ü×־ͿÉÒÔÁË
2.²ÎÊýÀàÐÍÎÊÌâ,
Ò»°ãµÄc++ÖÐchar * ¶ÔÓ¦ c#ÖеÄstring
¶øc++ÖÐ char **ÀàÐ͵IJÎÊý¶ÔÓ¦c#ÖÐ ref string ÕâÖÖÒ»°ã¶¼ÊÇÓÃÀ´·µ»Ø×Ö·û´®µÄ!
3.º¯ÊýÈë¿ÚÎÊÌâ,Ò»°ã»á³öÏÖ "ÕÒ²»µ½Èë¿Úµã" Õâ¸öÎÊÌâ²»ÊÇÓÉÄãÒýÆðµÄ,¶øÊÇϵͳ×Ô¼º°ÑÃû×Ö¸ÄÁË,¸Ä³ÉʲôÑùµÄÃû×Ö½¨ÒéÄãÓà ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ