Click here to Skip to main content
15,890,557 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to chnage the border of combo box Pin
Christian Graus23-Jun-08 19:05
protectorChristian Graus23-Jun-08 19:05 
AnswerRe: How to chnage the border of combo box Pin
Anubhava Dimri23-Jun-08 21:25
Anubhava Dimri23-Jun-08 21:25 
GeneralRe: How to chnage the border of combo box Pin
mamatha97anju23-Jun-08 21:31
mamatha97anju23-Jun-08 21:31 
GeneralRe: How to chnage the border of combo box Pin
Christian Graus23-Jun-08 22:24
protectorChristian Graus23-Jun-08 22:24 
GeneralRe: How to chnage the border of combo box Pin
Anubhava Dimri23-Jun-08 23:06
Anubhava Dimri23-Jun-08 23:06 
QuestionVB .NET switching from MS Access to SQL Server Pin
Ekjon23-Jun-08 12:12
Ekjon23-Jun-08 12:12 
AnswerRe: VB .NET switching from MS Access to SQL Server Pin
Christian Graus23-Jun-08 13:09
protectorChristian Graus23-Jun-08 13:09 
QuestionProblems updating database Pin
AAGTHosting23-Jun-08 10:49
AAGTHosting23-Jun-08 10:49 
I am writing a software program. When I tried to add a student and then check the student drop down box the student added successfuly, but when I try to add a lesson the lesson does not add. I added a message box to see if the info was adding to the dataRow for the database Update and the info showed up in the messageBox.

When I check the lesson listView the lesson is not there.

How do I find out if the lesson is adding to the database?

I am using SQL Server Express 2005 and the Copy to output directory is set to copy always.

Here is my code.

Public addRow As DataRow

MsgBox(txtInstrument.Text & "," & Convert.ToInt32(cboSelectStudent.SelectedValue) & "," & Convert.ToDateTime(dtpStartDate.Text) & "," & Convert.ToDateTime(dtpEndDate.Text) & "," & Convert.ToDateTime(lvwItem.SubItems(1).Text) & "," & intDay & "," & Convert.ToInt32(cboSelectTeacher.SelectedValue) & "," & intLessStat)

            addRow = lpDataSet.tbl_lessons.Newtbl_lessonsRow()
            addRow("less_instrument") = txtInstrument.Text
            addRow("stud_id") = Convert.ToInt32(cboSelectStudent.SelectedValue)
            If dtpStartDate.Visible = True Then
                addRow("less_start_date") = Convert.ToDateTime(dtpStartDate.Text)
            End If
            If dtpEndDate.Visible = True Then
                addRow("less_end_date") = Convert.ToDateTime(dtpEndDate.Text)
            End If
            If lvwChooseTimeslot.Visible = True Then
                addRow("less_time") = Convert.ToDateTime(lvwItem.SubItems(1).Text)
                addRow("less_day") = intDay
                addRow("teach_id") = Convert.ToInt32(cboSelectTeacher.SelectedValue)
            End If
            addRow("less_status") = intLessStat
            lpDataSet.tbl_lessons.Rows.Add(addRow)

lessonTableAdapter.Update(addRow)

AnswerRe: Problems updating database Pin
Christian Graus23-Jun-08 11:30
protectorChristian Graus23-Jun-08 11:30 
AnswerRe: Problems updating database Pin
SteveNY25-Jun-08 4:50
SteveNY25-Jun-08 4:50 
QuestionHandling Multiple Controls with Multiple Buttons Pin
Phantom71523-Jun-08 10:16
Phantom71523-Jun-08 10:16 
AnswerRe: Handling Multiple Controls with Multiple Buttons Pin
Christian Graus23-Jun-08 11:31
protectorChristian Graus23-Jun-08 11:31 
AnswerRe: Handling Multiple Controls with Multiple Buttons Pin
Luc Pattyn23-Jun-08 14:32
sitebuilderLuc Pattyn23-Jun-08 14:32 
AnswerRe: Handling Multiple Controls with Multiple Buttons Pin
McPisces24-Jun-08 8:43
McPisces24-Jun-08 8:43 
Question[Message Deleted] Pin
nyjcr23-Jun-08 7:42
nyjcr23-Jun-08 7:42 
AnswerRe: Visual C# - prevent Console window from launching Pin
nyjcr23-Jun-08 7:47
nyjcr23-Jun-08 7:47 
QuestionGet Word Mail Editor Handle Pin
~Khatri Mitesh~23-Jun-08 1:59
~Khatri Mitesh~23-Jun-08 1:59 
QuestionAvoid Flickering in listview Pin
Jes_Latha23-Jun-08 0:59
Jes_Latha23-Jun-08 0:59 
AnswerRe: Avoid Flickering in listview Pin
Ashfield23-Jun-08 1:18
Ashfield23-Jun-08 1:18 
GeneralRe: Avoid Flickering in listview Pin
Jes_Latha23-Jun-08 1:37
Jes_Latha23-Jun-08 1:37 
GeneralRe: Avoid Flickering in listview Pin
Ashfield23-Jun-08 2:05
Ashfield23-Jun-08 2:05 
AnswerRe: Avoid Flickering in listview Pin
jzonthemtn23-Jun-08 15:40
jzonthemtn23-Jun-08 15:40 
AnswerRe: Avoid Flickering in listview Pin
Chinners23-Jun-08 23:04
Chinners23-Jun-08 23:04 
GeneralRe: Avoid Flickering in listview Pin
RUrry2-Jul-08 16:11
RUrry2-Jul-08 16:11 
GeneralRe: Avoid Flickering in listview Pin
Chinners2-Jul-08 23:33
Chinners2-Jul-08 23:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.