![]() |
VB question
in my programming class we r making a simple game.
the point of the game is to press as many buttons as possible in sertain amount of time, X is represented as the buttons. but idk how to assign the buttons to be X. there are currently 20 buttons atm. some of the code and 1 button as following: Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick If x < 10 Then Form2.Visible = True Me.Timer1.Stop() Me.Timer2.Stop() End If End Sub ----------------------------------------------------------------------- Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick If x > 10 Then Form3.Visible = True Me.Timer1.Stop() Me.Timer2.Stop() End If End Sub ----------------------------------------------------------------------------- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Button1.Dispose() |
Re: VB question
Surely you can explain your problem better than that!
For example, this: "X is represented as the buttons." is senseless, along with things like "r", "idk", and "atm" (do you need cash?). |
Re: VB question
Hi,
Why not give us your source code whatever written? If you have written game logic then please give it to us too. Cheers |
Re: VB question
Your query is very vague, please post your code.
|
Re: VB question
i did put the code.
that is all i have i havent been able to move foward with out letting the application know that the buttons represent X. ill repost the entire code when i use the computer which i made the game on. im new at this and its a class work/mini project... i shall repose the code asap. thank you |
Re: VB question
code:
Code:
Public Class Form1 |
| All times are GMT +5.5. The time now is 19:20. |