C#ÖеÄË÷ÒýÆ÷
ËùνË÷ÒýÆ÷¾ÍÊÇÒ»ÀàÌØÊâµÄÊôÐÔ
£¬Í¨¹ýËüÃÇÄã¾Í¿ÉÒÔÏñÒýÓÃÊý×é
Ò»ÑùÒýÓÃ×Ô¼ºµÄÀà¡£ÏÔÈ»£¬ÕâÒ»¹¦ÄÜÔÚ´´½¨¼¯ºÏÀàµÄ³¡ºÏÌرðÓÐÓ㬶øÔÚÆäËûijЩÇé¿öÏ£¬±ÈÈç´¦Àí´óÐÍÎļþ»òÕß³éÏóijЩÓÐÏÞ×ÊÔ´µÈ£¬ÄÜÈÃÀà¾ßÓÐÀàËÆÊý×éµÄÐÐΪµ±È»Ò²ÊǷdz£ÓÐÓõġ£
¡¡¡¡Ê×ÏÈÎÒÃÇÏÈÀ´¿´¿´Êý×éÀࣺ
//ʹÓÃÊý×éÀà
public class ArrClass
{
private readonly string UserName;
private readonly int
UserNum;
public ArrClass(string UserName, int UserNum)
{
this.UserName = UserName;
this.UserNum =
UserNum;
}
public string _UserName
{
get { return UserName; }
}
public int
_UserNum
{
get { return UserNum; }
}
}
class Program
{
static void
Main(string[] args)
{
ArrClass[] User = new
ArrClass[3];
User[0] = new ArrClass("ÕÅÈý",001);
User[1] = new ArrClass("ÀîËÄ",002);
User[2] = new
ArrC
Ïà¹ØÎĵµ£º
1.Á¬½ÓÊý¾Ý¿âÎļþ
<add name="LocalSqlServer" connectionString="Data Source=.\SQLExpress;Integrated Security=True;AttachDBFilename=|DataDirectory|TimeTracker.mdf;User Instance=true" />
SqlConnectionStringBuilderʵÀý»¯Ê±£¬ÒªÓõ½connectionString£¬È磺SqlConnectionStringBuild builder = new SqlCon ......
¸ù¾Ý¿í¶ÈÀ´¾ö¶¨ÏÔʾµÄ×Ö·û´®³¤¶È (C#,VS2005)
Èç¹û lable³¤¶È¹Ì¶¨µ«×Ö·û´®³¤¶È¿É±ä£¬Èç¹û³¬¹ýÁËlableÏÔʾµÄ³¤¶Èʱ£¬Ï£ÍûÓà ...´úÌæʣϵÄ×Ö·û£¬ÕâʱÐèÒªÒ»¸öº¯Êý
Graphics.MeasureString
¾ßÌå´úÂëÈçÏÂ
public string Abbreviation(string str)
{
&nbs ......
ÓÉÓÚÏîÄ¿ÐèÒª,ҪʹÓÃc#Ã軸ßƵʵʱÇúÏß.
µ«ÊÇÔÚC#ÏÂÓÉÓÚÃè»Í¼ÏñʹÓõÄÊÇGDI+,Ãè»Ð§ÂʺÜÓÐÎÊÌâ.Ò»µ©ÇúÏßÌ«¶à,¾Í»áÔì³ÉCPUʹÓÃÂÊÖ±ÏßÉÏÉý,ÂíÉÏìÉýµ½100%.
ÔÚGDI+ÏÂʹÓÃË«»º³åÒ²ÎÞ¼ÃÓÚÊÂ,Ë«»º³å±¾ÉíÖ»»á½â¾öÇúÏ߶àµÄʱºòÈ«ÆÁÉÁ˸ÎÊÌâ,µ«Ãè»Ð§ÂÊ»¹ÊÇÑÏÖصÍÏÂ.
Æä¼äÓùý¶àÖÖ½â¾ö·½°¸:DRECT3D,DRIRECT2D,GDI,,,,,µÈµÈµÈµÈ ......
ÎÞÒâ·¢ÏÖÔÚÍøÉϺܸÕѧC#µÄÅóÓÑÃǶ¼ÔÚÕÒ¹ØÓÚC#ÈçºÎµÝ¹éʵÏÖTreeViewµÄ°ó¶¨£¬¼ûÍøÉϺܶàÀý×Ó¶¼±È½ÏÉî°Â£¬ÎÒÌØÒâдÁ˸ö±È½Ï¼òµ¥Ò׶®µÄÀý×Ó°ïÖú´ó¼ÒÁ˽âC#TreeViewµÄ²Ù×÷ÓëµÝ¹éµÄʵÏÖ...
±¾ÎÄÖ»ÊÇÓõݹéµÄ·½Ê½¼òµ¥ÊµÏÖTreeViewµÄ²Ù×÷£¬¿ÉÄÜ´æÔÚÐÔÄÜÉϵÄÎÊÌ⣬½ö¹©³õѧÕ߲ο¼¡£
Ч¹ûͼ£º
Ò»£º´´½¨Êý¾Ý¿âºÍÊý¾Ý±í£¨Area£©
¶þ£ ......