473,800 Members | 2,523 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

93 New Member
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 11455
kadghar
1,295 Recognized Expert Top Contributor
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
emsik1001
93 New Member
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 Recognized Expert Top Contributor
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
emsik1001
93 New Member
Thanks changing the property to false and using .matchfound did the job!!

Will save me a lot of time
Mar 17 '09 #5
simonrule
6 New Member
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
3013
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 number : borderParse Error - " may be due to something I've done, but I'm blowed if I can see what. While the warning "property display doesn't exist for media" has me baffled.
9
3500
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 with atleast one entry). I'm a little resistant to implementing a regular expression validation, because of the overhead involved (not because I can't :-). Obviously, it's possible to implement the pattern validation using regular string ops ..
1
2357
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 does not change. By default, the TreeView control selects the image in the ImageList at position 0. Thanks,
5
2766
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 visual studio designer). e.g. If i had a percentage property, i would want the user only to be able to enter Int32 values between 0&100. How can i do this?
2
7917
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 FormView's ObjectDataSource "odsRegistrant" . The following solution can't work because I need the ddl selected value bound to my odsRegistrant but both tables have the same column name for primary key. <asp:DropDownList ID="ddlOfficePark"...
0
1715
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 able to set the cnonce value in the reply? I don't see any way that I can do this. I am trying to get connectivity with RETS a rets site that has client authentication enabled and need to be able to generate a specific RFC 2617
1
2814
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 then encounters an exception when it calls MeasureCharacterRanges to see if the next character, i.e. the one destined to become the first character of the second line, will fit. The message says only "Invalid parameter" - it does not say which...
3
17258
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 query.
7
6140
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 values, I get this error "enter parameter value" when i press my click action button with the alphanumeric value as the problem.. Please assist, I searched the entire forum and the net for answers, but nothin. A...... I apologize for the...
0
10501
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10273
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10250
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10032
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7574
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6811
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5469
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4149
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.