Here's part of the code:
Private Sub gametime_Timer()
Dim hour1 As String, min1 As String, sec1 As String
sec = sec + 1
If sec >= 60 Then
sec = 0
min = min + 1
End If
If min >= 60 Then
min = 0
hour = hour + 1
End If
If hour >= 24 Then...
There is a timer, the label caption changes every second and shows the seconds elapsed. The second label shows the count of certain keyboard strokes (arrow keys).
"it" was what was suggested in the third reply.
At this point "it" is everything what was suggested before.
I tried refresh, I tried doevents and Lock Window update. The labels still flicker.
I have two labels where contents change during run-time. Caption changes on one depending on the actions and on the other one I have the timer. When both of them change their captions they flicker, how do I get rid of that? I tried to make them transparent or non-transparent, play with different...
How do you save a color in a binary file?
Do you assing special values to R, G and B, or you can actually save a hexadecimal color value as string and then use it, if so, then how do you convert it back?
I am getting a NullPointerException error and I cannot see where it is. It points to line 19 but I can't find what's wrong.
import java.awt.*;
import java.lang.Object;
public class Algorithm {
public static void main (String args[]) {
int deletedLines = 0;
Label...
I am getting a NullPointerException error and I cannot see where it is. It points to line 19 but I can't find what's wrong.
import java.awt.*;
import java.lang.Object;
public class Algorithm {
public static void main (String args[]) {
int deletedLines = 0;
Label place[][]...
What is the shortest way to make the window non-resizable?
The function I found takes about 3 pages long that is why I thought about that kind of a cheater way to resize the window back when the user tried to change the size.
I have a number of buttons which are stored in a two dimensional array. How do I make the program to know what button I clicked on? Something like mouseClicked event in Java.
I made a game of 15 which works just fine with mouse clicks. I want it to respond to keyboard clicks such as left, right, up and down keys. How do add that feature to this code? I tried KeyDown, KeyUp, KeyPress and they just won't reaspond. I tried it on both the actual form and the button...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.