![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#学习
skulltank
这个作者很懒,什么都没留下…
展开
-
C#带参事件
```csharpusing System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApp1{ class Program { static void Main(string[] args) { 顾客类 顾客 = new 顾客类();//新建顾客 服务员类 服务员 = new 服.原创 2022-05-02 14:08:52 · 652 阅读 · 0 评论 -
【无标题】
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace RotateImage{ [DefaultEvent("pictureBox1.Click")] public partial class U原创 2022-03-28 21:45:20 · 291 阅读 · 0 评论 -
menuscrip 遍历
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;namespace WindowsFormsApplication1{ p转载 2021-08-04 17:47:36 · 205 阅读 · 0 评论 -
将dataGridView数据转成DataTable
如已绑定过数据源:DataTable dt = (dataGridView1.DataSource as DataTable)如未绑定过数据源: public DataTable GetDgvToTable(DataGridView dgv) { DataTable dt = new DataTable(); // 列强制转换 for (int count = 0; count < dgv.Column转载 2021-07-04 08:55:21 · 1502 阅读 · 0 评论 -
C# 批量添加控件
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;namespace WindowsFormsApp7{ public .原创 2021-04-23 21:41:09 · 821 阅读 · 0 评论 -
C# mysql和dataGridView1
string connstr = "data source=localhost;database=ceshi;user id=root;password=guoteng;pooling=false;charset=utf8"; MySqlConnection conn = new MySqlConnection(connstr); string sql = "select * from sheet1"; // MySqlCommand原创 2021-04-19 18:18:26 · 144 阅读 · 0 评论 -
实现图片放大缩小和移动 C#
目标:实现图片放大缩小和移动using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;using System.Drawing.Imagi转载 2021-04-13 21:59:51 · 1751 阅读 · 0 评论 -
C# 用窗体的名字Name打开窗体
C# 用窗体的名字Name打开窗体新建2个窗体Form1,Form2Form1中创建1个按钮,按钮的text填入Form2双击按钮写入using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Reflection;using System.Text;us原创 2021-04-12 21:10:09 · 1206 阅读 · 0 评论