- 分享
- 0
- 人气
- 0
- 主题
- 1
- 帖子
- 1084
- UID
- 130560
- 积分
- 356
- 阅读权限
- 15
- 注册时间
- 2008-3-17
- 最后登录
- 2014-6-26
- 在线时间
- 1505 小时
|
本帖最后由 mickyen 于 2010-4-11 05:31 PM 编辑
当我选A003...
debug error...
为什么会有这样问题出现?请各位大大解决我的问题
database
data sheet view..
design view
===========form1.cs===========
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace vintage_style
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void exitToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Close();
}
private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
{
AboutBox1 aAboutBox = new AboutBox1();
aAboutBox.ShowDialog();
}
private void stockToolStripMenuItem_Click(object sender, EventArgs e)
{
stock aStock = new stock();
aStock.ShowDialog();
}
}
===================================
==========stock=========================
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace vintage_style
{
public partial class stock : Form
{
public stock()
{
InitializeComponent();
}
private void Backbutton_Click(object sender, EventArgs e)
{
this.Close();
}
private void pictureBox1_Click(object sender, EventArgs e)
{
shirt ashirt = new shirt();
ashirt.ShowDialog();
}
private void stock_Load(object sender, EventArgs e)
{
}
}
}
===============================
=======shirt.cs==================
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace vintage_style
{
public partial class shirt : Form
{
public shirt()
{
InitializeComponent();
}
private void shirt_Load(object sender, EventArgs e)
{
// TODO: This line of code loads data into the 'boutiqueDataSet.T_shirt_stock' table. You can move, or remove it, as needed.
this.t_shirt_stockTableAdapter.Fill(this.boutiqueDataSet.T_shirt_stock);
// TODO: This line of code loads data into the 'boutiqueDataSet.T_shirt_stock' table. You can move, or remove it, as needed.
this.t_shirt_stockTableAdapter.Fill(this.boutiqueDataSet.T_shirt_stock);
this.t_shirt_stockTableAdapter.Fill(this.boutiqueDataSet.T_shirt_stock);
}
private void fillByToolStripButton_Click(object sender, EventArgs e)
{
}
private void fillBy1ToolStripButton_Click(object sender, EventArgs e)
{
}
private void t_shirt_stockBindingNavigatorSaveItem_Click(object sender, EventArgs e)
{
this.Validate();
this.t_shirt_stockBindingSource.EndEdit();
this.tableAdapterManager.UpdateAll(this.boutiqueDataSet);
}
private void fillByToolStripButton_Click_1(object sender, EventArgs e)
{
try
{
this.t_shirt_stockTableAdapter.FillBy(this.boutiqueDataSet.T_shirt_stock);
}
catch (System.Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message);
}
}
}
}
============================================ |
|