by Timo Boehme (1 Submission)
Category: Games
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (3 Votes)
I just wanted to show how you can resize your form by using the "for each - next" methode. But when I was writing the code, I'd like to show any good solution why this code could be nice. I think you know the game "sensor". You have to play the same sounds like the computer plays. I'm not good in English but just have a look and tell me the level you reach :-)
Side Effects
I've included Wave files and a picture. You can modify it or let them away if there are any problems.
API DeclarationsPrivate Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" ( _
ByVal lpszName As String, _
ByVal hModule As Long, _
ByVal dwFlags As Long) As Long
Private Declare Function GetShortPathName Lib "kernel32" Alias "GetShortPathNameA" ( _
ByVal lpszLongPath As String, _
ByVal lpszShortPath As _
String, _
ByVal cchBuffer As Long) As Long
Download TB-Sensor (172 KB)