by Adam K (1 Submission)
Category: Graphics
Compatability: Visual Basic 5.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating:
(3 Votes)

This code could be used in games or whatever, to create a radar screen. It could also be used for a second hand timer, or something.
Inputs
First put a circle on your form. It has to be a perfect circle. Then put two lines on the form. Call one 'dummy' and the other 'real_line'. The dummy line's y2 should be half of the circle's height plus the circle's top. The x2 should be the same as the circle's left property. The x1 should be the sum of the circle's left property plus the circle's width property. The y1 property should make a 45* angle from (x2,y2). The real_line line center should be right in the center of the circle. The other end doesn't matter.
-I have upload an example for a little bit of help - sorry for the bad expl.
Download Radar Screen In Visual Basic (795 Bytes)