Create A High Scores Board?
Aug 20, 2011
I am trying to create a high scores board - currently i was experimenting with just typing a number into a textbox and having it automatically order the numbers (in labels) from largest to smallest however i cannot get them all to work. either just the first and second (label) works or the second and third display the same number or the second decreases in value even though it shouldn't[code]...
View 7 Replies
ADVERTISEMENT
Aug 20, 2011
I am trying to design a highscore board that displays scores in order based on the label (after countdown timer) from another form.i want it to ask the player's name and automatically assign the name to the score and stay together even when being shifted (eg when a new score appears)currently i have designed a form to display in order, numbers typed into a text box.this is my coding so far
Public Class Form1
Dim lstInt As New List(Of Integer)
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load[code]....
View 11 Replies
May 6, 2012
I'm working on a video game in VB .NET and I was wondering if there is any way to store its high scores online.If there is any way to do this, that would be great, but otherwise, I'd like to know what would be the best method of locally storing high scores on a single computer.
View 1 Replies
Sep 10, 2009
I am Writing a Program in Visual Basic 2008 for my High Schools Advanced Higher Coursework Project... The Game its self runs perfectly and i can display the highscores. i just need some help showing 10 hi-scorers and in ascending order.Currently i am using this code for viewing them.
Code:
Private Sub HiScores_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim TmpHiScore As String 'Temporarly stores the data in file "HiScores.lol".
Dim intTempo As Integer = 1 'Stores the length of variable TmpHiScore.
[code]....
The hiscores them selfs are stored in a personalised text document and they are all on the one line. the format of this is NAME:SCORE,NAME:SCORE,NAME:SCORE and so on!
View 3 Replies
Apr 13, 2009
I am in a VB.NET class and I am currently modifing a game. I am trying to set up a High Scores system but a Null Refrence Exception error is making me angry.I am trying to reference a class called GameState which contains the Subroutines and variables to use the high scores. Below is the code for a form that is used to show the current high scores in two listboxes.
[Code]...
View 1 Replies
Dec 1, 2011
I am trying to read in high scores from a text file that look like this
Name1
Score1
Name2
Score2
Name3
Score3
etc.
I can write them out fine, but reading them in I seem to be having a problem with. I have read in the first name ok but when I try to read in the second name, it is giving me the 3rd name. Code below
[code]...
Can somebody please explain why lblName2 is becoming the fifth line of text instead of the third? I realise I have probably not used the correct type of variables
View 4 Replies
Sep 16, 2009
I am attempting to get hiscores into the correct order but.. I am having troble with some of it.. I have this for my sort alogrithm
Code:
For i = 0 To Howmany
For j = i + 1 To 9
If ArrScore(i) < ArrScore(j) Then
temp = ArrScore(i)
[CODE]...
The hiscores text file looks like this:
Code:
Stuart:120,LoL:192,Computer:112,LoL:113,
The immediate window looks like this when its run.
Code:
0 1 , Stuart , 120
0 2 , LoL , 192
1 2 , 120 , 120
2 3 , Computer , 112
2 4 , LoL , 113
3 4 , 112 , 112
View 3 Replies
Sep 30, 2009
I am a new user to VB and I am having difficulty with one of my assignments. The assignment states that to create an application that allows a user to enter three test scores each for three students. The application should calculate each student's average test score and assign a letter grade. The application should prompt the user for each student's name and three test scores.
[Code]...
View 3 Replies
May 13, 2012
I need to create high quality icons for my current project in vb.net
This is my code so far,
Private Sub CreateIcon(ByVal bitmapName As String)
Try
Dim fi As New System.IO.FileInfo(bitmapName)
[Code].....
But the problem is it only gives me a very low quality icon at the end. how to make a higher quality image?
View 1 Replies
Jul 7, 2011
Create a program which promps the user to enter an unlimited number of test scores. The program should show the high score and the low score. You should use a loop of your choice within this program. The program should look similar to the one below:
View 3 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
Nov 7, 2010
link [or links] which explain how to create a stock open/high/low/close bar [or candle stick] chart in Visual Basic 2010 Express.
View 3 Replies
Mar 1, 2010
if a byte value can go up to 255 and two bytes are used to determine the length of packet payload data, how would I convert the two bytes to create one integer value?
State.buffer[13] = 5 and State.buffer[14] = 67
Dim PacketLengthHigh As Integer = state.buffer(13)
Dim PacketLengthLow As Integer = state.buffer(14)
[code]....
View 3 Replies
Apr 28, 2011
i have made a pong game and it is relatively simple, but i want to add a timer to time how many points you loose with in 5:00 minutes. then i want to make it save to a form where the user can view it. the code i have used so far is
Public Class Pongmain
Dim speed As Single = 10 ' Ball Speed
Dim rndInst As New Random() ' Random instance
[code]....
View 2 Replies
Jul 5, 2011
I have a number of programs written in VB.NET 2010 that load and run on every computer I've tried them on. This week I replaced my mother board with an IBM mother board using a Pentium 4 running Windows XP Pro. I install the programs but as soon as they start to run, they immediately shut down. If I run them in Visual Studio 2010, they run fine.
View 2 Replies
Dec 30, 2010
I'm newbie in VB and in my project I need a refresh loop to check an input usb board... everything runs well but I want a 100 ms refresh without button click needed[code]...
View 1 Replies
Oct 2, 2010
I need to control this terminal Board and I have absolutely no idea if this is can be done. This board is connected to the PC Via PCI Card. Can we do that using .Net Framework?
View 7 Replies
Aug 6, 2009
What I want it to do is, as I'm typing the word, that it highlights it on the board using the button(x,y).doclick sub which highlights it. Right now my implementation finds the first letter, then keeps trying each letter until it meets the 8 corner condition (ie it is neighbored to the last one) but this does not always work. If there are say 2 "G"'s on the board and I want the bottom one, this will not work. Can somebody give me an example of psuedocode
View 1 Replies
Dec 3, 2009
I am trying to catch key board events with the form keydown.
I am able to capture all the keydown events except the "Enter" key. When the enter key is pressed this code does not even fire.
Private Sub FrmMain_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
Select Case e.KeyCode
[Code].....
View 2 Replies
May 30, 2010
We learned How to assemble an input/output control board that would connect to your serial port. We were able to use out statements (back in the old gwbasic) to send output signals to the parallel port to turn on/off different outputs. The board had connections where you could connect lights, relays, etc, and had connections where you could attach switches and sensors.
I have been looking for something simple that I can manipulate in my programs. I already have an ActiveHome X10 interface which includes an activex for receiving and sending x10 signals (home automation, turning lights on/off, etc.). I want something that I can straight out connect relays to, and sensors as well. I don't want something that connects to the serial port since that is already being used up, the parallel port would work fine, or even better usb.
View 6 Replies
Mar 18, 2009
I am making a variation of the board game Trivial Pursuit. I am having trouble moving my piece around the board. The board is a circle divided into 32 squares, that are coloured. I am wondering how to get the players pawn to move around the board if it is a circle. They have to move according the the number they role on the dice. I have the dice rolling and finding numbers, but its the moving i'm having trouble with
View 1 Replies
Jan 2, 2012
I'm currently developing a chess program. In my program, the problem I'm currently having is the slow drawing of the initial board. Here's part of my _gameGraph.DrawImage(MyResources.Marble_White, New Rectangle(x, y, 70, 70)) The code here draws the black & white squares using a for/next loop. I later use another for/next loop on the array holding the piece values, which uses the same type of function to draw the pieces on top of the squares. Both the pieces and the squares are .PNG images.
[Code]...
View 18 Replies
Jun 12, 2011
I am trying to control the security board using the Windows Firewall which connects to my server that was made in VB.Net. My only problem is when I open the Windows Firewall my server crashes. It also displays this error: "Error, win%fir%90y4e does not support this server. upgrade you version of Winsock.". So I upgraded myself to the latest Winsock that there is out there. After doing so I try again and my server still crashes, but this time with a different error. The error this time was the following: "Error, no client is available for win%fir%90y4e. try again later.". What do I do?
View 5 Replies
Dec 9, 2009
I am trying to get this code to count the scores which are the same and tell how many students had the same score. I can get it to add 1 to it but I can not get it to tell how many students had the same score.
Private Sub displayButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles displayButton.Click
Dim scores() As Integer = {88, 72, 99, 20, 66, 95, 99, 100, 72, 88, _
[code].....
View 3 Replies
Apr 10, 2011
I want it to increment by 1.I have this code from net but I found hard to understand the first line :
If Decimal.TryParse(TextBox1.Text, userAnswer) Then
If answer = userAnswer Then
score += 1
TextBox2.Text = score
[code]....
View 7 Replies
Apr 28, 2009
I am completely new to VB ( and frustrated) and I need help with my code below What I am telling VB to do is to get the number in the txtScore, store it in an array ( no clue how to do this)Sum of all scores goes to the txtTotal. Then I need vb to count how many are stored in the array after that get the average by accessing the txtTotal divide by the txtScoreCt and show it on my txtAverage.
Dim Scores(100) As Integer Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[Code]...
View 1 Replies
Mar 14, 2011
I am trying today to write a code that enters all the scores I enter in a textbox(txtscore). I think I almost have it but it will not work properly for me. Her is the the sub I am using to list this code. the array is called arrScore.
Private Sub btnEnterScore_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnEnterScore.Click
Dim score As Integer = 0 'counting
'check for valid input
[code]....
View 3 Replies
Jan 9, 2010
I'm in the process of making board game created into a pc game. It will be a 2-d basic board game. What I'm looking for, how to move pixels a certain space. I'm not all certain on how the game is played but right now I'm just wondering how to move a picture certain number of spaces. This will most likely be based on a dice roll I'll create later.
View 6 Replies
Apr 20, 2012
is there a way to capture or to save the story board animation to media library in windows mobile? Currently i am working with an animation which changes the image for every second. How can i save this into a video format??
View 1 Replies
Nov 2, 2009
I have this codes here whereby my objective is to develop a writing network applications of programming, a means of sending data to a message board(messaging system). My problem is I couldn't connect it to the server's IP address and port num to send a data through a message board. However I could only display at Form2 txtReceive.
Text = HexConvert.Data_Asc_Hex(sData),
Whereby this code could only convert whatever data(txtSend) that is being typed in, could then convert hex decimal into a textbox(txtReceive). The final result that I would want to achieve is to be able to display the at the textbox(txtReceive) is the <"message protocol"> & <"hex message that is being typed"> & <"parity bit"> into the txtReceive box.
Form form 1, my codes are....
Imports System.Net.Sockets
Imports System.IO
Public Class Form1
Const portNo As Integer = 1234
Dim client As TcpClient
[Code] .....
View 2 Replies