Click here to Skip to main content
15,922,894 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Number of Rows on Datagrid (Windows Form) Pin
Dave Kreskowiak21-May-04 9:40
mveDave Kreskowiak21-May-04 9:40 
Generalsend html/plain text email Pin
Xun Ding21-May-04 5:18
Xun Ding21-May-04 5:18 
GeneralRe: send html/plain text email Pin
Dave Kreskowiak21-May-04 9:31
mveDave Kreskowiak21-May-04 9:31 
GeneralRe: send html/plain text email Pin
Xun Ding21-May-04 9:58
Xun Ding21-May-04 9:58 
GeneralRe: send html/plain text email Pin
Dave Kreskowiak21-May-04 10:10
mveDave Kreskowiak21-May-04 10:10 
GeneralRe: send html/plain text email Pin
Anonymous22-May-04 9:58
Anonymous22-May-04 9:58 
GeneralRe: send html/plain text email Pin
Xun Ding23-May-04 15:39
Xun Ding23-May-04 15:39 
GeneralRe: My CODE so far...... Pin
Dave Kreskowiak21-May-04 2:10
mveDave Kreskowiak21-May-04 2:10 
What's with the two forms? Why can't you put this stuff on one form. It would probably make your life a little easier by not coding for two forms...

Anyway, your code doesn't do any seperate checking of the fields, so it can't possibly count each one as an error. This should fix it:
Private Sub mnuFileCheck_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuFileCheck.Click
    Dim frmOneInstance As New frmOne() 'instance of form to mark this form against
    Dim intErrorCount As Integer = 0 'to keep an error count 
 
    If lblSID.Text <> frmOneInstance.lblID.Text Then
        intErrorCount += 1
    End If
 
    If lblSName.Text <> frmOneInstance.lblName.Text Then
        intErrorCount += 1
    End If
 
    If intErrorCount > 0 Then
        MessageBox.Show("Error count total: " & intErrorCount, "Result", MessageBoxButtons.OK, MessageBoxIcon.Information)
    Else
        MessageBox.Show("All Correct!", "Result", MessageBoxButtons.OK, MessageBoxIcon.Information)
    End If
End Sub



RageInTheMachine9532
"...a pungent, gastly, stinky piece of cheese!" -- The Roaming Gnome

Questionhow can u find address of public subroutine? Pin
beerc0der20-May-04 17:24
beerc0der20-May-04 17:24 
AnswerRe: how can u find address of public subroutine? Pin
Hesham Amin20-May-04 21:41
Hesham Amin20-May-04 21:41 
GeneralRe: how can u find address of public subroutine? Pin
beerc0der21-May-04 3:37
beerc0der21-May-04 3:37 
GeneralScroll Problem Pin
Asif Rehman20-May-04 16:19
Asif Rehman20-May-04 16:19 
GeneralRight Click and Launch my application Pin
skoizumi2911020-May-04 7:27
sussskoizumi2911020-May-04 7:27 
GeneralRe: Right Click and Launch my application Pin
Dave Kreskowiak20-May-04 8:08
mveDave Kreskowiak20-May-04 8:08 
GeneralRe: Right Click and Launch my application Pin
vancouver77720-May-04 8:11
vancouver77720-May-04 8:11 
GeneralRe: Right Click and Launch my application Pin
WBro21-May-04 21:13
WBro21-May-04 21:13 
GeneralRe: Right Click and Launch my application Pin
Dave Kreskowiak22-May-04 3:11
mveDave Kreskowiak22-May-04 3:11 
General.NET App Performance and Scalability Guide Pin
Dave Kreskowiak20-May-04 3:03
mveDave Kreskowiak20-May-04 3:03 
Generalchange Keyboard Layout Programatically Pin
tyagimanik20-May-04 2:43
tyagimanik20-May-04 2:43 
GeneralRe: change Keyboard Layout Programatically [EDITED] Pin
Dave Kreskowiak20-May-04 4:13
mveDave Kreskowiak20-May-04 4:13 
GeneralHi to all Pin
ymohd_22220-May-04 2:28
ymohd_22220-May-04 2:28 
GeneralRe: Hi to all Pin
Michael P Butler20-May-04 2:45
Michael P Butler20-May-04 2:45 
Generalamazon upload need help... Pin
Sumit Kapoor19-May-04 19:54
Sumit Kapoor19-May-04 19:54 
GeneralOn Click of Combo.. Pin
Het210919-May-04 19:51
Het210919-May-04 19:51 
GeneralRe: On Click of Combo.. Pin
Dave Kreskowiak20-May-04 1:15
mveDave Kreskowiak20-May-04 1:15 

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.