Click here to Skip to main content
15,887,361 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: OnTimedEvent Pin
Dave Kreskowiak23-May-07 9:44
mveDave Kreskowiak23-May-07 9:44 
QuestionEncrypting passwords in a database Pin
steve_rm23-May-07 5:42
steve_rm23-May-07 5:42 
AnswerRe: Encrypting passwords in a database Pin
Tarakeshwar Reddy23-May-07 6:03
professionalTarakeshwar Reddy23-May-07 6:03 
AnswerRe: Encrypting passwords in a database Pin
andyharman23-May-07 6:14
professionalandyharman23-May-07 6:14 
AnswerRe: Encrypting passwords in a database Pin
Dave Kreskowiak23-May-07 6:27
mveDave Kreskowiak23-May-07 6:27 
AnswerRe: Encrypting passwords in a database Pin
kubben23-May-07 7:00
kubben23-May-07 7:00 
QuestionCounting Records added and modified in a DataSet Pin
Quecumber25623-May-07 5:20
Quecumber25623-May-07 5:20 
AnswerRe: Counting Records added and modified in a DataSet Pin
Dave Kreskowiak23-May-07 6:19
mveDave Kreskowiak23-May-07 6:19 
The answer is staring you in the face. What does DataSet.GetChanges() return?? Another DataSet object! A DataSet is a collection of DataTables, which is a collection of DataRow objects. You can get the number of tables in this new DataSet quite easily:
Dim changes As DataSet = MyDataSet.GetChanges(DataRowState.Modified)
If changes IsNot Nothing AndAlso Not changes.HasErrors Then
    ' Get the number of tables in this changed dataset.
    Dim numTablesChanged As Integer = changes.Tables.Count

    ' Enumerate through these tables and add up the number of rows in each.
    Dim numTotalRecordChanges As Integer
    For Each t As DataTable In changes.Tables
        numTotalRecordChanges += t.Rows.Count
    Next
End If




A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


GeneralRe: Counting Records added and modified in a DataSet Pin
Quecumber25623-May-07 6:51
Quecumber25623-May-07 6:51 
GeneralRe: Counting Records added and modified in a DataSet Pin
Dave Kreskowiak23-May-07 6:55
mveDave Kreskowiak23-May-07 6:55 
Questionpull data from access database table to vb.net Pin
jds120723-May-07 3:56
jds120723-May-07 3:56 
AnswerRe: pull data from access database table to vb.net Pin
Dave Kreskowiak23-May-07 6:43
mveDave Kreskowiak23-May-07 6:43 
QuestionUsing the character '&' in Label.Text Pin
RichFeldman23-May-07 3:44
RichFeldman23-May-07 3:44 
AnswerRe: Using the character '&' in Label.Text Pin
Kschuler23-May-07 4:10
Kschuler23-May-07 4:10 
Questionhow do u communicate btn a webserver and a remote computer via the internet? Pin
dleo1023-May-07 3:22
dleo1023-May-07 3:22 
AnswerRe: how do u communicate btn a webserver and a remote computer via the internet? Pin
Dave Herren23-May-07 3:36
Dave Herren23-May-07 3:36 
QuestionMS Outlook macro help... Pin
Fred_Smith23-May-07 2:18
Fred_Smith23-May-07 2:18 
AnswerRe: MS Outlook macro help... Pin
Dave Kreskowiak23-May-07 6:01
mveDave Kreskowiak23-May-07 6:01 
GeneralRe: MS Outlook macro help... Pin
Fred_Smith23-May-07 6:19
Fred_Smith23-May-07 6:19 
GeneralRe: MS Outlook macro help... Pin
Dave Kreskowiak23-May-07 6:33
mveDave Kreskowiak23-May-07 6:33 
GeneralRe: MS Outlook macro help... Pin
Fred_Smith23-May-07 6:43
Fred_Smith23-May-07 6:43 
Questionfour events and one handler Pin
Sonia Gupta23-May-07 1:28
Sonia Gupta23-May-07 1:28 
AnswerRe: four events and one handler Pin
CPallini23-May-07 1:38
mveCPallini23-May-07 1:38 
GeneralRe: four events and one handler Pin
Sonia Gupta23-May-07 1:52
Sonia Gupta23-May-07 1:52 
AnswerRe: four events and one handler Pin
Rupesh Kumar Swami23-May-07 1:40
Rupesh Kumar Swami23-May-07 1:40 

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.