Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
Im new to vb.net my experience is with vb 6.0 until a day or two ago. I am making an alarm program that displays the time, lets you input when you want to "wake up" and then sets the alarm in motion. having trouble with the actual alarm part here is the files. if somebody can fix and or tell me what was wrong let me know will be in your debt thanks

timer101.zip

Posted

use

timonoff = False

MsgBox("WAKE UP WAKE UP WAKE UP", , "WAKE UP!")

TextBox1.Text = ""

 

instead of

 

MsgBox("WAKE UP WAKE UP WAKE UP", , "WAKE UP!")

timonoff = False

TextBox1.Text = ""

George C.K. Low

Posted

12 hours diff,

mine is 1:30 pm

 

try to put this and see

 

 Dim curtime As Date = Format(Date.Now, "HH:mm:ss")
       timedisplaybox.Text = curtime

       'this next step is supposed to take the user input for the alarm time off combobox2 and combobox1 and then compare it to the current time in hours/seconds and then if it equils to be the same the message box comes up
       '
       If CStr(curtime.Hour) = ComboBox2.Text AndAlso CStr(curtime.Minute) = ComboBox1.Text AndAlso timonoff = True Then
           timonoff = False 'this stops the alarm from auto-initalizing
           MsgBox("WAKE UP WAKE UP WAKE UP", , "WAKE UP!") 'this is supposed to happen when the if statement is all true
           TextBox1.Text = "" 'clears the textbox where the alarm time was displayed
       End If

George C.K. Low

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...