Click here to Skip to main content
15,917,473 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionNamespace importing at project level question Pin
programmervb.netc++17-May-10 8:20
programmervb.netc++17-May-10 8:20 
AnswerRe: Namespace importing at project level question Pin
Luc Pattyn17-May-10 8:29
sitebuilderLuc Pattyn17-May-10 8:29 
GeneralRe: Namespace importing at project level question Pin
programmervb.netc++17-May-10 8:45
programmervb.netc++17-May-10 8:45 
GeneralRe: Namespace importing at project level question Pin
Luc Pattyn17-May-10 8:49
sitebuilderLuc Pattyn17-May-10 8:49 
GeneralRe: Namespace importing at project level question Pin
programmervb.netc++17-May-10 9:02
programmervb.netc++17-May-10 9:02 
GeneralRe: Namespace importing at project level question Pin
Luc Pattyn17-May-10 9:06
sitebuilderLuc Pattyn17-May-10 9:06 
AnswerRe: Namespace importing at project level question Pin
Gideon Engelberth19-May-10 9:42
Gideon Engelberth19-May-10 9:42 
QuestionConcurrency Error Pin
Ghost_80717-May-10 5:48
Ghost_80717-May-10 5:48 
I am trying to get the changes made to a datagrid to be saved back to the database.
Every time i update i get a concurrency error.
Any help would be greatly welcome.
Dave
Friend Sub UpdateDatabase()
        frm.Cursor = Cursors.WaitCursor
        Dim isGood As Boolean = True
        If DataServer.IsConnLost Then
            If DataServer.IsConnBack = False Then Exit Sub
            DataServer.IsConnLost = False
        End If
        Dim sqlString As String = "SELECT * FROM " & frm.dgData.DataMember
        Using conn As New SqlConnection(DataServer.SQLConn)
            Using adapt As New SqlDataAdapter(sqlString, conn)
                Using cmdbuilder As New SqlCommandBuilder(adapt)
                    adapt.TableMappings.Add("Table", frm.dgData.DataMember)
                    Try
                        adapt.Update(CType(frm.dgData.DataSource, DataSet).Tables(frm.dgData.DataMember).GetChanges)
                    Catch ex As Exception
                        WriteEventLog("Unknown EX " & Me.GetType.Name & vbCrLf & ex.Message & vbCrLf & ex.StackTrace, , EventLogEntryType.Error, , 58)
                    End Try
                End Using
            End Using
        End Using
        ChangeDataBase()
        frm.Cursor = Cursors.Default
    End Sub

QuestionError Reading Raw Pixel Data Into Bitmap Pin
Sonhospa16-May-10 21:44
Sonhospa16-May-10 21:44 
AnswerRe: Error Reading Raw Pixel Data Into Bitmap Pin
Henry Minute17-May-10 1:39
Henry Minute17-May-10 1:39 
GeneralRe: Error Reading Raw Pixel Data Into Bitmap Pin
Sonhospa17-May-10 5:09
Sonhospa17-May-10 5:09 
AnswerRe: Error Reading Raw Pixel Data Into Bitmap Pin
DaveAuld17-May-10 1:52
professionalDaveAuld17-May-10 1:52 
GeneralRe: Error Reading Raw Pixel Data Into Bitmap Pin
Sonhospa17-May-10 5:26
Sonhospa17-May-10 5:26 
AnswerRe: Error Reading Raw Pixel Data Into Bitmap Pin
Luc Pattyn17-May-10 3:41
sitebuilderLuc Pattyn17-May-10 3:41 
GeneralRe: Error Reading Raw Pixel Data Into Bitmap Pin
Sonhospa17-May-10 5:41
Sonhospa17-May-10 5:41 
GeneralRe: Error Reading Raw Pixel Data Into Bitmap Pin
Luc Pattyn17-May-10 5:47
sitebuilderLuc Pattyn17-May-10 5:47 
AnswerResolved: Scaling Raw Pixel Data When Reading Into Bitmap Pin
Sonhospa17-May-10 10:59
Sonhospa17-May-10 10:59 
GeneralRe: Resolved: Scaling Raw Pixel Data When Reading Into Bitmap Pin
Luc Pattyn17-May-10 11:44
sitebuilderLuc Pattyn17-May-10 11:44 
QuestionRun-time error Pin
MsmVc16-May-10 19:24
MsmVc16-May-10 19:24 
AnswerRe: Run-time error Pin
Richard MacCutchan16-May-10 21:13
mveRichard MacCutchan16-May-10 21:13 
GeneralRe: Run-time error Pin
MsmVc16-May-10 21:34
MsmVc16-May-10 21:34 
GeneralRe: Run-time error Pin
DaveAuld16-May-10 23:01
professionalDaveAuld16-May-10 23:01 
GeneralRe: Run-time error Pin
MsmVc16-May-10 23:06
MsmVc16-May-10 23:06 
GeneralRe: Run-time error Pin
DaveAuld16-May-10 23:55
professionalDaveAuld16-May-10 23:55 
GeneralRe: Run-time error Pin
MsmVc16-May-10 23:57
MsmVc16-May-10 23:57 

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.