PC Review


Reply
Thread Tools Rate Thread

disabling event procedure

 
 
alien2_51
Guest
Posts: n/a
 
      28th Oct 2004
I'm writing a vb.net windows app, I have a collection I'm
databinding to a combo box, in the selected index changed
event of the combo box I write to a property on another
object. My problem is the proprty gets written to in the
form load (when I data bind) causing my object to be dirty
when the user has not changed anything. Is there a way to
disable the selected index changed event during the form
load and reenable at the end of the form load...?


Thanks!!!
 
Reply With Quote
 
 
 
 
alien2_51
Guest
Posts: n/a
 
      28th Oct 2004
I figured it out....
AddHandler

Thanks..

>-----Original Message-----
>I'm writing a vb.net windows app, I have a collection I'm
>databinding to a combo box, in the selected index changed
>event of the combo box I write to a property on another
>object. My problem is the proprty gets written to in the
>form load (when I data bind) causing my object to be

dirty
>when the user has not changed anything. Is there a way to
>disable the selected index changed event during the form
>load and reenable at the end of the form load...?
>
>
>Thanks!!!
>.
>

 
Reply With Quote
 
Bob Hollness
Guest
Posts: n/a
 
      28th Oct 2004
and the answer was.......?

alien2_51 wrote:

> I figured it out....
> AddHandler
>
> Thanks..
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Set an Event Procedure to User Procedure Cory Microsoft Access Form Coding 3 24th Nov 2008 04:53 PM
Call subform event procedure from main form event procedure ? =?Utf-8?B?cGxj?= Microsoft Access Form Coding 2 26th Oct 2006 10:15 PM
Procedure declaration does not match description of event or procedure Paul Camilleri Microsoft Access Form Coding 3 19th May 2004 05:18 PM
Disabling specific event from windows event log jxxx Microsoft Windows 2000 0 29th Mar 2004 07:46 AM
OnTime event not firing in Workbook_Open event procedure GingerTommy Microsoft Excel Programming 0 24th Sep 2003 03:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:12 AM.