Results 1 to 2 of 2

Thread: i'm a chef

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2006
    Posts
    366

    i'm a chef

    Hi i'm a chef, and i have written this little piece of code, that has 6 alarms in, and a textbox, so that i know when more than one thing in the oven is ready, but i cant get it to beep when the alarm goes off, it works, i know, because i also have made it so that the name of the alarm goes red when the alrm goes off, so i know which one it is.
    Can someone please help me make this alarm work, and if poss, make the text box flash red and white, while the alarm is going off.

    Thanks

    Alex
    Attached Files Attached Files

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: i'm a chef

    i checked you form and it beeps for me, but if the time is not written in the textbox in exactly the same format as it is in the label then it will fail, 2 solutions to that, instead of text2.text = label.caption
    try text2.text< label.caption
    or
    format both label and textbox so they are identical

    also you don't seem to stop the timer when either the alarm goes or the stop is clicked
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width