
winForm 窗体单例 (底层显示到上层,任务栏显示出来)
以下核心代码public static Form frm;private void button1_Click(object sender, EventArgs e){ if (frm == null || string.IsNullOrEmpty(frm.Text)) { frm = new Form2(); frm.Show(); } else { frm.WindowState = FormWind…
以下核心代码public static Form frm;private void button1_Click(object sender, EventArgs e){ if (frm == null || string.IsNullOrEmpty(frm.Text)) { frm = new Form2(); frm.Show(); } else { frm.WindowState = FormWind…
下面效果图是设置某行背景颜色和某Cells字体颜色下面是核心代码 public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { this.dataGridView1.Da…
效果图下拉框设置核心代码using DevExpress.XtraEditors;using System;using System.Collections.Generic;namespace DXApplication1{ public partial class Form1 : DevExpress.XtraEditors.XtraForm { public Form1() { InitializeCo…