Question: Have a problem with this c# windows form button on my project. I have to turn this in on Saturday and I have worked on

Have a problem with this c# windows form button on my project. I have to turn this in on Saturday and I have worked on this and cannot get this to work.

Have a problem with this c# windows form button on my project.

I have to turn this in on Saturday and I have worked

on this and cannot get this to work. using System; using System.Collections.Generic;

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Data.SqlClient; using System.Configuration;

namespace AnticSoftware_T4 { public partial class enrollastudentinaCourseForm : Form

{ string connectionString; SqlConnection conn; public enrollastudentinaCourseForm() { InitializeComponent(); connectionString = ConfigurationManager.ConnectionStrings[ "AnticSoftware_T4.Properties.Settings.TinyCollegeDBConnectionString"] .ConnectionString; }

private void closeButton_Click(object sender, EventArgs e) { Close(); }

private void enrollastudentinaCourse_Load(object sender, EventArgs e) { using (conn = new SqlConnection(connectionString)) using (SqlDataAdapter adapter = new SqlDataAdapter ("SELECT * FROM student", conn)) { DataTable studentTable = new DataTable(); adapter.Fill(studentTable); selectaStudentComboBox.DisplayMember = "studentName"; selectaStudentComboBox.DataSource = studentTable; } }

private void selectaStudentComboBox_SelectedIndexChanged(object sender, EventArgs e) {

}

private void selectaCourseComboBox_SelectedIndexChanged(object sender, EventArgs e) { }

private void enrollButton_Click(object sender, EventArgs e) { } } }

Wh dbo.course [Data] = x addnewStudentForm.cs Max Rows: 1000 semester Offered S1 courseld 1 2 3 NULL course Title History 101 Accounting 101 Biology 1 NULL S2 S3 NULL H. H.. II. dbo.student [Data] x WhatCourses AStuden...rolled.cs [De Max Rows: 1000 o studentld studentName courseComplet... 1 Ashley Corcora... Math 2 Shelby Goin English 3 Melinda Freem... History 4 Jennifer Harper ... Biology 5 Alexander Haga... Psychology 6 Soon Jang Math 7 Caitlin Lee English 8 Chang-Kyu Jenk... History 9 Josh Miller ... Biology 10 Annika Mercha... Psychology 11 Kayla Ross Psychology 12 Nicholas Prewit... Biology NULL NULL NULL M . H. ... ... ... H. II. enrollastudentinaCourseForm U x Enrollment Data Select a Student: a Select a Course: Select a Student: a Select a Course:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!