|
-
May 24th, 2000, 09:06 AM
#1
Thread Starter
Member
I'm trying to make an alarm program simply to learn with. I am having a hard time though figuring out how to code it right. So here's the way the forms are. First form asks the user to type in a time in a text box anywhere from 12:00 to 11:59. Then they can click a radio button for either am or pm. Then when the user clicks the OK button, it enables the timer to true and when the timer reaches the "alarm" time, it shows form 2 which beeps and displays a wake up message.
I'm somewhat familiar with the timer object, but none of the books I have give me enough info to make this work. Do I take the text box where someone types in a time and put it into a variable? And then make the radio box into variables also. Then put the text box variable and add it with the radio box variable to get a final variable with a legitimate am or pm time? Then I assume I pass that final time to the timer telling it that when it reaches that time to show form2. I don't know if I'm in going in the right direction, but if anyone could help me out, I'd really appreciate it. Also, are there any tutorials online that anyone knows of that might help me learn more about using the timer object? Thanks very much.
Geoff
-
May 24th, 2000, 09:55 AM
#2
Addicted Member
Advance in the right Direction ---->>
The program you wanted is actually a sample demo from microsoft visual basic 5. If you have VB5 CD , then this alarm example should be in ...
\VB\SAMPLES\PGUIDE\ALARM\ALARM.VBP
in your CD.
If you want it , I can Email it...
If you can't pronounce my name, call me GURU 
-
May 24th, 2000, 09:37 PM
#3
Thread Starter
Member
I don't have the vb5 cd, only the vb6 cd. If you could send it to me, I'd really appreciate it. Thanks a lot! Send it to [email protected]
-
May 25th, 2000, 03:11 AM
#4
It's in the vb6 CD as well. Look in your samples directory.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|