摘要:
using System;using System.Windows.Forms;using System.Runtime.InteropServices;//窗体效果需要该包 namespace 软件项目管理系统{ public partial class LoginForm : Form { // 阅读全文
摘要:
private void Form1_Load(object sender, EventArgs e) { RegistryKey reg = Registry.CurrentUser.CreateSubKey("SoftWare\\MySoft"); int x = Convert.ToInt32 阅读全文
摘要:
把Form的KeyPreview设为true然后设置KeyDown,KeyUp或KeyPress事件。在KeyDown事件中截获。private void textBox1_KeyDown(object sender, KeyEventArgs e){ if (e.KeyCode == Keys.E 阅读全文
摘要:
private const int WS_HSCROLL = 0x100000; private const int WS_VSCROLL = 0x200000; private const int GWL_STYLE = (-16); [System.Runtime.InteropServices 阅读全文
摘要:
//设置对话框的过滤条件 ofdSelectPic.Filter = "png文件(*.png)|*.png|jpg 文件(*.jpg)|*.jpg|所有文件(*.*)|*.*"; ofdSelectPic.Title = "打开图片"; ofdSelectPic.FilterIndex = 2; 阅读全文