|
Recently, I am learning the classics of c # .Because I am a novice, I follow the steps in the textbook.
When you learn about data binding-> add a data source to your application,
Add data-bound controls to the form: Three controls were pulled in the data source directly bound to the form designer
But when I press F5 to run, there are always two errors. It stands to reason that the code directly generated by pulling the control will not cause any problems (the errors are marked)
I beg prawns to help correct it, thank you very much!
Here is the code:
namespace gettingdata
{
partial class gettingdata
{
/// <summary>
/// Required designer variables.
/// </ summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up all resources in use.
/// </ summary>
/// <param name = "disposing"> true if the managed resource should be released; otherwise, false. </ param>
protected override void Dispose (bool disposing)
{
if (disposing&&(components! = null))
{
components.Dispose ();
}
base.Dispose (disposing);
}
#region Windows Form Designer Generated Code
/// <summary>
/// designer supports required methods-don't
/// Use a code editor to modify the contents of this method.
/// </ summary>
private void InitializeComponent ()
{
this.components = new System.ComponentModel.Container ();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager (typeof (gettingdata));
System.Windows.Forms.Label pATIENT_IDLabel;
System.Windows.Forms.Label pATIENT_NAMELabel;
System.Windows.Forms.Label nAME_PHONETICLabel;
this.dataSet3 = new gettingdata.DataSet3 ();
// Where it went wrong, the prompt is that the type name "DataSet3" does not exist in gettingdata.gettingdata
this.wORKLISTBindingSource = new System.Windows.Forms.BindingSource (this.components);
this.wORKLISTTableAdapter = new
gettingdata.DataSet3TableAdapters.WORKLISTTableAdapter ();
// Where it went wrong, the prompt is that the type name "DataSet3TableAdapters does not exist in gettingdata.gettingdata
this.wORKLISTBindingNavigator = new System.Windows.Forms.BindingNavigator (this.components);
this.bindingNavigatorAddNewItem = new System.Windows.Forms.ToolStripButton ();
this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel ();
this.bindingNavigatorDeleteItem = new System.Windows.Forms.ToolStripButton ();
.........
........ |
|