木落长安rr

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

随笔分类 -  C#

摘要:1)窗口去除边框 在组件属性中FormBorderStyle设为None 2)窗口随着鼠标移动而动 添加引用using System.Runtime.InteropServices; 在初始化控件{InitializeComponent();}代码后添加 3)窗口居中显示 利用C# Form中的St 阅读全文
posted @ 2019-06-21 16:49 木落长安rr 阅读(7608) 评论(0) 推荐(0)

摘要:this.FormBorderStyle = FormBorderStyle.FixedDialog;//设置边框为不可调节 this.MaximizeBox = false;//取消最大化按键 this.MinimizeBox = false;//取消最小化按键 阅读全文
posted @ 2019-05-10 15:29 木落长安rr 阅读(3643) 评论(0) 推荐(1)

摘要:使用系统API函数,需要使用命名空间:System.Runtime.InteropServices; 1.if (textBoxPath.Text == String.Empty ) 2.if (textBoxPath.Text == "" ) 3.if (String.IsNullOrEmpty( 阅读全文
posted @ 2019-04-09 19:35 木落长安rr 阅读(12884) 评论(0) 推荐(0)