Click here to Skip to main content
15,911,848 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Removal Of Row By Listbox Troubles Pin
Dave Kreskowiak4-Jun-09 1:30
mveDave Kreskowiak4-Jun-09 1:30 
GeneralRe: Removal Of Row By Listbox Troubles Pin
EliottA4-Jun-09 2:50
EliottA4-Jun-09 2:50 
GeneralRe: Removal Of Row By Listbox Troubles Pin
eginteractive4-Jun-09 3:07
eginteractive4-Jun-09 3:07 
GeneralRe: Removal Of Row By Listbox Troubles Pin
Oakman4-Jun-09 4:10
Oakman4-Jun-09 4:10 
GeneralRe: Removal Of Row By Listbox Troubles Pin
dan!sh 4-Jun-09 5:20
professional dan!sh 4-Jun-09 5:20 
AnswerRe: Removal Of Row By Listbox Troubles Pin
dan!sh 4-Jun-09 2:07
professional dan!sh 4-Jun-09 2:07 
AnswerRe: Removal Of Row By Listbox Troubles Pin
Jon_Boy4-Jun-09 7:24
Jon_Boy4-Jun-09 7:24 
GeneralRe: Removal Of Row By Listbox Troubles Pin
eginteractive4-Jun-09 16:49
eginteractive4-Jun-09 16:49 
     sqlconn.Open()
 Catch ex As Exception
     MsgBox("Could not connect!", MsgBoxStyle.Critical, "Connection Error!")
 End Try
 If sqlconn.State = 1 Then
     Dim sqlremovedata As New SqlCommand( _
"DELETE FROM [Team] WHERE ([ID]) = "(ListBox1.SelectedItem))
     sqlremovedata.ExecuteNonQuery()
     MsgBox("Deleted successfully!", MsgBoxStyle.Information, "Record Deleted!")
     sqlconn.Close()
 End If


OH WONDERFUL. Now I've got a new error.

Conversion from type 'DataRowView' to type 'Integer' is not valid.

QuestionHow to check if a file exists then delete it in vb.net 2005? Pin
Striker.dbz3-Jun-09 23:45
Striker.dbz3-Jun-09 23:45 
AnswerRe: How to check if a file exists then delete it in vb.net 2005? Pin
Johan Hakkesteegt3-Jun-09 23:59
Johan Hakkesteegt3-Jun-09 23:59 
GeneralRe: How to check if a file exists then delete it in vb.net 2005? Pin
Striker.dbz4-Jun-09 0:20
Striker.dbz4-Jun-09 0:20 
GeneralRe: How to check if a file exists then delete it in vb.net 2005? Pin
Johan Hakkesteegt4-Jun-09 0:22
Johan Hakkesteegt4-Jun-09 0:22 
GeneralRe: How to check if a file exists then delete it in vb.net 2005? Pin
Striker.dbz4-Jun-09 0:32
Striker.dbz4-Jun-09 0:32 
GeneralRe: How to check if a file exists then delete it in vb.net 2005? Pin
Dave Kreskowiak4-Jun-09 1:25
mveDave Kreskowiak4-Jun-09 1:25 
GeneralRe: How to check if a file exists then delete it in vb.net 2005? Pin
Johan Hakkesteegt4-Jun-09 1:32
Johan Hakkesteegt4-Jun-09 1:32 
GeneralRe: How to check if a file exists then delete it in vb.net 2005? Pin
Dave Kreskowiak4-Jun-09 3:30
mveDave Kreskowiak4-Jun-09 3:30 
AnswerRe: How to check if a file exists then delete it in vb.net 2005? Pin
Ashfield4-Jun-09 1:40
Ashfield4-Jun-09 1:40 
GeneralRe: How to check if a file exists then delete it in vb.net 2005? Pin
Striker.dbz4-Jun-09 4:03
Striker.dbz4-Jun-09 4:03 
GeneralRe: How to check if a file exists then delete it in vb.net 2005? Pin
Jon_Boy4-Jun-09 7:31
Jon_Boy4-Jun-09 7:31 
GeneralRe: How to check if a file exists then delete it in vb.net 2005? Pin
Ashfield4-Jun-09 8:53
Ashfield4-Jun-09 8:53 
GeneralRe: How to check if a file exists then delete it in vb.net 2005? Pin
Jon_Boy5-Jun-09 2:05
Jon_Boy5-Jun-09 2:05 
QuestionInsert Values Into Database By Textbox Issues Pin
eginteractive3-Jun-09 15:25
eginteractive3-Jun-09 15:25 
AnswerRe: Insert Values Into Database By Textbox Issues Pin
Luc Pattyn3-Jun-09 15:36
sitebuilderLuc Pattyn3-Jun-09 15:36 
GeneralRe: Insert Values Into Database By Textbox Issues Pin
eginteractive3-Jun-09 15:44
eginteractive3-Jun-09 15:44 
GeneralRe: Insert Values Into Database By Textbox Issues Pin
Luc Pattyn3-Jun-09 15:52
sitebuilderLuc Pattyn3-Jun-09 15:52 

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.