Solved

Is it possible to disable events for a control temporarily?

Posted on 2009-04-01
3
240 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now