兰保明

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2011年8月27日

摘要: 1 DialogResult dr = ofdAddUserPicture.ShowDialog(); 2 this.picPicture.Image = Image.FromFile(ofdAddUserPicture.FileName); //显示图片 3 if (dr == DialogResult.OK) 4 { 5 user.Picture = ofdAddUserPicture.FileName; 6 } 7 ... 阅读全文
posted @ 2011-08-27 15:12 兰保明 阅读(596) 评论(0) 推荐(0) 编辑

摘要: 1.如何创建一个可改变大小没有标题栏的窗体?(How to create a form with resizing borders and no title bar?)form1.Text = string. Empty; form1.ControlBox = false;2. 如何在.NET的Windows窗体上启用XP主题集?(How to use XP Themes with Windows Forms using the .NET?)确认你的控件中FlatStyle属性已经修改为System,再修改Main方法。static void Main() { Application.Enab 阅读全文
posted @ 2011-08-27 09:41 兰保明 阅读(314) 评论(0) 推荐(0) 编辑