[EASY] Make your own Alarm menu

Shout-Out

User Tag List

Results 1 to 1 of 1
  1. #1
    Mitron's Avatar Contributor
    Reputation
    127
    Join Date
    Jun 2008
    Posts
    1,326
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [EASY] Make your own Alarm

    I know Warsheep made this guide before but its old and havent any feedback. It's a good thing to create when you are learning VB. I use Warsheeps codes + i made it easier and a little more codes and such
    BUT i wont explain what the codes do!!!
    All Credits to Warsheep for the Codes and Idea!
    Im just giving a new life to the alarm idea !!!

    It's Created in Visual Basic 2008

    First make a new Windows From and size it like you want and use
    3 buttons 3 labels 2 trackbars 1textbox and 1 timer.

    for example:


    this is the best way i found they could be placed in but u can always place it as you want

    make them in this order (timer is not there cuz its not showing)
    Label1
    Textbox1 Set it so its unable to Edit it. Can be confusing.
    Label2
    Trackbar1 set minimum value to 0 and maximum value to 24 (hours)
    Label3
    Trackbar2
    set minimum value to 0 and maximum value to 60 (minutes)
    Button1 Will be the ON button
    Button2 OFF Button
    Button3 Close Button


    like this one:



    The labels dont need codes so we start to work on the other things
    Finish the layout so buttons and such things are where you want them.

    Now we start with coding.

    This is a little example if you dont know how to do:
    I have maked a button but needs to code it. i double click button and VB automatically creates:
    Code:
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    
        End Sub

    so where to put the code ! It is where i make it red colored here:
    Code:
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    NOT SO HARD IS IT ??? CODE HERE!!!
        End Sub


    Ok start to put this right under Public Class Form1:

    Code:
        Dim thehour As Integer
        Dim theminute As Integer
    Then double click on your Timer and type this code:
    Code:
      If TimeOfDay.Hour = (thehour) And TimeOfDay.Minute = (theminute) Then
                Media.SystemSounds.Beep.Play()
            End If
    The Beep sound is probably able to change but i dont know how !


    Double click Trackbar1 and enter this code:
    Code:
    thehour = TrackBar1.Value()
            TextBox1.Text = ("H" & thehour & " M" & theminute & " ")
    Now double click Trackbar2 and enter this code:
    Code:
     theminute = TrackBar2.Value()
            TextBox1.Text = ("H" & thehour & " M" & theminute & " ")
    This will make the Textbox work and show wich time the alarm is on. H10 M33 Means the clock is 10.33

    Double click Button1 and use this code:
    Code:
    Timer1.Start()
    Now for Button2:
    Code:
    Timer1.Stop()
    And for last Button3:
    Code:
    Me.Close()
    And The Labels is for showing what that part does. Look at Picture!

    Congratulations you should now have a working alarm with annoying sound!!!
    Last edited by Mitron; 04-21-2009 at 01:03 PM. Reason: Addedone more screenshot

    ----------------------------------------------------------------

    [EASY] Make your own Alarm

Similar Threads

  1. Sculptris - Make your own 3d sculptures EASY
    By Maisteri in forum Community Chat
    Replies: 4
    Last Post: 07-25-2010, 11:30 AM
  2. [Guide] Make your own WOTLK 3.0.3 server using ArcEmu!!! (easy)
    By Jackie Moon in forum WoW EMU Guides & Tutorials
    Replies: 114
    Last Post: 01-26-2009, 05:28 PM
  3. how to make your own gear and vendor and weaps easy
    By marsa in forum WoW EMU Guides & Tutorials
    Replies: 8
    Last Post: 01-24-2009, 05:23 PM
  4. Easy guide on how to make your own server
    By shadow5677 in forum WoW EMU Guides & Tutorials
    Replies: 21
    Last Post: 10-29-2008, 09:11 PM
  5. [Easy] How to Make Your Own WoW Forum Avatar!
    By Roflcopterzzz in forum Art & Graphic Design
    Replies: 21
    Last Post: 05-28-2007, 10:09 AM
All times are GMT -5. The time now is 05:52 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search