all groups > dotnet windows forms designtime > september 2005 >
You're in the

dotnet windows forms designtime

group:

custom form designer - IEventBindingService and IReferenceService


custom form designer - IEventBindingService and IReferenceService InK_
9/12/2005 12:00:00 AM
dotnet windows forms designtime: Hi)

I'm implementing custom form designer.It's purpose is to provide design
surface and toolbox for designing forms.
Also it should make it possible to add event handlers.
So i don't need generating any code.

I've came across some proplems.The first one is related to Event Binding and
the second one with reference service.

1. As for events - they are displayed in grey like readonly ones but it can
create event handler (at least it pretends;), 'cause tool is not completed
yet)

2. There is not enough information for me for implementation
IReferenceService - just msdn library and that's all:(
what's "parent"(container?) and "component"(Component class - no, 'cause in
VS it somehow stores references)?
how it better to do if i have no solution, project, etc.?

Thanks for any help
InK_

Re: custom form designer - IEventBindingService and IReferenceService InK_
9/15/2005 11:09:25 AM
Hello again!
My problems were successfully solved.
First one was moved by overriding TypeConverter property for my class
derived from PropertyDescriptor and implementing my own TypeConverter.
Thanks to this msdn paragraph:
"Type converters can be used for string-to-value conversions or translation
to or from supported data types at design time and at run time. In a host
such as a property browser in a forms designer, type converters allow a
property value to be represented as text to the user, and they can convert
user-entered text into a value of the appropriate data type."
The second problem became not a problem when i've found out that it can be
done without implementation IReferenceService.

regards,

InK_


[quoted text, click to view]


AddThis Social Bookmark Button