473,394 Members | 1,806 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,394 software developers and data experts.

Invalid property value window

Is there any way to have a custom property display the window that appears when an invalid property value is entered in a PropertyGrid control? I'm refering to the window that has the title "Properties Window" and displays the message "Invalid property value." The window also has the "Details" button

Thanks
Lance
Nov 20 '05 #1
5 2120
Lance:

I believe if you throw an exception in your set access modifier, it will
happen automatically.
"Lance" <zi***@hotmail.com> wrote in message
news:FF**********************************@microsof t.com...
Is there any way to have a custom property display the window that appears when an invalid property value is entered in a PropertyGrid control? I'm
refering to the window that has the title "Properties Window" and displays
the message "Invalid property value." The window also has the "Details"
button.
Thanks,
Lance

Nov 20 '05 #2
Hi Lance,

Thanks for posting in the community. My name is Peter, and I will be
assisting you on this issue.

First of all, I would like to confirm my understanding of your issue.
From your description, I understand that you wants to customize the the
window that has the title "Properties Window" and displays the message
"Invalid property value."
Have I fully understood you? If there is anything I misunderstood, please
feel free to let me know.

Based on my researching, I think this can not be achieved so far.

To achieve your aim will alter the internal behavior of Windows Forms
classes is not supported by Microsoft. We strongly recommend not to do so.

We have a similar issue before, and the answer is same.
http://groups.google.com/groups?hl=e...readm=eQjwGGyw
DHA.1996%40TK2MSFTNGP12.phx.gbl&rnum=1&prev=/groups%3Fhl%3Den%26lr%3D%26ie%3
DUTF-8%26oe%3DUTF-8%26q%3D%2522ying-shen%2522%2B%2522invalid%2Bproperty%2522

If you wish to have this feature, you may post the suggestions to our
MSWish program
http://register.microsoft.com/mswish/suggestion.asp

Thank you for you understanding!
Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 20 '05 #3
Thanks. That was easy!
-----Original Message-----
Lance:

I believe if you throw an exception in your set access modifier, it willhappen automatically.
"Lance" <zi***@hotmail.com> wrote in message
news:FFE30D6E-8F01-43D7-97CA- 2F**********@microsoft.com...
Is there any way to have a custom property display the

window that appearswhen an invalid property value is entered in a PropertyGrid control? I'mrefering to the window that has the title "Properties Window" and displaysthe message "Invalid property value." The window also has the "Details"button.

Thanks,
Lance

.

Nov 20 '05 #4
William Ryan's reply is all that I needed to know.
Thanks.
Nov 20 '05 #5
Hi Lance,

I am sorry that I misunderstand your meaning, I have thought that you wants
to customize the window that has the title "Properties Window" and displays
the message "Invalid property value."

I am also glad that William Ryan's suggestion works for you. If you still
have any concern on this issue, please post here, I am glad to help you.
Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Aaron | last post by:
Hi, I've seen javascript code where a constructor function is passed an argument "document", and inside the function itself the assignment "this.document = document;" is made. This is the code...
3
by: Job Lot | last post by:
I have added a ProgressBar control to StatusBar control and created a custom property as below, to show the properties of the ProgressBar in Property Window of StatusBar. <Browsable(True)> _...
0
by: Robert Hooker | last post by:
I know that this question has been batted around here for a while - and I know that sample code, using reflection and poking around inside the propertygrid class, has been posted by a kind soul.......
0
by: scpedicini | last post by:
Okay, I've been having a problem with custom design-time properties that has been driving me nuts for about a week. The control that I'm working on extends System.Windows.Forms.AxHost, but I'm...
0
by: Stephen Carson | last post by:
I cannot see a browsable property I have added in the Properties Window. Using C++ in Visual Studio .NET 2003 I have added a property to my managed class: public:
1
by: alex | last post by:
Hi, when building a new project i get the following errors Invalid language characters in property 'Depenendencies' Invalid language characters in property 'Files' It all points to...
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...
0
eboyjr14
by: eboyjr14 | last post by:
I have this xml metacity thing, and it is giving off this error: The file format is invalid. <?xml version="1.0"?> <metacity_theme> <info> <name>Royale</name> <author>Devin...
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...

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.