Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Is it possible to disable events for a control temporarily?

Posted on 2009-04-01
3
Medium Priority
?
247 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
[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
  • 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 1500 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

721 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