all groups > dotnet windows forms designtime > august 2004 >
You're in the

dotnet windows forms designtime

group:

How to type directly into a TextBox (or Label) at design time?


How to type directly into a TextBox (or Label) at design time? alex
8/22/2004 8:17:13 PM
dotnet windows forms designtime:
I am developing an application which imitates a form designer. Basically, I
implemented IDesignerHost and all other required services.
Everything works great, but my customers aren't very happy. They don't
appreciate the power and beauty of the PropertyGrid. For example, they want
to be able to change a text in a TextBox directly in the form instead of
going to the Text property in the PropertyGrid. I tried several approaches
to accomplish that (intercepting Key events, creating and displaying a
shadow textbox) but they all failed.
I would really appreciate it some can point me in the direction how to make
it happen.
Thanks,
Alex

Re: How to type directly into a TextBox (or Label) at design time? Mark Dykun
10/4/2004 6:35:54 PM
Couldn't you capture the SelectionService componentselected event and get
the control locations. Create the edit textbox and overlap the existing one
it. You may need to parent the control on some bordeless form so that you
can get the runtime qualities.

Just a though.
Mark

[quoted text, click to view]

AddThis Social Bookmark Button