As with most of the people who decide to join this forum, I\'m rather new to VB. So far, most of my problems have been answered by a simple search, but this time around I wasn\'t so lucky, even after several attempts. \r\n \r\nI\'m using Visual Basic for Visual Studio 2005 at the moment, and basically what I\'m trying to do is prevent my users from manually typing in a choice in a combo box that isn\'t in the selection I\'ve given them. It\'s an unbound source, so it should be simple enough... I\'m just having a hard time finding the right events/methods to use to do this in a neater manner than having to brute force it over the whole list. It feels too messy. \r\n \r\nEdit: So far I\'ve tried using the ComboBox.Validated() event, but somehow this seems counterproductive to me - I want the event to trigger when the contents are not valid, not when they\'re valid. \r\n \r\nApologies in advance if I put this in the wrong forum or if I didn\'t give the right info somehow... hopefully my first shot at asking for help wasn\'t a bad one.
As with most of the people who decide to join this forum, I'm rather new to VB. So far, most of my problems have been answered by a simple search, but this time around I wasn't so lucky, even after several attempts.
I'm using Visual Basic for Visual Studio 2005 at the moment, and basically what I'm trying to do is prevent my users from manually typing in a choice in a combo box that isn't in the selection I've given them. It's an unbound source, so it should be simple enough... I'm just having a hard time finding the right events/methods to use to do this in a neater manner than having to brute force it over the whole list. It feels too messy.
Edit: So far I've tried using the ComboBox.Validated() event, but somehow this seems counterproductive to me - I want the event to trigger when the contents are not valid, not when they're valid.
Apologies in advance if I put this in the wrong forum or if I didn't give the right info somehow... hopefully my first shot at asking for help wasn't a bad one.
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET. subscribe