2

I have made a dialog system similar to windows forms. Like windows forms designer, I use a PropertyGrid for the properties and events. What I would like is to make it so that when an event value is double clicked, a default value is filled if nothing was filled before, and I have to be able to transfer focus to another place in my application.

Anyone know how this could be achieved?

skaffman
  • 398,947
  • 96
  • 818
  • 769
user793548
  • 47
  • 1
  • 5

1 Answers1

-2

Handling doubleclicks in the PropertyGrid is a bit tricky:

Here are some posts that may get you started:

http://social.msdn.microsoft.com/Forums/en-US/winformsdesigner/thread/1c82666d-ea86-49a6-8844-079cff196275/

Property grid item and DoubleClick

Community
  • 1
  • 1
Peladao
  • 4,036
  • 1
  • 23
  • 43
  • Well, I found those on google before posting.. I don't see how they help much. Neither of them want to do something when the property is double clicked (other than cycle through the values of their bool/enum). So they don't explain how to get a default value when a string property is double clicked, and they don't explain how to get an event when it is double clicked. – user793548 Dec 02 '11 at 12:28
  • Why you don't just put the default value in the property to begin with? – Peladao Dec 02 '11 at 12:38