Invalid property value window

G

Guest

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
 
W

William Ryan

Lance:

I believe if you throw an exception in your set access modifier, it will
happen automatically.
Lance said:
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.
 
P

Peter Huang

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=en&lr=&ie=UTF-8&oe=UTF-8&threadm=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.
 
L

Lance

Thanks. That was easy!
-----Original Message-----
Lance:

I believe if you throw an exception in your set access modifier, it will
happen automatically.
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.


.
 
P

Peter Huang

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top