C#Winform存储过程的调用方法
在C#中经常要调用存储过程来实现某些功能,这里给出登录方法的存储过程和调用方法(proc_login)存储过程proc_logincreate procedure proc_Login_list@userid varchar(50),@password varchar(50),@re int outputasbegin declare @flag int set @flag=(s …… 阅读全文
在C#中经常要调用存储过程来实现某些功能,这里给出登录方法的存储过程和调用方法(proc_login)存储过程proc_logincreate procedure proc_Login_list@userid varchar(50),@password varchar(50),@re int outputasbegin declare @flag int set @flag=(s …… 阅读全文
ContextMenusStrip 和MenusStrip的区别 ContextMenusStrip 是常用语托盘的上下文菜单,MenusStrip是菜单栏 ContextMenuStripcms=newSystem.Windows.Forms.ContextMenuStrip(); …… 阅读全文
private void 窗口1ToolStripMenuItem_Click(object sender, EventArgs e) { //方式1:子窗体会重复打开 //FrmChild1 child1 = new FrmChild1(); //child1.MdiParent = this; …… 阅读全文
App.Config文件如下: private void Init() { string node = "Version"; this.labVersion.Text = ConfigurationManager.AppSettings[node].ToString(); } …… 阅读全文
下载方法: private void DownloadFile(string gl_fileid) { string sql = "select * from files where fileid='" + gl_fileid + "'"; DataTable dt = DBUtil.GetData(sql); …… 阅读全文
protected void ImportData(string filePath) { if (filePath.Length == 0) { MessageBox.Show("请选择要导入的txt文件"); } using (FileStream f …… 阅读全文