PC Review


Reply
Thread Tools Rate Thread

ComboBox Validating event not firing

 
 
Graeme Richardson
Guest
Posts: n/a
 
      23rd Aug 2003
I'm trying to implement an MS Access style NotInList event for a ComboBox.
I've selected the Validating event of the ComboBox and entered code to add
values where the index = -1 (i.e. text entry is not in the list).
What I've found is that if the user drops down the list, types a new entry
and then clicks away, the Validating event doesn't fire.
It seems that I can get the Validated event to always fire but I want to use
the Validating event since it can be cancelled (through the
System.ComponentModel.CancelEventArgs object of the event)
I have the these properties set: CausesValidation = True and DropDownStyle =
"DropDown"
Does anyone have a workaround or suggestion for how I can implement this?

Thanks, Graeme.



 
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
Validating event firing twice when using UserControl maksim.yevstratov@gmail.com Microsoft Dot NET Framework Forms 1 24th Jul 2006 02:10 PM
Validating Event Not Firing Ian Jewitt Microsoft VB .NET 5 28th Sep 2005 04:29 PM
TextBox Validating event firing twice Microsoft C# .NET 7 14th Jul 2005 07:40 AM
TextBox Validating event firing twice DanDanDan Microsoft C# .NET 0 14th Jul 2005 06:04 AM
Validating event not firing for a checkbox Marina Microsoft Dot NET Framework Forms 1 4th Apr 2005 05:43 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:51 AM.