Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9089285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T22:07:09+00:00 2026-06-16T22:07:09+00:00

I am working on a project that is for an image hosting site and

  • 0

I am working on a project that is for an image hosting site and I need to find a way so that when a function is called by the user hitting the hotkeys it will trigger a timer for x amount of seconds that will disable that function from being called.

I already have the function setup and the hotkeys all I need to add is disabling the function from being called inside the timer while it is ticking. Any ideas? Or is it possible?

Best Regards & Many Thanks, Aurora

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T22:07:10+00:00Added an answer on June 16, 2026 at 10:07 pm

    The easiest way would be to set a Boolean Variable before you start your Timer then reset it in your Timer’s Tick EventHandler.

    Something like this:

    Public Class Form1
        Dim disableFunction As Boolean = False
        Public Sub New()
    
            ' This call is required by the designer.
            InitializeComponent()
    
            ' Add any initialization after the InitializeComponent() call.
            Timer1.Interval = 2000 '2 second wait time
        End Sub
    
        Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick
            Timer1.Stop()
            disableFunction = False
        End Sub
    
        Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
            If disableFunction Then Exit Sub
            disableFunction = True
            Timer1.Start()
        End Sub
    End Class
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a project that will do a simple contrast of an image,
I am working on a project that requires some image processing. The front end
I am working on a project that needs rasterizing of drawings into image files.
I'm working on a small project that involves me loading an image into a
I'm working on a project that involves uploading an image to tumblr from Python.
Im currently working on a project that requires the following. I need to be
im working on an HTML5 project that uses multiple canvases, after the user finishes
i have project that I'm working on and i need to add search to
I'm working on a project that has me approximating text rendered as an image
I am working on a project that requires manipulating an image depending on the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.