资源简介
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
相关资源
- GroupingView_src.zip
- 国际地球自转和参考系统技术通知第
- 网站整站器.rar
- 星载双频软件GPS接收机研究.kdh
- 运动员最佳匹配问题.zip
- RtmpClient.rar
- get06.19.rar
- IP数据包的捕获于分析.rar
- Hive简介(1).ppt
- 电脑鼠转弯算法.pdf
- jjmm2009_6938107.zip
- ZLGCAN_labview.zip
-
CarrierFrequencySynchronizationintheDownli
n - 线性系统答案.zip
- nrf905KB-1B-1BV3.42.zip
- 滑动窗口协议.zip
- 九宫格源代码八数码算法VC实现.rar
- 985高校204套电子电气专业课题设计、
- 基于单片机的直流电机PWM调速控制系
- 计算机专业复试面试经典问题(含答
- libstdc-devel-4.4.7-4.el6.x86_64.rpm
- ImageEditDemo.zip
- 20170508095032398.rar
- Saber软件.rar
- txt(5)
- httpclient-4.5.3.CHM
- 计150326周艺最新版本.zip
- 基于RFID的学生门禁系统C源码、说明文
- 信息安全技术_网络安全等级保护基本
- 16G101-1图集CAD版.dwg
评论
共有 条评论