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

C#»æÖÆÔ²½Ç´°Ìå

public   void   SetWindowRegion()    
  {    
 
System.Drawing.Drawing2D.GraphicsPath   FormPath;    
  FormPath   =
  new   System.Drawing.Drawing2D.GraphicsPath();    
  Rectangle  
rect=new  
Rectangle(0,22,this.Width,this.Height-22);//this.Left-10,this.Top-10,this.Width-10,this.Height-10);
               
  FormPath   =   GetRoundedRectPath(rect,   30);  
 
this.Region   =   new   Region(FormPath);    
  }  
  private  
GraphicsPath   GetRoundedRectPath(Rectangle   rect,   int   radius)    

  {  
  int   diameter   =   radius;  
  Rectangle  
arcRect   =   new   Rectangle(rect.Location,   new   Size(diameter,  
diameter));  
  GraphicsPath   path   =   new   GraphicsPath();  
 
//   ×óÉÏ½Ç  
  path.AddArc(arcRect,   180,   90);  
  //   ÓÒÉÏ½Ç  
 
arcRect.X   =   rect.Right   -   diameter;  
  path.AddArc(arcRect,
  270,   90);  
  //   ÓÒÏÂ½Ç  
  arcRect.Y   =   rect.Bottom   -  
diameter;  
  path.AddArc(arcRect,   0,   90);  
  //   ×óÏÂ½Ç  
 
arcRect.X   =   rect.Left;  
  path.AddArc(arcRect,   90,   90);  
 
path.CloseFigure();  
  return   path;  
  }  
  protected  
override   void   OnResize(System.EventArgs   e)    
  {    
 
this.Region   =   null;    
  SetWindowRegion();  


Ïà¹ØÎĵµ£º

C#ÖÐÓÃXmlTextReader¶ÔÏó²Ù×÷XMLÎļþ

sd.xmlÎļþ:
<?xml version="1.0" encoding="gb2312"?>
<!--ÕâÊÇÒ»¸öxmlÎļþ-->
<xml1>
  <item name="1">µÚÒ»¸öitem</item>
  <item name="2">
      <item name="1">Õâ¸ö½áµã(1) ......

asp.net(c#)ÍøÒ³ÌøתÆßÖÖ·½·¨

1.Response.Redirect("http://www.jb51.net",false);
Ä¿±êÒ³ÃæºÍÔ­Ò³Ãæ¿ÉÒÔÔÚ2¸ö·þÎñÆ÷ÉÏ£¬¿ÉÊäÈëÍøÖ·»òÏà¶Ô·¾¶¡£ºóÃæµÄboolֵΪÊÇ·ñÍ£Ö¹Ö´Ðе±Ç°Ò³¡£
ÌøתÏòеÄÒ³Ã棬ԭ´°¿Ú±»´úÌæ¡£"
ä¯ÀÀÆ÷ÖеÄURLΪз¾¶¡£
:Response.Redirect·½·¨µ¼ÖÂä¯ÀÀÆ÷Á´½Óµ½Ò»¸öÖ¸¶¨µÄURL¡£µ±Response.Redirect()·½·¨± ......

c# ²Ù×÷mssqlÊý¾Ý¿â º¬Óдø²ÎÊýsqlÓï¾äÔËÐÐ

<?xml version="1.0" encoding="utf-8"?>
<configuration>
 <appSettings>
  <add key="Default" value="Default" />
 </appSettings>
 <connectionStrings>
  <add name="Default" connectionString="Data Source=192.168.1.197;User ID ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ