c#-System.Windows.Forms.Time-简单实验
2025/3/27 10:28:04 39KB Time
1
usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Text;usingSystem.Windows.Forms;namespaceQuickSort{publicpartialclassForm1:Form{publicForm1(){InitializeComponent();}
1
这是一个比较复杂的数据库包含图书管理借书还书学生管理老师管理和数据连接的相关应用代码有详细的解释压缩包里面也有数据库的文件代码里设置的数据库用户是sa密码是123456请使用的时候做相关的修改下面给出一部分的代码请继续关注本资源的发布会后面有很多实用的代码上传usingSystem.Windows.Forms;namespaceLibraryMis{publicclassDatabaseAccess{/*声明成员变量,这样这个类中的所有方法就可是使用这些变量了*/privateSqlConnectionmyConnection;privateSqlCommandmyCommand;privateSqlDataAdaptermyDataAdapter;privateDataSetmySet=newDataSet();/*写该类的构造方法,该方法名要跟类名相同,无返回值*当new这个类时就会执行这个构造方法*/publicDatabaseAccess(){/*获得保存连接字符串的文件名及路径*///获得应用程序路径stringexePath=AppDomain.CurrentDomain.SetupInformation.ApplicationBase;//根据路径和文件名构建FileInfo对象stringfileName=exePath+"connectionString.txt";//建立FileInfo对象FileInfof=newFileInfo(fileName);//判断该文件是否存在if(f.Exists)//文件存在{//获得文件内容即存在文件中的连接字符串//打开文件,获得读文件的数据流对象StreamReadersr=f.OpenText();//读文件到变量中stringconnectionString=sr.ReadToEnd();//关闭流sr.Close();//由读出的连接字符串创建Connection对象myConnection=newSqlConnection(connectionString);//由Connection对象创建Command对象myCommand=myConnection.CreateCommand();//创建DataAdapter对象myDataAdapter=newSqlDataAdapter();myDataAdapter.SelectCommand=myCommand;//创建CommandBuilder对象SqlCommandBuildercb=newSqlCommandBuilder(myDataAdapter);//尝试是否能够打开连接try{myConnection.Open();}catch(Exceptionex)//打开连接出错,可能是连接字符串有问题,这里调用数据库访问设置窗体来重新设置服务器名和数据库名{M
2025/1/10 9:04:41 737KB winform c# sql 数据库的使用
1
System.Windows.Forms.Timer引用
2024/11/10 18:57:31 1.56MB Timer.dll
1
CrystalDecisions.Windows.Forms包含了9.0-13.0的dll文件
3.54MB Forms
1
usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.Data.SqlClient;namespace图书管理系统{publicpartialclass登录窗口:Form{//publicstaticstringConnectionString="Server=(local);database=图书管理库;uid=sa;pwd=1234";//sqlserver混合模式//publicstaticstringConnectionString="Server=(local);IntegratedSecurity=SSPI;database=图书管理库";//windows模式publicstringstrSQL;publicSqlConnectionmyConnection;publicSqlCommandBuildersqlCmdBld;publicDataSetds=newDataSet();publicSqlDataAdapterda;publicintnum=0;privateDataTablemyTable;privateDataRowmyRow;publicstaticstringstrUser;publicstaticstringstrPassword;//publicstaticstringstrDepartment;publicstaticboollogin_flag=false;public登录窗口(){InitializeComponent();}privatevoidbutton2_Click(objectsender,EventArgse){Close();}privatevoid登录窗口_Load(objectsender,EventArgse){linkdatabaselink=newlinkdatabase();//实例化myConnection=newSqlConnection(link.connectionstring());//实例化连接strSQL="select*from用户表";da=newSqlDataAdapter(strSQL,myConnection);ds.Clear();da.Fill(ds,"用户表");//////动作myTable=ds.Tables["用户表"];for(inti=0;i<myTable.Rows.Count;i++){comboBox1.Items.Add(myTable.Rows[i]["用户名"].ToString().Trim());}}privatevoidbutton1_Click(objectsender,EventArgse){linkdatabaselink=newlinkdatabase();//实例化myConnection=newSqlConnection(link.connectionstring());//实例化连接strSQL="sele
2024/8/20 10:41:13 7.26MB 管理
1
c#对并口的读写操作!INPOUT32.DLLusingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.Runtime.InteropServices;namespaceIED_Application{publicpartialclassIED:Form{//intled=0x278;[DllImport("inpout32.dll",EntryPoint="Out32")]publicstaticexternvoidOutput(intadress,intvalue);[DllImport("user32.dll",EntryPoint="MessageBoxA")]publicstaticexternvoidMsgBox(inthWnd,stringmsg,stringcaption,inttype);publicIED(){InitializeComponent();}privatevoidIED_Load(objectsender,EventArgse){}privatevoidoutput_Click(objectsender,EventArgse){MsgBox(0,"这里是用DllImport","tiaozhanbei",0x30);IED.Output(888,253);}}}
2024/7/19 7:04:44 499KB c# 并口
1
System.Windows.Forms.DataVisualization.dll3.5版本
2024/3/21 21:18:10 1.67MB DLL 3.5
1
DotNetBar+for+Windows+Forms+12.5.0.2支持VS2013以上版本,亲测可用
2024/3/19 8:28:04 93.07MB DotNetBar Windows Forms 12.5.0.2
1
C#.net实现学生成绩管理系统namespace学生成绩管理系统{partialclassFormlogin{//////必需的设计器变量。
///privateSystem.ComponentModel.IContainercomponents=null;//////清理所有正在使用的资源。
//////如果应释放托管资源,为true;
否则为false。
protectedoverridevoidDispose(booldisposing){if(disposing&&(components!=null)){components.Dispose();}base.Dispose(disposing);}#regionWindows窗体设计器生成的代码//////设计器支持所需的方法-不要///使用代码编辑器修改此方法的内容。
///privatevoidInitializeComponent(){this.labeluser=newSystem.Windows.Forms.Label();this.textBoxuser=newSystem.Windows.Forms.TextBox();this.labelcode=newSystem.Windows.Forms.Label();this.textBoxcode=newSystem.Windows.Forms.TextBox();this.buttonin=newSystem.Windows.Forms.Button();this.buttonout=newSystem.Windows.Forms.Button();this.SuspendLayout();////labeluser//this.labeluser.Font=newSystem.Drawing.Font("宋体",10.5F,System.Drawing.FontStyle.Regular,System.Drawing.GraphicsUnit.Point,((byte)(134)));this.labeluser.Location=newSystem.Drawing.Point(31,50);this.labeluser.Name="labeluser";this.labeluser.Size=newSystem.Drawing.Size(55,26);this.labeluser.TabIndex=0;this.labeluser.Text="用户名";this.labeluser.TextAlign=System.Drawing.ContentAlignment.MiddleCenter;////textBoxuser//this.textBoxuser.Location=newSystem.Drawing.Point(126,55);this.textBoxuser.Name="textBoxuser";this.textBoxuser.Size=newSystem.Drawing.S
2024/3/13 12:24:54 257KB 学生成绩管理系统(C#)
1
共 25 条记录 首页 上一页 下一页 尾页
在日常工作中,钉钉打卡成了我生活中不可或缺的一部分。然而,有时候这个看似简单的任务却给我带来了不少烦恼。 每天早晚,我总是得牢记打开钉钉应用,点击"工作台",再找到"考勤打卡"进行签到。有时候因为工作忙碌,会忘记打卡,导致考勤异常,影响当月的工作评价。而且,由于我使用的是苹果手机,有时候系统更新后,钉钉的某些功能会出现异常,使得打卡变得更加麻烦。 另外,我的家人使用的是安卓手机,他们也经常抱怨钉钉打卡的繁琐。尤其是对于那些不太熟悉手机操作的长辈来说,每次打卡都是一次挑战。他们总是担心自己会操作失误,导致打卡失败。 为了解决这些烦恼,我开始思考是否可以通过编写一个全自动化脚本来实现钉钉打卡。经过一段时间的摸索和学习,我终于成功编写出了一个适用于苹果和安卓系统的钉钉打卡脚本。
2024-04-09 15:03 15KB 钉钉 钉钉打卡