473,383 Members | 1,735 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

how to avoid "invalid property value" in a combo box when empty

Hi

I have a few combo boxes where the match is required.

When I select a value and then delete it and go to another control then I get very user unfriendly message "invalid property value".

I want to allow to go to a different controls if the value is empty and if the value is not in a drop down box I want to either display a user friendly msgbox or clear the drop down box value.


Many thanks in advance
Emil
Mar 17 '09 #1
5 11403
kadghar
1,295 Expert 1GB
if the match is required, and there's no match, i think the msgbox is quite logical. Why dont you add an 'empty' element to your combobx?
Mar 17 '09 #2
Yes it is logical but I need something with user friedly explanation.

The thing is that several hundred people will be using this solution and I doubt my customer will want to answer their question what "invalid property value" mean, so ideally I need something to display a proper message box. I have tried before update but the error appear before this event.

Regards
Emil
Mar 17 '09 #3
kadghar
1,295 Expert 1GB
i see your problem.
Well, i dont know if there's an option to change this kind of error messages,

But why dont you try, instead of forcing the combobox matching, checking in the 'change' event of the combobox if the box's Text property matches with any element, if it doesn't, send a custom msgbox and select a default value.

HTH
Mar 17 '09 #4
Thanks changing the property to false and using .matchfound did the job!!

Will save me a lot of time
Mar 17 '09 #5
Can You Help how to convert videos flv in any format in vb6
Mar 17 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Stephen Poley | last post by:
Could some kind soul explain the errors and warnings that the W3C CSS validator generates for page: http://www.atlis.nl/testsite/nl/ Results at: http://tinyurl.com/5pxqx The error "Invalid...
9
by: Anders Borum | last post by:
Hello! I have a class that needs to validate the input value, when a programmer changes a specific property on a class. The input should only accept the following pattern {1,n} (alpha-numeric...
1
by: charliewest | last post by:
Using the .Net Compact Framework, how is it possible to override the SelectImageIndex property? I am trying to achieve the following: That when a user selects a node, or child-node, that the image...
5
by: Mark Ingram | last post by:
Hi, ive written a custom control and i would like to display the "invalid property value" dialog box for certain properties on my form if the user enters a value outside the allowed range (in the...
2
by: Dabbler | last post by:
In my Registrant FormView I have a DropDownList which loads data from a secondary SqlDataSource "sdsOfficeParks". I need the user to select an office park but save the selected value in the...
0
by: Bruce | last post by:
It there a way that would allow me to create a cnonce value when using the HttpWebRequest/HttpWebResponse objects for connectivity? If the "WWW-Authenticate" header returns the "qop" I need to be...
1
by: eBob.com | last post by:
I have some code which is trying to determine where text will wrap in a custom text box (which Inherits from Control). It determines the number of characters which will fit in the first line, but...
3
by: Simon van Beek | last post by:
Dear reader, What can be wrong in my ComboBox, the property "Auto Expand" is set to Yes, but by typing in the ComboBox it doesn't expand. Is this because the source of the ComboBox is a...
7
by: adigga1 | last post by:
Hello EveryOne, I have a situation with a Form running an event; It works fine when it calls or manipulates number values; but when I put a character within the numbers or use alpha-numeric...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.