[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

button1.PerformClick() not working when a different tab is in focus

Posted on 2008-06-19
1
Medium Priority
?
1,124 Views
Last Modified: 2013-12-16
Hi Guys,

Here's my problem.

1. I have a tabcontrol with 3 tabpages.
2. I also have a timer. Now when this timer reaches zero it is supposed to do a button1.PerformClick()
3. Everything works fine when i am viewing tabpage1 as the timer reaches zero, performs the click and works fine.
4. When I am viewing tabpage2 or tabpage3 whilst the timer reaches 0, it does not do the button1.performclick()

I am using VS 2008 C#

What Am i missing here. ... probably something simple (hopefully) . Any help would be much appreciated.

Regards,

Marek
0
Comment
Question by:chudmarek
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 9

Accepted Solution

by:
djon2003 earned 1600 total points
ID: 21827579
Do you require the button to be clicked or only the code when clicked to be run ? If it's the second one I would suggest to extract the code from the button to create another sub accessible from both place (button & timer).

Then call the new subroutine from you button click event & from your timer event
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question