Advertisement
vvccs

EXP8&9_STUDENT_REGISTRATION_WITHSQL

Apr 13th, 2024 (edited)
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.92 KB | None | 0 0
  1. App.Config
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <configuration>
  4. <startup>
  5. <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
  6. </startup>
  7. <connectionStrings>
  8. <add name="ConnectionString" connectionString="Data Source=instance_name;Initial Catalog=webform;Integrated Security=True" providerName="System.Data.SqlClient"/>
  9. </connectionStrings>
  10. </configuration>
  11.  
  12. Form1.cs
  13.  
  14. using System;
  15. using System.Configuration;
  16. using System.Data;
  17. using System.Data.SqlClient;
  18. using System.Windows.Forms;
  19.  
  20. namespace WindowsFormsApp1
  21. {
  22. public partial class Form1 : Form
  23. {
  24. // Connection string
  25. //string connectionString = "Data Source=DESKTOP-6082S7Q;Initial Catalog=webform;Integrated Security=True";
  26. string connectionString = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
  27. public Form1()
  28. {
  29. InitializeComponent();
  30. // Set background image
  31. this.BackgroundImage = Properties.Resources.wallpaper; // Assuming the image is added to your project's resources
  32. // Optionally, set background image layout
  33. this.BackgroundImageLayout = ImageLayout.Stretch; // Adjust to your preferred layout mode
  34. }
  35. private void btnDelete_Click(object sender, EventArgs e)
  36. {
  37. if (dataGridView1.SelectedRows.Count > 0)
  38. {
  39. int selectedRowIndex = dataGridView1.SelectedRows[0].Index;
  40. int studentId = Convert.ToInt32(dataGridView1.Rows[selectedRowIndex].Cells["StudentID"].Value);
  41.  
  42. using (SqlConnection connection = new SqlConnection(connectionString))
  43. {
  44. string query = "DELETE FROM Student_Registration WHERE StudentID = @StudentID";
  45. SqlCommand command = new SqlCommand(query, connection);
  46. command.Parameters.AddWithValue("@StudentID", studentId);
  47.  
  48. try
  49. {
  50. connection.Open();
  51. int rowsAffected = command.ExecuteNonQuery();
  52. if (rowsAffected > 0)
  53. {
  54. MessageBox.Show("Data deleted successfully.");
  55. // Refresh the DataGridView after deletion
  56. btnShow_Click(sender, e);
  57. }
  58. else
  59. {
  60. MessageBox.Show("No rows were affected. Data might not have been deleted.");
  61. }
  62. }
  63. catch (Exception ex)
  64. {
  65. MessageBox.Show("Error: " + ex.Message);
  66. }
  67. }
  68. }
  69. else
  70. {
  71. MessageBox.Show("Please select a row to delete.");
  72. }
  73. }
  74. // Button click event for Insert
  75. private void btnInsert_Click(object sender, EventArgs e)
  76. {
  77. using (SqlConnection connection = new SqlConnection(connectionString))
  78. {
  79. string query = "INSERT INTO Student_Registration VALUES (@StudentID, @StudentName, @Address, @Class)";
  80. SqlCommand command = new SqlCommand(query, connection);
  81. command.Parameters.AddWithValue("@StudentID", Convert.ToInt32(txtStudentId.Text));
  82. command.Parameters.AddWithValue("@StudentName", txtStudentName.Text);
  83. command.Parameters.AddWithValue("@Address", txtAddress.Text);
  84. command.Parameters.AddWithValue("@Class", txtClass.Text);
  85.  
  86. try
  87. {
  88. connection.Open();
  89. int rowsAffected = command.ExecuteNonQuery();
  90. if (rowsAffected > 0)
  91. {
  92. MessageBox.Show("Data inserted successfully.");
  93. // Clear textboxes after successful insertion
  94. txtStudentId.Text = "";
  95. txtStudentName.Text = "";
  96. txtAddress.Text = "";
  97. txtClass.Text = "";
  98. }
  99. else
  100. {
  101. MessageBox.Show("No rows were affected. Data might not have been inserted.");
  102. }
  103. }
  104. catch (Exception ex)
  105. {
  106. MessageBox.Show("Error: " + ex.Message);
  107. }
  108. }
  109. }
  110. // Button click event for Search
  111. private void btnFind_Click(object sender, EventArgs e)
  112. {
  113. using (SqlConnection connection = new SqlConnection(connectionString))
  114. {
  115. string query = "SELECT * FROM Student_Registration WHERE StudentID = @StudentID";
  116. SqlCommand command = new SqlCommand(query, connection);
  117. command.Parameters.AddWithValue("@StudentID", Convert.ToInt32(txtSearch.Text));
  118.  
  119. try
  120. {
  121. connection.Open();
  122. SqlDataReader reader = command.ExecuteReader();
  123. // Create a DataTable to hold the fetched data
  124. DataTable dt = new DataTable();
  125. dt.Load(reader);
  126. // Assign DataTable as the DataSource for DataGridView
  127. dataGridView1.DataSource = dt;
  128.  
  129. // If no rows are returned, display a message
  130. if (dataGridView1.Rows.Count == 0)
  131. {
  132. MessageBox.Show("No matching student found.");
  133. }
  134. }
  135. catch (Exception ex)
  136. {
  137. MessageBox.Show("Error: " + ex.Message);
  138. }
  139. }
  140. }
  141. private void btnExit_Click(object sender, EventArgs e)
  142. {
  143. Application.Exit();
  144. }
  145.  
  146. private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
  147. {
  148. if (e.RowIndex >= 0)
  149. {
  150. DataGridViewRow selectedRow = dataGridView1.Rows[e.RowIndex];
  151. // Populate text fields with data from the selected row
  152. txtStudentId.Text = selectedRow.Cells["ID"].Value.ToString();
  153. txtStudentName.Text = selectedRow.Cells["StudentName"].Value.ToString();
  154. txtAddress.Text = selectedRow.Cells["Address"].Value.ToString();
  155. txtClass.Text = selectedRow.Cells["Class"].Value.ToString();
  156. }
  157. }
  158.  
  159. private void btnShow_Click(object sender, EventArgs e)
  160. {
  161. using (SqlConnection connection = new SqlConnection(connectionString))
  162. {
  163. string query = "SELECT * FROM Student_Registration";
  164. SqlCommand command = new SqlCommand(query, connection);
  165. try
  166. {
  167. connection.Open();
  168. SqlDataReader reader = command.ExecuteReader();
  169. // Create a DataTable to hold the fetched data
  170. DataTable dt = new DataTable();
  171. dt.Load(reader);
  172. // Assign DataTable as the DataSource for DataGridView
  173. dataGridView1.DataSource = dt;
  174. // If no rows are returned, display a message
  175. if (dataGridView1.Rows.Count == 0)
  176. {
  177. MessageBox.Show("No data available.");
  178. }
  179. }
  180. catch (Exception ex)
  181. {
  182. MessageBox.Show("Error: " + ex.Message);
  183. }
  184. }
  185. }
  186.  
  187. private void btnUpdate_Click(object sender, EventArgs e)
  188. {
  189. // Check if all required fields are filled
  190. if (string.IsNullOrEmpty(txtStudentId.Text) || string.IsNullOrEmpty(txtStudentName.Text) ||
  191. string.IsNullOrEmpty(txtAddress.Text) || string.IsNullOrEmpty(txtClass.Text))
  192. {
  193. MessageBox.Show("Please fill in all fields.");
  194. return;
  195. }
  196.  
  197. // Check if the student ID exists in the database
  198. int studentId;
  199. if (!int.TryParse(txtStudentId.Text, out studentId))
  200. {
  201. MessageBox.Show("Invalid student ID.");
  202. return;
  203. }
  204.  
  205. // Check if the student ID exists in the database
  206. if (!StudentExists(studentId))
  207. {
  208. MessageBox.Show("Student with ID " + studentId + " does not exist.");
  209. return;
  210. }
  211.  
  212. // Perform the update operation
  213. using (SqlConnection connection = new SqlConnection(connectionString))
  214. {
  215. string query = "UPDATE Student_Registration SET StudentName = @StudentName, Address = @Address, Class = @Class WHERE StudentID = @StudentID";
  216. SqlCommand command = new SqlCommand(query, connection);
  217. command.Parameters.AddWithValue("@StudentID", studentId);
  218. command.Parameters.AddWithValue("@StudentName", txtStudentName.Text);
  219. command.Parameters.AddWithValue("@Address", txtAddress.Text);
  220. command.Parameters.AddWithValue("@Class", txtClass.Text);
  221. try
  222. {
  223. connection.Open();
  224. int rowsAffected = command.ExecuteNonQuery();
  225. if (rowsAffected > 0)
  226. {
  227. MessageBox.Show("Data updated successfully.");
  228. }
  229. else
  230. {
  231. MessageBox.Show("No rows were affected. Data might not have been updated.");
  232. }
  233. }
  234. catch (Exception ex)
  235. {
  236. MessageBox.Show("Error: " + ex.Message);
  237. }
  238. }
  239. }
  240.  
  241. // Helper method to check if a student with the given ID exists in the database
  242. private bool StudentExists(int studentId)
  243. {
  244. using (SqlConnection connection = new SqlConnection(connectionString))
  245. {
  246. string query = "SELECT COUNT(*) FROM Student_Registration WHERE StudentID = @StudentID";
  247. SqlCommand command = new SqlCommand(query, connection);
  248. command.Parameters.AddWithValue("@StudentID", studentId);
  249.  
  250. try
  251. {
  252. connection.Open();
  253. int count = (int)command.ExecuteScalar();
  254. return count > 0;
  255. }
  256. catch (Exception)
  257. {
  258. return false;
  259. }
  260. }
  261. }
  262.  
  263.  
  264.  
  265. }
  266.  
  267. }
  268.  
  269.  
  270.  
  271. Form1.Designer.cs
  272. using System;
  273. using System.Data.SqlClient;
  274. using System.Windows.Forms;
  275.  
  276. namespace WindowsFormsApp1
  277. {
  278. partial class Form1
  279. {
  280. /// <summary>
  281. /// Required designer variable.
  282. /// </summary>
  283. private System.ComponentModel.IContainer components = null;
  284.  
  285. /// <summary>
  286. /// Clean up any resources being used.
  287. /// </summary>
  288. /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
  289. protected override void Dispose(bool disposing)
  290. {
  291. if (disposing && (components != null))
  292. {
  293. components.Dispose();
  294. }
  295. base.Dispose(disposing);
  296. }
  297.  
  298. #region Windows Form Designer generated code
  299.  
  300. /// <summary>
  301. /// Required method for Designer support - do not modify
  302. /// the contents of this method with the code editor.
  303. /// </summary>
  304. private void InitializeComponent()
  305. {
  306. this.lblStudentId = new System.Windows.Forms.Label();
  307. this.txtStudentId = new System.Windows.Forms.TextBox();
  308. this.lblStudentName = new System.Windows.Forms.Label();
  309. this.txtStudentName = new System.Windows.Forms.TextBox();
  310. this.lblAddress = new System.Windows.Forms.Label();
  311. this.txtAddress = new System.Windows.Forms.TextBox();
  312. this.lblClass = new System.Windows.Forms.Label();
  313. this.txtClass = new System.Windows.Forms.TextBox();
  314. this.btnInsert = new System.Windows.Forms.Button();
  315. this.btnUpdate = new System.Windows.Forms.Button();
  316. this.btnDelete = new System.Windows.Forms.Button();
  317. this.btnShow = new System.Windows.Forms.Button();
  318. this.btnExit = new System.Windows.Forms.Button();
  319. this.lblSearch = new System.Windows.Forms.Label();
  320. this.txtSearch = new System.Windows.Forms.TextBox();
  321. this.btnFind = new System.Windows.Forms.Button();
  322. this.dataGridView1 = new System.Windows.Forms.DataGridView();
  323. this.label1 = new System.Windows.Forms.Label();
  324. ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
  325. this.SuspendLayout();
  326. //
  327. // lblStudentId
  328. //
  329. this.lblStudentId.BackColor = System.Drawing.Color.Transparent;
  330. this.lblStudentId.Font = new System.Drawing.Font("Times New Roman", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  331. this.lblStudentId.ForeColor = System.Drawing.Color.WhiteSmoke;
  332. this.lblStudentId.Location = new System.Drawing.Point(20, 71);
  333. this.lblStudentId.Name = "lblStudentId";
  334. this.lblStudentId.Size = new System.Drawing.Size(100, 20);
  335. this.lblStudentId.TabIndex = 0;
  336. this.lblStudentId.Text = "Student ID:";
  337. //
  338. // txtStudentId
  339. //
  340. this.txtStudentId.Location = new System.Drawing.Point(153, 71);
  341. this.txtStudentId.Name = "txtStudentId";
  342. this.txtStudentId.Size = new System.Drawing.Size(200, 20);
  343. this.txtStudentId.TabIndex = 1;
  344. //
  345. // lblStudentName
  346. //
  347. this.lblStudentName.BackColor = System.Drawing.Color.Transparent;
  348. this.lblStudentName.Font = new System.Drawing.Font("Times New Roman", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  349. this.lblStudentName.ForeColor = System.Drawing.Color.WhiteSmoke;
  350. this.lblStudentName.Location = new System.Drawing.Point(20, 111);
  351. this.lblStudentName.Name = "lblStudentName";
  352. this.lblStudentName.Size = new System.Drawing.Size(100, 20);
  353. this.lblStudentName.TabIndex = 2;
  354. this.lblStudentName.Text = "Student Name:";
  355. //
  356. // txtStudentName
  357. //
  358. this.txtStudentName.Location = new System.Drawing.Point(153, 111);
  359. this.txtStudentName.Name = "txtStudentName";
  360. this.txtStudentName.Size = new System.Drawing.Size(200, 20);
  361. this.txtStudentName.TabIndex = 3;
  362. //
  363. // lblAddress
  364. //
  365. this.lblAddress.BackColor = System.Drawing.Color.Transparent;
  366. this.lblAddress.Font = new System.Drawing.Font("Times New Roman", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  367. this.lblAddress.ForeColor = System.Drawing.Color.WhiteSmoke;
  368. this.lblAddress.Location = new System.Drawing.Point(20, 155);
  369. this.lblAddress.Name = "lblAddress";
  370. this.lblAddress.Size = new System.Drawing.Size(100, 20);
  371. this.lblAddress.TabIndex = 4;
  372. this.lblAddress.Text = "Address:";
  373. //
  374. // txtAddress
  375. //
  376. this.txtAddress.Location = new System.Drawing.Point(153, 155);
  377. this.txtAddress.Name = "txtAddress";
  378. this.txtAddress.Size = new System.Drawing.Size(200, 20);
  379. this.txtAddress.TabIndex = 5;
  380. //
  381. // lblClass
  382. //
  383. this.lblClass.BackColor = System.Drawing.Color.Transparent;
  384. this.lblClass.Font = new System.Drawing.Font("Times New Roman", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  385. this.lblClass.ForeColor = System.Drawing.Color.WhiteSmoke;
  386. this.lblClass.Location = new System.Drawing.Point(20, 196);
  387. this.lblClass.Name = "lblClass";
  388. this.lblClass.Size = new System.Drawing.Size(100, 20);
  389. this.lblClass.TabIndex = 6;
  390. this.lblClass.Text = "Class:";
  391. //
  392. // txtClass
  393. //
  394. this.txtClass.Location = new System.Drawing.Point(153, 196);
  395. this.txtClass.Name = "txtClass";
  396. this.txtClass.Size = new System.Drawing.Size(200, 20);
  397. this.txtClass.TabIndex = 7;
  398. //
  399. // btnInsert
  400. //
  401. this.btnInsert.BackColor = System.Drawing.Color.Black;
  402. this.btnInsert.FlatAppearance.BorderColor = System.Drawing.Color.White;
  403. this.btnInsert.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
  404. this.btnInsert.ForeColor = System.Drawing.Color.White;
  405. this.btnInsert.Location = new System.Drawing.Point(23, 279);
  406. this.btnInsert.Name = "btnInsert";
  407. this.btnInsert.Size = new System.Drawing.Size(75, 23);
  408. this.btnInsert.TabIndex = 8;
  409. this.btnInsert.Text = "Insert";
  410. this.btnInsert.UseVisualStyleBackColor = false;
  411. this.btnInsert.Click += new System.EventHandler(this.btnInsert_Click);
  412. //
  413. // btnUpdate
  414. //
  415. this.btnUpdate.BackColor = System.Drawing.Color.Black;
  416. this.btnUpdate.FlatAppearance.BorderColor = System.Drawing.Color.White;
  417. this.btnUpdate.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
  418. this.btnUpdate.ForeColor = System.Drawing.Color.White;
  419. this.btnUpdate.Location = new System.Drawing.Point(153, 279);
  420. this.btnUpdate.Name = "btnUpdate";
  421. this.btnUpdate.Size = new System.Drawing.Size(75, 23);
  422. this.btnUpdate.TabIndex = 9;
  423. this.btnUpdate.Text = "Update";
  424. this.btnUpdate.UseVisualStyleBackColor = false;
  425. this.btnUpdate.Click += new System.EventHandler(this.btnUpdate_Click);
  426. //
  427. // btnDelete
  428. //
  429. this.btnDelete.BackColor = System.Drawing.Color.Black;
  430. this.btnDelete.FlatAppearance.BorderColor = System.Drawing.Color.White;
  431. this.btnDelete.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
  432. this.btnDelete.ForeColor = System.Drawing.Color.White;
  433. this.btnDelete.Location = new System.Drawing.Point(278, 279);
  434. this.btnDelete.Name = "btnDelete";
  435. this.btnDelete.Size = new System.Drawing.Size(75, 23);
  436. this.btnDelete.TabIndex = 10;
  437. this.btnDelete.Text = "Delete";
  438. this.btnDelete.UseVisualStyleBackColor = false;
  439. this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
  440. //
  441. // btnShow
  442. //
  443. this.btnShow.BackColor = System.Drawing.Color.Black;
  444. this.btnShow.FlatAppearance.BorderColor = System.Drawing.Color.White;
  445. this.btnShow.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
  446. this.btnShow.ForeColor = System.Drawing.Color.White;
  447. this.btnShow.Location = new System.Drawing.Point(87, 339);
  448. this.btnShow.Name = "btnShow";
  449. this.btnShow.Size = new System.Drawing.Size(75, 23);
  450. this.btnShow.TabIndex = 11;
  451. this.btnShow.Text = "Show";
  452. this.btnShow.UseVisualStyleBackColor = false;
  453. this.btnShow.Click += new System.EventHandler(this.btnShow_Click);
  454. //
  455. // btnExit
  456. //
  457. this.btnExit.BackColor = System.Drawing.Color.Black;
  458. this.btnExit.FlatAppearance.BorderColor = System.Drawing.Color.White;
  459. this.btnExit.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
  460. this.btnExit.ForeColor = System.Drawing.Color.White;
  461. this.btnExit.Location = new System.Drawing.Point(219, 339);
  462. this.btnExit.Name = "btnExit";
  463. this.btnExit.Size = new System.Drawing.Size(75, 23);
  464. this.btnExit.TabIndex = 12;
  465. this.btnExit.Text = "Exit";
  466. this.btnExit.UseVisualStyleBackColor = false;
  467. this.btnExit.Click += new System.EventHandler(this.btnExit_Click);
  468. //
  469. // lblSearch
  470. //
  471. this.lblSearch.BackColor = System.Drawing.Color.Transparent;
  472. this.lblSearch.Font = new System.Drawing.Font("Times New Roman", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  473. this.lblSearch.ForeColor = System.Drawing.Color.WhiteSmoke;
  474. this.lblSearch.Location = new System.Drawing.Point(394, 71);
  475. this.lblSearch.Name = "lblSearch";
  476. this.lblSearch.Size = new System.Drawing.Size(55, 20);
  477. this.lblSearch.TabIndex = 13;
  478. this.lblSearch.Text = "Search:";
  479. //
  480. // txtSearch
  481. //
  482. this.txtSearch.Location = new System.Drawing.Point(455, 68);
  483. this.txtSearch.Name = "txtSearch";
  484. this.txtSearch.Size = new System.Drawing.Size(258, 20);
  485. this.txtSearch.TabIndex = 14;
  486. //
  487. // btnFind
  488. //
  489. this.btnFind.Location = new System.Drawing.Point(719, 66);
  490. this.btnFind.Name = "btnFind";
  491. this.btnFind.Size = new System.Drawing.Size(50, 23);
  492. this.btnFind.TabIndex = 15;
  493. this.btnFind.Text = "Find";
  494. this.btnFind.Click += new System.EventHandler(this.btnFind_Click);
  495. //
  496. // dataGridView1
  497. //
  498. this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
  499. this.dataGridView1.Location = new System.Drawing.Point(397, 111);
  500. this.dataGridView1.Name = "dataGridView1";
  501. this.dataGridView1.Size = new System.Drawing.Size(391, 210);
  502. this.dataGridView1.TabIndex = 16;
  503. this.dataGridView1.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellContentClick);
  504. //
  505. // label1
  506. //
  507. this.label1.AutoSize = true;
  508. this.label1.BackColor = System.Drawing.Color.Transparent;
  509. this.label1.Font = new System.Drawing.Font("Times New Roman", 20.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  510. this.label1.ForeColor = System.Drawing.Color.WhiteSmoke;
  511. this.label1.ImageAlign = System.Drawing.ContentAlignment.TopCenter;
  512. this.label1.Location = new System.Drawing.Point(229, 9);
  513. this.label1.Name = "label1";
  514. this.label1.Size = new System.Drawing.Size(345, 31);
  515. this.label1.TabIndex = 17;
  516. this.label1.Text = "Student Registration System";
  517. this.label1.TextAlign = System.Drawing.ContentAlignment.TopCenter;
  518. //
  519. // Form1
  520. //
  521. this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
  522. this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
  523. this.ClientSize = new System.Drawing.Size(800, 450);
  524. this.Controls.Add(this.label1);
  525. this.Controls.Add(this.dataGridView1);
  526. this.Controls.Add(this.lblStudentId);
  527. this.Controls.Add(this.txtStudentId);
  528. this.Controls.Add(this.lblStudentName);
  529. this.Controls.Add(this.txtStudentName);
  530. this.Controls.Add(this.lblAddress);
  531. this.Controls.Add(this.txtAddress);
  532. this.Controls.Add(this.lblClass);
  533. this.Controls.Add(this.txtClass);
  534. this.Controls.Add(this.btnInsert);
  535. this.Controls.Add(this.btnUpdate);
  536. this.Controls.Add(this.btnDelete);
  537. this.Controls.Add(this.btnShow);
  538. this.Controls.Add(this.btnExit);
  539. this.Controls.Add(this.lblSearch);
  540. this.Controls.Add(this.txtSearch);
  541. this.Controls.Add(this.btnFind);
  542. this.Name = "Form1";
  543. this.Text = "Student Registration Form";
  544. ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
  545. this.ResumeLayout(false);
  546. this.PerformLayout();
  547.  
  548. }
  549.  
  550. #endregion
  551.  
  552. private System.Windows.Forms.Label lblStudentId;
  553. private System.Windows.Forms.TextBox txtStudentId;
  554. private System.Windows.Forms.Label lblStudentName;
  555. private System.Windows.Forms.TextBox txtStudentName;
  556. private System.Windows.Forms.Label lblAddress;
  557. private System.Windows.Forms.TextBox txtAddress;
  558. private System.Windows.Forms.Label lblClass;
  559. private System.Windows.Forms.TextBox txtClass;
  560. private System.Windows.Forms.Button btnUpdate;
  561. private System.Windows.Forms.Button btnDelete;
  562. private System.Windows.Forms.Button btnShow;
  563. private System.Windows.Forms.Button btnExit;
  564. private System.Windows.Forms.Label lblSearch;
  565. private System.Windows.Forms.TextBox txtSearch;
  566. private System.Windows.Forms.Button btnFind;
  567. private Button btnInsert;
  568. private DataGridView dataGridView1;
  569. private Label label1;
  570. }
  571. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement