Create A VB App To Keep Score At My Sons Soccer Match?
Jul 20, 2011
I am assistant soccer coach and my daughter is the score keeper, I am trying to create an app that makes it easier to keep track of the players score as well as the total and the kids names. So this is what I am considering...Since the numbers of kids is never the same since some miss games, I want to be able to enter in the number of players present and then ask the players names the exact amount of times my daughter previously entered as kids present. Then display the names in an array with a text box for each child to keep track of individual points scored and total points scored by each child. So in the end it would be nice to display each child with the amount of points scored, total individual points next to there name and total points for the team in a separate form. I assume I will need at least 3 forms, either a multi dimensional array for the names and the score, and possibly a user control to take in the players for the game.[code]...
View 12 Replies
ADVERTISEMENT
Jan 31, 2010
I'm making a cricket project, and I'm trying to insert a bar graph that will update as I score the match, showing the total for each over. The code I have so far is below, at the moment I'm trying to draw the graph into a picture box, is this correct? Also, if the below code is ok, how do I call the sub?
Public Sub graph_paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles graph.Paint
Dim total(20), i As Integer
For i = 1 To 20
total(i) = over(i, 1) + over(i, 2) + over(i, 3) + over(i, 4) + over(i, 5) + over(i, 6)
[Code] .....
View 1 Replies
Apr 14, 2012
Haveing troubles with an assignment. I am writting code that will allow user to enter a score and the program returns a grade based on the score entered. I can get it to work using "IF" statements but want to use code for ranges. My "IF" code is as follows.......
[Code]...
View 1 Replies
Apr 14, 2012
Haveing troubles with an assignment. I am writting code that will allow user to enter a score and the program returns a grade based on the score entered. I can get it to work using "IF" statements but want to use code for ranges. My "IF" code is as follows.......
[Code]....
View 2 Replies
Oct 18, 2010
i am suppose to create "a windows form game called Yahtzis which uses five dice and three throws to create a score" .
The problem is that i don't even know how to start it can anyone shed some light.
View 2 Replies
May 10, 2010
I am writing a noughts and crosses game and I want to be able to keep score everytime each character wins a game, I have written a sub routine to handle this but it seems to count up in 5's and 10's??I have used a global variable like this Dim i As Integer = 1 then declaired that variable in my sub like this i += 1 (I thaught that this would just add 1 everytime X won a game)then used the variable i to add the score to the label control that keeps the score for the character X.My question is, am I using the correct syntax (+=) for the variable.
View 2 Replies
Aug 14, 2009
Im creating a quiz game although i was wondering if any one can teach/tell me how to create a high score system.For example when the user clicks say button1 (which is stop quiz) an input box will appear asking the user to input their name and then press okay. It then gets the current score from the text box (which is just an integer in a text box indicating how many they got right) and saves it to an Text file or something.and when the user goes back to the main menu, he/she can select "Hall of Fame" which then brings up the highscores (in a new form) of previous users scores.
View 10 Replies
Feb 27, 2009
i am creating a quiz which would be 20 questions for software design students and may use alot of code.my first problem is the score for the test, i know a friend of mine can add up the score but he cant move onto the next thread until you have got the question correct which is sort of cheating, i want to know how you create a variable and make that variable stay in all the forms and add up the score of correct and incorrect answers and come up with a final score for the user in the end.
View 8 Replies
Feb 26, 2012
I'm trying to match exactly the following format:
+639201112222
09201112222
and this is all Ive tried so far:
(+63|0)?d{10}
the problem is that it match 2920111222 in 29201112222. How can i create a pattern that will match only the formats below?
+63XXXXXXXXXX
0XXXXXXXXXX
+63 or 0 plus 10 digit number only.where X are all digits from 0-9.
View 1 Replies
May 29, 2010
Am trying to match characters or combination of the characters i specify in any order they appears
vb
Regex.IsMatch(teststring "[nuls]")
what i want matched is either any single character, or combination of any of them in any oder. this means that it should not match any character not specified in the pattern.
For example
it should match
n,u,l,s,nu,un,lun, sl etc
not
ny, nx so etc or any other
View 9 Replies
Dec 13, 2009
is there any way yo get the score of one player in counter strike? one of the player on the computer. not all the players. i know that when you are looking att server info, then you can see all the player and there scores. is there anyway to replicate that function?
View 14 Replies
Apr 27, 2009
I need to calculate the high score and am having trouble storing a value that represents the previous high score, and the comparator funcion.
Public n_sErrorTitle As String = "Entry Error"
'Count the number of entered scores
Dim intCount As Integer
[code]....
View 3 Replies
Apr 1, 2010
how can i save a high score in toolstrip textbox or listbox?
View 7 Replies
Nov 20, 2010
I've made a computer game in Visual Basic Express 2008 and my only remaining problem is to run a data table to keep a running track of the best score. To do this I've created a datatable form called BestScore.xsd. My first problem here is to recognize that it should will start off with nil values and I need to initialize it to zero. Next I need to update the score. I will need to save the score when I exit the game. (Does VBE automatically save the datatable or there a command here?). When I reopen the game program I want it to find my best score from last time.
View 2 Replies
Oct 17, 2010
I have been working on a class project for sometime now. Currently stuck and need some help. Project is due today, so I'm desperate for some help. Please see attached project file.
[Code]...
View 1 Replies
Oct 8, 2010
i just got another assignment with no instruction on how to do it. I have no prior programming skill so these assignment are really hard for me, [URL]..
View 6 Replies
Feb 24, 2009
I'm new to VB and I'm doing a calculations program for test scores. I got everything setup for my clear and exit buttons but not sure what I have to put in the calculate button code for it to calculate. Here is what I have so far.
Public Class Form1
Private Sub Label5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lblTestScore5.Click
End Sub
Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click
[Code] .....
View 13 Replies
Apr 18, 2012
[code]I don't get how to go to the next question when the answer selected is correct, also how to load the progress bar and the score text box.
View 1 Replies
Nov 4, 2009
I have to take information that is entered in a text box such as name, test score then send it to a list box then from there I have to split the test score and calculate the grade. I have been trying to find information on how to separate the test score to do the calculation.
View 2 Replies
Jan 14, 2009
So we are just starting to learn about list boxes in vb1. In this program the user enters up to 10 scores and after each input (decInputScore) the total score so far has to be calculates (decTotalScore) and then of course when all the scores are entered, at the bottom the final score it calculated. (decFinalScore) (decFinal). I'm not exactly sure what I'm doing wrong, I can't get it to calculate the correct total scores after each input, and I'm getting 0 as the final score. Here is a visual of what the form should look like: the black square is (btnEnterScore) a pop up message box comes up in which the user enters each value when clicked.[code]
View 1 Replies
Jan 2, 2012
I am having an issuse with weither i should make 15 different fourms or just make 15 text boxes three for each round plus creating something that would add the doubles and triples I do not know what to use for a code, I have just started programming. this is what i have tried to do.
CODE:
View 4 Replies
Feb 20, 2009
i am trying to read the score of windows Pinball but i have got a problem.When i read the score 1st time all work good but when i close down pinball and start it again it will not work i have to find the memory address again to make it work?
View 8 Replies
Jun 3, 2012
my list box consist the person's name and his score that get from another button.. and I wan to search for the highest score only in another button... what codes should I code in??
this code is for add the details into list box
"Dim name As String = txtname.Text.ToString
Dim total As String = lbltotal.Text.ToString
Dim x As Integer
Dim duplicate As Boolean = False
[Code]...
how can I search from the list box to find the highest number onli?
View 5 Replies
Nov 30, 2010
I am currently going through Murachs Beggining .net programming book. I am trying to implement an application for an exercise at the end of chapter 5. The application specification is as follows.
[Code]...
View 2 Replies
Dec 6, 2009
I have made it so my code will print out the average score of all the test as one. but for each student i need to have an average score.
Public Class frmMain
Structure TestScores
Public decTest1 As Decimal
Public decTest2 As Decimal
[code].....
View 5 Replies
Apr 22, 2010
What I have is a database in a Windows Form (via tableAdapters etc., basically the default stuff VS adds). What I need to do, is add a very simple record of a name and score (the "place" is an auto-number). I have not even been able to tackle sorting the table, because I can not even figure out how to insert...
View 8 Replies
Mar 29, 2010
I have to use an access DB as a score table and having a few problems.I have the table showing in a data grid fine what i now need to do is find a way of updating it depending on the score someone gets.anyway here is what I have so far and what I want to do is if player scores say 1000 that his/her score then will be put in that place then the others move down....
Code:
Imports System.Data.OleDb
Public Class highScores
' Full path to database must be given if not in Debug/BIN folder
[code]....
the score table opens on a new form and the score is held in a var on form 1 called lol score just a quick edit I have put 2 buttons on the form to load the data in the grid to start with but this will load automaticly and the name will be entered into either a txtbob or an inputbox?
View 1 Replies
Oct 9, 2010
I am creating a point system for a game. What i have right now is that fastest time with highest score gets a higher ranking.
But i can't seem to create this, what i did was to sort the time first from lowest to highest. Then sorted the points from highest to lowest.
Now my problem is, when i display the results. This is what i get.
RANK TIME SCORE
1 0:56 5
2 0:60 4
3 0:37 2
[Code]....
View 2 Replies
Apr 2, 2010
In my Form, I allow the user to enter a Test Name, Score, and Date. This info is then put into a DataGridView(dtaTests). Now, I want to perform basic mathematical calculations on numbers contained in this DataGridView. For instance, I need to add up all of the grades. How would I get the Form to add up the grades in the "Score" section of the DataGridView?
View 5 Replies
Jan 13, 2010
I am making a game that is similar to Dance Dance Revolution. As you know, there are moving arrow keys, but when i run the program, only one arrow moves up in a loop. I don't understand what is wrong with the code. Also, the score is messed up. It doesn't add or minus points.
Code:
<!--c1-->
CODE
View 3 Replies