随笔分类 -  ASP.NET + Ajax

摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb23 阅读全文

posted @ 2011-06-28 16:08 严武 阅读(2896) 评论(0) 推荐(0) |

摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Runtime.InteropServices;namespace test{ public partial class Form3 : Form { public Form3() ... 阅读全文

posted @ 2010-12-25 16:21 严武 阅读(6429) 评论(0) 推荐(0) |

摘要://加边框 try { Bitmap Backbmp = new Bitmap(@"" + Path); float w = (float)(Backbmp.Width * 0.2); using (Graphics g = Graphics.FromImage(Backbmp)) { using (Brush brush = new SolidBrush(Color.FromArgb(0, 156, 255))) { using (Pen pen = new Pen(brush, w)) { pen.DashStyle = DashStyle.Custom; g.Draw 阅读全文

posted @ 2010-12-23 15:24 严武 阅读(570) 评论(0) 推荐(0) |

摘要:// 该调用是 Windows.Forms 窗体设计器所必需的。 InitializeComponent(); // TODO: 在 InitComponent 调用后添加任何初始化 this.SetStyle(ControlStyles.AllPaintingInWmPaint,true); //开启双缓冲this.SetStyle(ControlStyles.DoubleBuffer,true); this.SetStyle(ControlStyles.UserPaint,true); this.SetStyle(ControlStyles.ResizeRedraw,true... 阅读全文

posted @ 2010-12-23 13:19 严武 阅读(2711) 评论(0) 推荐(0) |

摘要:#region 圆角界面 public void SetWindowRegion() { System.Drawing.Drawing2D.GraphicsPath FormPath; FormPath = new System.Drawing.Drawing2D.GraphicsPath(); Rectangle rect = new Rectangle(0, 0, this.Width, this.Height);//this.Left-10,this.Top-10,this.Width-10,this.Height-10); FormPath = GetRoundedRectPath(r 阅读全文

posted @ 2010-12-23 12:38 严武 阅读(537) 评论(0) 推荐(0) |

摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Runtime.InteropServices;namespace test{ public partial class Form3 : Form { public Form3() { InitializeComponen 阅读全文

posted @ 2010-12-23 12:33 严武 阅读(3084) 评论(1) 推荐(0) |

摘要:(1)NULLnull 关键字是表示不引用任何对象的空引用的文字值。null 是引用类型变量的默认值。那么也只有引用型的变量可以为NULL,如果int i=null,的话,是不可以的,因为Int是值类型的。(2)""和String.Empty 这两个都是表示空字符串。只不过""理论上重新开辟内存空间,而String.Empty指向一处。不过优化器会优化的! string.Empty不分配存储空间, ""分配一个长度为空的存储空间,所以一般用string.Empty,为了以后跨平台,还是用string.empty。在C# 中,大多数情况 阅读全文

posted @ 2010-12-22 11:29 严武 阅读(15859) 评论(0) 推荐(2) |

摘要:/// <summary> /// 应用程序的主入口点。 /// </summary> [STAThread] static void Main() { System.Diagnostics.Process[] ps = System.Diagnostics.Process.GetProcessesByName(System.Diagnostics.Process.GetCurrentProcess().ProcessName); if (ps.Length <= 1) ... 阅读全文

posted @ 2010-12-10 22:12 严武 阅读(300) 评论(0) 推荐(0) |

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3