📄 form1.designer.cs
字号:
this.grpDataManipulate.Controls.Add(this.lblTotRecords);
this.grpDataManipulate.Controls.Add(this.btnLast);
this.grpDataManipulate.Controls.Add(this.btnNext);
this.grpDataManipulate.Controls.Add(this.btnPrevious);
this.grpDataManipulate.Controls.Add(this.btnFirst);
this.grpDataManipulate.Controls.Add(this.btnNoOfPages);
this.grpDataManipulate.Controls.Add(this.lblNoOfPages);
this.grpDataManipulate.Controls.Add(this.cmbNoOfRecords);
this.grpDataManipulate.Controls.Add(this.lblLoadedTable);
this.grpDataManipulate.Controls.Add(this.userDataGridView);
this.grpDataManipulate.Controls.Add(this.btnLoad);
this.grpDataManipulate.Controls.Add(this.btnDelete);
this.grpDataManipulate.Controls.Add(this.btnAdd);
this.grpDataManipulate.Controls.Add(this.btnUpdate);
this.grpDataManipulate.Location = new System.Drawing.Point(260, 12);
this.grpDataManipulate.Name = "grpDataManipulate";
this.grpDataManipulate.Size = new System.Drawing.Size(403, 450);
this.grpDataManipulate.TabIndex = 6;
this.grpDataManipulate.TabStop = false;
this.grpDataManipulate.Text = "Add, edit, delete data";
//
// lblPageNums
//
this.lblPageNums.AutoSize = true;
this.lblPageNums.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblPageNums.Location = new System.Drawing.Point(261, 424);
this.lblPageNums.Name = "lblPageNums";
this.lblPageNums.Size = new System.Drawing.Size(0, 13);
this.lblPageNums.TabIndex = 18;
//
// lblTotRecords
//
this.lblTotRecords.AutoSize = true;
this.lblTotRecords.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblTotRecords.Location = new System.Drawing.Point(234, 15);
this.lblTotRecords.Name = "lblTotRecords";
this.lblTotRecords.Size = new System.Drawing.Size(0, 13);
this.lblTotRecords.TabIndex = 10;
//
// btnLast
//
this.btnLast.Location = new System.Drawing.Point(346, 65);
this.btnLast.Name = "btnLast";
this.btnLast.Size = new System.Drawing.Size(50, 21);
this.btnLast.TabIndex = 14;
this.btnLast.Text = "L&ast";
this.btnLast.UseVisualStyleBackColor = true;
this.btnLast.Click += new System.EventHandler(this.btnLast_Click);
//
// btnNext
//
this.btnNext.Location = new System.Drawing.Point(234, 65);
this.btnNext.Name = "btnNext";
this.btnNext.Size = new System.Drawing.Size(50, 21);
this.btnNext.TabIndex = 13;
this.btnNext.Text = ">>";
this.btnNext.UseVisualStyleBackColor = true;
this.btnNext.Click += new System.EventHandler(this.btnNext_Click);
//
// btnPrevious
//
this.btnPrevious.Location = new System.Drawing.Point(122, 65);
this.btnPrevious.Name = "btnPrevious";
this.btnPrevious.Size = new System.Drawing.Size(50, 21);
this.btnPrevious.TabIndex = 12;
this.btnPrevious.Text = "<<";
this.btnPrevious.UseVisualStyleBackColor = true;
this.btnPrevious.Click += new System.EventHandler(this.btnPrevious_Click);
//
// btnFirst
//
this.btnFirst.Location = new System.Drawing.Point(10, 65);
this.btnFirst.Name = "btnFirst";
this.btnFirst.Size = new System.Drawing.Size(50, 21);
this.btnFirst.TabIndex = 11;
this.btnFirst.Text = "&First";
this.btnFirst.UseVisualStyleBackColor = true;
this.btnFirst.Click += new System.EventHandler(this.btnFirst_Click);
//
// btnNoOfPages
//
this.btnNoOfPages.Location = new System.Drawing.Point(357, 38);
this.btnNoOfPages.Name = "btnNoOfPages";
this.btnNoOfPages.Size = new System.Drawing.Size(40, 21);
this.btnNoOfPages.TabIndex = 10;
this.btnNoOfPages.Text = "&Set";
this.btnNoOfPages.UseVisualStyleBackColor = true;
this.btnNoOfPages.Click += new System.EventHandler(this.btnNoOfPages_Click);
//
// lblNoOfPages
//
this.lblNoOfPages.AutoSize = true;
this.lblNoOfPages.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblNoOfPages.Location = new System.Drawing.Point(125, 42);
this.lblNoOfPages.Name = "lblNoOfPages";
this.lblNoOfPages.Size = new System.Drawing.Size(150, 13);
this.lblNoOfPages.TabIndex = 7;
this.lblNoOfPages.Text = "No. of records per page: ";
//
// cmbNoOfRecords
//
this.cmbNoOfRecords.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbNoOfRecords.FormatString = "N2";
this.cmbNoOfRecords.FormattingEnabled = true;
this.cmbNoOfRecords.Items.AddRange(new object[] {
"15",
"25",
"35",
"45",
"55"});
this.cmbNoOfRecords.Location = new System.Drawing.Point(284, 40);
this.cmbNoOfRecords.Name = "cmbNoOfRecords";
this.cmbNoOfRecords.Size = new System.Drawing.Size(57, 20);
this.cmbNoOfRecords.TabIndex = 9;
//
// lblLoadedTable
//
this.lblLoadedTable.AutoSize = true;
this.lblLoadedTable.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblLoadedTable.Location = new System.Drawing.Point(7, 15);
this.lblLoadedTable.Name = "lblLoadedTable";
this.lblLoadedTable.Size = new System.Drawing.Size(0, 13);
this.lblLoadedTable.TabIndex = 5;
//
// grpLogo
//
this.grpLogo.Controls.Add(this.button1);
this.grpLogo.Controls.Add(this.lblName);
this.grpLogo.Controls.Add(this.picLogo);
this.grpLogo.Location = new System.Drawing.Point(12, 284);
this.grpLogo.Name = "grpLogo";
this.grpLogo.Size = new System.Drawing.Size(230, 178);
this.grpLogo.TabIndex = 7;
this.grpLogo.TabStop = false;
//
// button1
//
this.button1.Location = new System.Drawing.Point(130, 20);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 20;
this.button1.Text = "button1";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click_1);
//
// lblName
//
this.lblName.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblName.Location = new System.Drawing.Point(6, 129);
this.lblName.Name = "lblName";
this.lblName.Size = new System.Drawing.Size(199, 39);
this.lblName.TabIndex = 1;
this.lblName.Text = "Jayant D. Kulkarni Contact me: jayantdotnet@gmail.com";
//
// picLogo
//
this.picLogo.Image = global::AddEditDeleteDataGridView.Properties.Resources.Genius1;
this.picLogo.Location = new System.Drawing.Point(7, 14);
this.picLogo.Name = "picLogo";
this.picLogo.Size = new System.Drawing.Size(102, 113);
this.picLogo.TabIndex = 0;
this.picLogo.TabStop = false;
//
// Form1
//
this.AcceptButton = this.btnLoadSqlServers;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.AutoSize = true;
this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.ClientSize = new System.Drawing.Size(700, 474);
this.Controls.Add(this.grpLogo);
this.Controls.Add(this.grpDataManipulate);
this.Controls.Add(this.grpSqlServers);
this.MaximizeBox = false;
this.Name = "Form1";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Add, Edit and Delete in DataGridView";
((System.ComponentModel.ISupportInitialize)(this.userDataGridView)).EndInit();
this.grpSqlServers.ResumeLayout(false);
this.grpSqlServers.PerformLayout();
this.grpDataManipulate.ResumeLayout(false);
this.grpDataManipulate.PerformLayout();
this.grpLogo.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.picLogo)).EndInit();
this.ResumeLayout(false);
}
//改变显示的样式
//private void userDataGridView_CellFormatting(object sender,
// System.Windows.Forms.DataGridViewCellFormattingEventArgs e)
//{
// // Set the background to red for negative values in the Balance column.
// if (userDataGridView.Columns[e.ColumnIndex].Name.Equals("PHOTO"))
// {
// System.Windows.Forms.DataGridViewCell cell = this.userDataGridView.Rows[e.RowIndex].Cells[e.ColumnIndex];
// // e.Value = null;
// e.CellStyle.BackColor = System.Drawing.Color.Red;
// e.CellStyle.SelectionBackColor = System.Drawing.Color.DarkRed;
// cell.ToolTipText = "双击查看图片";
// }
//}
#endregion
private System.Windows.Forms.NotifyIcon notifyIcon1;
private System.Windows.Forms.DataGridView userDataGridView;
private System.Windows.Forms.Button btnLoad;
private System.Windows.Forms.Button btnAdd;
private System.Windows.Forms.Button btnUpdate;
private System.Windows.Forms.Button btnDelete;
private System.Windows.Forms.GroupBox grpSqlServers;
private System.Windows.Forms.ComboBox cmbSqlServers;
private System.Windows.Forms.Button btnLoadSqlServers;
private System.Windows.Forms.Label lblUserName;
private System.Windows.Forms.TextBox txtPassword;
private System.Windows.Forms.TextBox txtUserName;
private System.Windows.Forms.Button btnGetAllDataBases;
private System.Windows.Forms.Label lblPassword;
private System.Windows.Forms.ComboBox cmbAllDataBases;
private System.Windows.Forms.Button btnGetAllTables;
private System.Windows.Forms.ComboBox cmbTables;
private System.Windows.Forms.GroupBox grpDataManipulate;
private System.Windows.Forms.GroupBox grpLogo;
private System.Windows.Forms.PictureBox picLogo;
private System.Windows.Forms.Label lblLoadedTable;
private System.Windows.Forms.ProgressBar prgProgress;
private System.Windows.Forms.ComboBox cmbNoOfRecords;
private System.Windows.Forms.Label lblNoOfPages;
private System.Windows.Forms.Button btnNoOfPages;
private System.Windows.Forms.Button btnLast;
private System.Windows.Forms.Button btnNext;
private System.Windows.Forms.Button btnPrevious;
private System.Windows.Forms.Button btnFirst;
private System.Windows.Forms.Label lblTotRecords;
private System.Windows.Forms.Label lblName;
private System.Windows.Forms.Label lblPageNums;
private System.Windows.Forms.Button button1;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -