资源简介
C双色球彩票模拟抽奖、随机生成号码系统.rar

代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
//Download by http://www.codefans.net
namespace caipiao
{
public partial class AddNew : Form
{
public AddNew()
{
InitializeComponent();
}
SqlConnection conn = new SqlConnection(“ Data Source=.;Initial Catalog=caipiao;Integrated Security=True“);
private void button1_Click(object sender EventArgs e)
{
this.dateTimePicker1.Format = DateTimePickerFormat.Custom;
dateTimePicker1.CustomFormat = “yyyy年M月d日“;
conn.Open();
string sql = “insert into caipiaoku(cpidcprqonetwothreefourfivesixblue)values(‘“ + this.textBox8.Text + “‘‘“ + this.dateTimePicker1.Value + “‘‘“ + this.textBox1.Text + “‘‘“ + this.textBox2.Text + “‘‘“ + this.textBox3.Text + “‘‘“ + this.textBox4.Text + “‘‘“ + this.textBox5.Text + “‘‘“ + this.textBox6.Text + “‘‘“ + this.textBox7.Text + “‘)“;
SqlCommand scd = new SqlCommand(sql conn);
scd.ExecuteNonQuery();
conn.Close();
MessageBox.Show(“插入成功!“);
this.textBox1.Text = ““;
this.textBox2.Text = ““;
this.textBox3.Text = ““;
this.textBox4.Text = ““;
this.textBox5.Text = ““;
this.textBox6.Text = ““;
this.textBox7.Text = ““;
this.textBox8.Text = ““;
}
private void button3_Click(object sender EventArgs e)
{
this.textBox1.Text = ““;
this.textBox2.Text = ““;
this.textBox3.Text = ““;
this.textBox4.Text = ““;
this.textBox5.Text = ““;
this.textBox6.Text = ““;
this.textBox7.Text = ““;
this.textBox8.Text = ““;
}
private void button4_Click(object sender EventArgs e)
{
this.Close();
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
----------- --------- ---------- ----- ----
5453575 59
相关资源
- vspd7.2.308.zip
- 价值2k的H漫画小说系统
- Pythonamp;课堂amp;笔记(高淇amp;400;集第
- ddos压力测试工具99657
- UML建模大全
- 开源1A锂电池充电板TP4056原理图+PCB
- m1卡 ic卡可选择扇区初始化加密软件
- TSCC.exe
- FTP课程设计(服务端+客户端)
- 计算机图形学 边填充算法实现代码
- 电力系统潮流计算程序集合
- oracle数据迁移项目实施方案
- Web Api 通过文件流 文件到本地
- Visio图标-最新最全的网络通信图标库
- Spire API文档
- OpenGL参考手册
- Python中Numpy库最新教程
- SPD博士V5.3.exe
- 直流无刷电机方波驱动 stm32 例程代码
- layui后台管理模板
- 仿知乎界面小程序源代码
- 云平台-阿里云详细介绍
- photoshop经典1000例
- scratch垃圾分类源码(最终版本).sb
- IAR ARM 7.8破解
- TI CCS V5.4 安装步骤及破解文件
- 松下plc FP-XH的驱动
- 局域网硬件信息收集工具
- 加快Windows XP操作系统开机速度
- 联想启天M4350 BIOS升级文件
评论
共有 条评论