Command.CommandText = "SELECT startdate, start + '~' + [end] + ': ' + subject + ' ' + contents as schedule FROM Short WHERE startdate = '" & startdate & "'"
Dim UpDateForm As UpdateDate = New UpdateDate() 'Dim DataSet As DataSet = DirectCast(Me.shortscheduleListBox.DataSource, DataSet) Dim Row As DataRow = DirectCast(shortscheduleListBox.SelectedItem, DataRowView).Row Dim Value As String Value = Row("startdate") UpDateForm.startdateTextBox.Text = Value UpDateForm.ShowDialog()
Dim UpDateForm As UpdateDate = New UpdateDate() Dim Value As String Value = shortscheduleListBox.SelectedItem("startdate") UpDateForm.startdateTextBox.Text = Value UpDateForm.ShowDialog()
Me.shortscheduleListBox.DataSource = DataSet.Tables(DataSet.Tables(0).ToString)
Me.shortscheduleListBox.DataSource = DataSet.Tables(0)