Click here to Skip to main content
15,902,299 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionRe: problem with combobox in tabcontrol Pin
nazimghori10-May-09 19:39
nazimghori10-May-09 19:39 
AnswerRe: problem with combobox in tabcontrol Pin
Andy_L_J10-May-09 22:13
Andy_L_J10-May-09 22:13 
QuestionRe: problem with combobox in tabcontrol Pin
nazimghori10-May-09 22:21
nazimghori10-May-09 22:21 
QuestionVB help please! Pin
tommyjay9-May-09 10:57
tommyjay9-May-09 10:57 
AnswerRe: VB help please! Pin
Christian Graus9-May-09 11:05
protectorChristian Graus9-May-09 11:05 
AnswerRe: VB help please! Pin
Colin Angus Mackay9-May-09 13:22
Colin Angus Mackay9-May-09 13:22 
GeneralRe: VB help please! Pin
EliottA11-May-09 2:51
EliottA11-May-09 2:51 
QuestionDeleting Coresponding Row(s) Pin
JustinRiggs9-May-09 9:49
JustinRiggs9-May-09 9:49 
Hi if anyone could help I would appreciate it. I have a database with a
Movies Table, Casting Table, and Actor Table.

Movie Table has MovieID
Casting Table has MovieID , and ActorID
Actor Table has ActorID

This code deletes a row from the movies table(using a datagrid in vb.net), I need all the rows in the Casting table with the same MovieID to also be deleted.
Any help would be appreciated!!



Dim result As String
Dim i As Integer
i = MovieDataGridView.CurrentRow.Index
result = MsgBox("Are you sure you want to delete this movie?", MsgBoxStyle.OkCancel)
If result = vbOK Then

If MovieDataGridView.Rows.Count = 1 Then
MsgBox("You must leave one movie in database!!")
Else
Me.MovieDataGridView.Rows.Remove(Me.MovieDataGridV iew.SelectedRows(0))
End If
Else

End If
Me.Validate()
Me.MovieBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.MovieProjectDa taSet)
AnswerRe: Deleting Coresponding Row(s) Pin
Henry Minute9-May-09 10:05
Henry Minute9-May-09 10:05 
GeneralRe: Deleting Coresponding Row(s) Pin
JustinRiggs9-May-09 10:26
JustinRiggs9-May-09 10:26 
GeneralRe: Deleting Coresponding Row(s) Pin
Noctris10-May-09 12:23
Noctris10-May-09 12:23 
AnswerRe: Deleting Coresponding Row(s) Pin
JustinRiggs9-May-09 12:49
JustinRiggs9-May-09 12:49 
QuestionThreading Problem Pin
DarkSorrow389-May-09 5:44
DarkSorrow389-May-09 5:44 
GeneralRe: Threading Problem Pin
harold aptroot9-May-09 6:13
harold aptroot9-May-09 6:13 
QuestiongetData from xml with VB.NET Pin
woerny9-May-09 4:09
woerny9-May-09 4:09 
AnswerRe: getData from xml with VB.NET Pin
Zaegra9-May-09 4:43
Zaegra9-May-09 4:43 
Questioncreate and run process with link (vb.net2005) Pin
hrishiS9-May-09 2:42
hrishiS9-May-09 2:42 
AnswerRe: create and run process with link (vb.net2005) Pin
Luc Pattyn9-May-09 3:06
sitebuilderLuc Pattyn9-May-09 3:06 
GeneralRe: create and run process with link (vb.net2005) Pin
hrishiS9-May-09 3:10
hrishiS9-May-09 3:10 
GeneralRe: create and run process with link (vb.net2005) Pin
Zaegra9-May-09 4:33
Zaegra9-May-09 4:33 
AnswerRe: create and run process with link (vb.net2005) Pin
Dave Kreskowiak9-May-09 7:19
mveDave Kreskowiak9-May-09 7:19 
Questionproblem related to textbox Pin
nazimghori9-May-09 2:24
nazimghori9-May-09 2:24 
AnswerRe: problem related to textbox Pin
Zaegra9-May-09 4:00
Zaegra9-May-09 4:00 
GeneralRe: problem related to textbox Pin
nazimghori9-May-09 4:13
nazimghori9-May-09 4:13 
QuestionRe: problem related to textbox Pin
nazimghori9-May-09 4:19
nazimghori9-May-09 4:19 

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.