Results 1 to 7 of 7

Thread: How to build a Vb application sitting in the task bar after windows startup?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2002
    Location
    Ontario
    Posts
    4

    How to build a Vb application sitting in the task bar after windows startup?

    Hi folks,

    I want to build a VB application which can sit in the task bar after
    windows start up and schedule do some job every about 10 hours.

    Your generous help is appreciated!

    Cheer!

  2. #2
    Megatron
    Guest
    See this link regarding how to get your app in the system tray.

    To make your App run at startup, either put it in the Start Up folder, or add a registry entry to the following path: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run.

  3. #3
    Lively Member
    Join Date
    Jun 2001
    Location
    Australia
    Posts
    83
    Then use GetTickCount() to check if 10 hours have past.

    Private Declare Function GetTickCount& Lib "kernel32" ()

    Private Sub Something()

    tic& = ((GetTickCount&) / 60000)

    MsgBox Str$(tic&)

    End Sub

  4. #4

    Thread Starter
    New Member
    Join Date
    Jan 2002
    Location
    Ontario
    Posts
    4

    Cool, more question if you donot mind.

    Thanks Megatron and Akia ,

    I want the VB application be triggered automatically to do something every ten hours when it is dormant at the system tray.


    Thanks

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    Use a timer to check the system time at a designated interval, and do something when a specific time is reached.

  6. #6

    Thread Starter
    New Member
    Join Date
    Jan 2002
    Location
    Ontario
    Posts
    4

    Smile It works! Thanks folks!

    It works!

    Have a nice day, hack!

  7. #7
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

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