Click here to Skip to main content
16,009,469 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow do I call a method from a worker thread on the master thread? Pin
BlackCatDeveloper11-Feb-10 12:04
BlackCatDeveloper11-Feb-10 12:04 
QuestionApplication or setup Pin
Gagan.2011-Feb-10 3:00
Gagan.2011-Feb-10 3:00 
AnswerRe: Application or setup Pin
Dave Kreskowiak11-Feb-10 4:30
mveDave Kreskowiak11-Feb-10 4:30 
GeneralRe: Application or setup Pin
Gagan.2011-Feb-10 4:34
Gagan.2011-Feb-10 4:34 
GeneralRe: Application or setup Pin
The Man from U.N.C.L.E.11-Feb-10 13:15
The Man from U.N.C.L.E.11-Feb-10 13:15 
Questionvb.net 2008 Express to SQL - Dataset does not show changes in DB Pin
gengel10-Feb-10 22:18
gengel10-Feb-10 22:18 
AnswerRe: vb.net 2008 Express to SQL - Dataset does not show changes in DB Pin
Dave Kreskowiak11-Feb-10 1:42
mveDave Kreskowiak11-Feb-10 1:42 
GeneralRe: vb.net 2008 Express to SQL - Dataset does not show changes in DB Pin
gengel11-Feb-10 2:12
gengel11-Feb-10 2:12 
Hi,

Thanks for your reply.

I only added the accept changes later when I noticed that the ADO.net dataset-datatable is not updating. The SQL database contains the new data that was added, but the change is not reflected back to the Dataset-datatable.

This is what I am doing now to update the data set

Function Load_Table(ByVal SQLString As String, ByVal TableName As String) As Boolean

       Dim SQLstr As String
       Dim tableISadded As Boolean = False
       Try
           'open connection
           If SQLcon.State = ConnectionState.Closed Then
               SQLcon.Open()
           End If
           SQLstr = SQLString
           Dim cmd As SqlCommand = New SqlCommand(SQLstr, SQLcon)
           Dim da As New SqlDataAdapter(SQLstr, SQLcon)
           da.Fill(pDS, TableName)
           da.FillSchema(pDS, SchemaType.Mapped)
           For Each dt As DataTable In pDS.Tables
               If dt.TableName = TableName Then
                   tableISadded = True
               Else
                   tableISadded = False
               End If
           Next
           Return tableISadded
       Catch ex As Exception
           MessageBox.Show(ex.Message)
           Return False
       Finally
           'close connection
           SQLcon.Close()
       End Try

   End Function

              'Remove the orders table
               MAIN.data.DS.Tables.Remove("Orders")
               ''Reload datatable to dataset.
               MAIN.data.Load_Table("SELECT * FROM Orders", "Orders")

GeneralRe: vb.net 2008 Express to SQL - Dataset does not show changes in DB Pin
Dave Kreskowiak11-Feb-10 3:56
mveDave Kreskowiak11-Feb-10 3:56 
GeneralRe: vb.net 2008 Express to SQL - Dataset does not show changes in DB Pin
gengel11-Feb-10 4:12
gengel11-Feb-10 4:12 
GeneralRe: vb.net 2008 Express to SQL - Dataset does not show changes in DB Pin
Dave Kreskowiak11-Feb-10 5:02
mveDave Kreskowiak11-Feb-10 5:02 
GeneralRe: vb.net 2008 Express to SQL - Dataset does not show changes in DB Pin
William Winner11-Feb-10 6:34
William Winner11-Feb-10 6:34 
AnswerRe: vb.net 2008 Express to SQL - Dataset does not show changes in DB Pin
William Winner11-Feb-10 6:16
William Winner11-Feb-10 6:16 
AnswerRe: vb.net 2008 Express to SQL - Dataset does not show changes in DB Pin
William Winner11-Feb-10 6:21
William Winner11-Feb-10 6:21 
GeneralRe: vb.net 2008 Express to SQL - Dataset does not show changes in DB Pin
gengel11-Feb-10 18:28
gengel11-Feb-10 18:28 
GeneralRe: vb.net 2008 Express to SQL - Dataset does not show changes in DB Pin
gengel11-Feb-10 18:30
gengel11-Feb-10 18:30 
GeneralRe: vb.net 2008 Express to SQL - Dataset does not show changes in DB Pin
gengel11-Feb-10 23:35
gengel11-Feb-10 23:35 
GeneralRe: vb.net 2008 Express to SQL - Dataset does not show changes in DB Pin
William Winner12-Feb-10 6:09
William Winner12-Feb-10 6:09 
QuestionInternet Connection with VB 6 Pin
jayachandra.c10-Feb-10 19:45
jayachandra.c10-Feb-10 19:45 
AnswerRe: Internet Connection with VB 6 Pin
Eddy Vluggen10-Feb-10 21:27
professionalEddy Vluggen10-Feb-10 21:27 
GeneralRe: Internet Connection with VB 6 Pin
rhuiden11-Feb-10 8:56
rhuiden11-Feb-10 8:56 
QuestionHow to conver Exhadecimal to Text ? Pin
Golden Jing10-Feb-10 17:14
Golden Jing10-Feb-10 17:14 
AnswerRe: How to conver Exhadecimal to Text ? Pin
Eddy Vluggen10-Feb-10 21:46
professionalEddy Vluggen10-Feb-10 21:46 
GeneralRe: How to conver Exhadecimal to Text ? Pin
Golden Jing11-Feb-10 1:05
Golden Jing11-Feb-10 1:05 
GeneralRe: How to conver Exhadecimal to Text ? Pin
Golden Jing11-Feb-10 15:42
Golden Jing11-Feb-10 15:42 

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.