Solved

Is it possible to disable events for a control temporarily?

Posted on 2009-04-01
3
243 Views
Last Modified: 2013-11-26
I have a problem. I have 2 textbox controls each firring an event when the text is changed which changes the text in the other textbox. While I can make it work without getting into an infinite loop it causes a lot of problems. Is it possible to disable events for a control temporarily?
0
Comment
Question by:Suppai
  • 2
3 Comments
 
LVL 48

Expert Comment

by:jpaulino
ID: 24037683
You can use RemoveHandler to remove events.
0
 

Author Comment

by:Suppai
ID: 24037710
How exactly do I do that?
0
 
LVL 48

Accepted Solution

by:
jpaulino earned 500 total points
ID: 24037752
Check this example
http://msdn.microsoft.com/en-us/library/3xz97kac.aspx
You can addhandler to control and then remove it when necessary
0

Featured Post

The New “Normal” in Modern Enterprise Operations

DevOps for the modern enterprise offers many benefits — increased agility, productivity, and more, but digital transformation isn’t easy, especially if you’re not addressing the right issues. Register for the webinar to dive into the “new normal” for enterprise modern ops.

Question has a verified solution.

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

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

828 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