Click here to Skip to main content
15,892,005 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Resize external application Pin
Tarakeshwar Reddy29-Mar-10 12:15
professionalTarakeshwar Reddy29-Mar-10 12:15 
GeneralRe: Resize external application Pin
csanmba30-Mar-10 1:43
csanmba30-Mar-10 1:43 
QuestionOK Going Mad...VB.Net Mail Pin
Dalek Dave29-Mar-10 9:59
professionalDalek Dave29-Mar-10 9:59 
AnswerRe: OK Going Mad...VB.Net Mail Pin
nlarson1129-Mar-10 10:18
nlarson1129-Mar-10 10:18 
GeneralRe: OK Going Mad...VB.Net Mail Pin
Dalek Dave29-Mar-10 21:27
professionalDalek Dave29-Mar-10 21:27 
QuestionNew line to be added to a mail message [modified] Don't Worry, got it! Pin
Dalek Dave29-Mar-10 8:56
professionalDalek Dave29-Mar-10 8:56 
AnswerRe: New line to be added to a mail message [modified] Don't Worry, got it! Pin
nlarson1129-Mar-10 10:23
nlarson1129-Mar-10 10:23 
QuestionStatic Variables for Grade Counting Program [modified] - SOLVED Pin
Adam Wike29-Mar-10 4:39
Adam Wike29-Mar-10 4:39 
My teacher want's me to design a program that does this. "Design a program that has five buttons, one for each grade. Each time you press a button it increments that grade by one. At the same time it updates a label that displays the current percent of students that passed the exam (grade higher than F)." This is what I have so far...

Public Class Form1

    Private Sub btnA_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnA.Click
        Static intA As Integer = 0
        intA = intA + 1
        lblGradea.Text = intA
    End Sub

    Private Sub btnB_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnB.Click
        Static intB As Integer = 0
        intB = intB + 1
        lblGradeb.Text = intB
    End Sub

    Private Sub btnC_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnC.Click
        Static intC As Integer = 0
        intC = intC + 1
        lblGradec.Text = intC
    End Sub

    Private Sub btnD_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnD.Click
        Static intD As Integer = 0
        intD = intD + 1
        lblGraded.Text = intD
    End Sub

    Private Sub btnF_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnF.Click
        Static intF As Integer = 0
        intF = intF + 1
        lblGradef.Text = intF
    End Sub


End Class


I need help on that part that displays what percentage of students are passing. I assume you have to add together the toal number of grades and then divide by the total number above F and display that in a label. But I cant seem to figure that out...Thanks Big Grin | :-D
modified on Tuesday, March 30, 2010 10:18 AM

AnswerRe: Static Variables for Grade Counting Program Pin
Estys29-Mar-10 5:09
Estys29-Mar-10 5:09 
AnswerRe: Static Variables for Grade Counting Program Pin
Steven J Jowett29-Mar-10 6:12
Steven J Jowett29-Mar-10 6:12 
GeneralRe: Static Variables for Grade Counting Program Pin
Adam Wike30-Mar-10 4:17
Adam Wike30-Mar-10 4:17 
GeneralRe: Static Variables for Grade Counting Program Pin
Steven J Jowett30-Mar-10 4:35
Steven J Jowett30-Mar-10 4:35 
GeneralRe: Static Variables for Grade Counting Program Pin
Adam Wike30-Mar-10 4:51
Adam Wike30-Mar-10 4:51 
GeneralRe: Static Variables for Grade Counting Program Pin
Steven J Jowett30-Mar-10 5:56
Steven J Jowett30-Mar-10 5:56 
Questionscript to copy web page contents into text file Pin
220828-Mar-10 18:41
220828-Mar-10 18:41 
AnswerRe: script to copy web page contents into text file Pin
DaveAuld28-Mar-10 23:07
professionalDaveAuld28-Mar-10 23:07 
QuestionTwo checkbox in single column of datagridview Pin
C#Coudou28-Mar-10 13:44
C#Coudou28-Mar-10 13:44 
AnswerRe: Two checkbox in single column of datagridview Pin
Dave Kreskowiak28-Mar-10 14:22
mveDave Kreskowiak28-Mar-10 14:22 
Questioninstalling application [modified] .... resolved Pin
Daniel Engelkes28-Mar-10 12:55
Daniel Engelkes28-Mar-10 12:55 
AnswerRe: installing application Pin
Dalek Dave28-Mar-10 13:09
professionalDalek Dave28-Mar-10 13:09 
GeneralRe: installing application Pin
Daniel Engelkes28-Mar-10 13:24
Daniel Engelkes28-Mar-10 13:24 
GeneralRe: installing application Pin
Dalek Dave28-Mar-10 13:40
professionalDalek Dave28-Mar-10 13:40 
GeneralRe: installing application Pin
Daniel Engelkes28-Mar-10 14:31
Daniel Engelkes28-Mar-10 14:31 
GeneralRe: installing application Pin
Dave Kreskowiak28-Mar-10 14:21
mveDave Kreskowiak28-Mar-10 14:21 
GeneralRe: installing application Pin
Daniel Engelkes28-Mar-10 14:32
Daniel Engelkes28-Mar-10 14:32 

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.