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; namespace 磁性窗体的设计{ public partial class Frm_Libretto : Form { …
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; namespace magnetism{ public partial class Frm_Libretto : Form { …
查询单个值主要用于对成绩最低分,最高分,学生总数,学生性别等信息的统计 在查询单个值的时候用到了ExecuteScalar方法,连接以及语句方面,以及思路和对数据的增删改差不多 下面请看一段代码: string s = "server=.;database=SampleDb;Integrated Security=True"; SqlConnection c = new SqlConnection(s); c.Open(); SqlCommand command = new SqlCo…
可以实现窗体的 吸附 移动 分离 using System; using System.Drawing; using System.Collections.Generic; using System.Windows.Forms; namespace TinyBook { public enum MagneticLocation { Left = 0, Right = 1, Top = 2, Bottom = 3 } public enum MagneticState { Adsorben…