Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Design Time / September 2005

Tip: Looking for answers? Try searching our database.

custom form designer - IEventBindingService and IReferenceService

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
InK_ - 12 Sep 2005 15:08 GMT
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_
InK_ - 15 Sep 2005 09:09 GMT
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_

> Hi)
>
[quoted text clipped - 18 lines]
> Thanks for any help
> InK_

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.