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 / January 2005

Tip: Looking for answers? Try searching our database.

TypeConverter in a form property

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jo?o Santa B?rbara - 19 Jan 2005 09:31 GMT
Hi all,

i?m doing a form to be Inherited, and inside it has a property that i
create.
that property is one class with several propertys ( simple ones integers and
strings )

And in my Inherited form, the property appears there :D so far so good.

but i need to edit it. so i have create an typeconverter, so that property
to be explandable in design time.

now the problems start.

this property is similar to the font property, every time i change in the
base form it changes in every derived form. except if the derived form has
already changed that property.

But in my class it not works like that. every time i change in the base form
the other forms seems to be changed, but when i do some kind of modification
in a derived form ( ex: move a button and save )   it saves the property
with the parent values ?

can someone help me ???

thks
JSB
joeycalisay - 20 Jan 2005 03:49 GMT
> but when i do some kind of modification
> in a derived form ( ex: move a button and save )   it saves the property
> with the parent values ?

You are having some problem with code generation.  Perhaps you need to
provide default values for the sub-properties using either the
DefaultValueAtrribute or the Reset<propertyname> -
ShouldSerialize<propertyname> method pair.  Can you provide additional info
with some code?  For the mean time read on the following links which can be
helpful in your development:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/c
ustcodegen.asp

http://www.awprofessional.com/articles/printerfriendly.asp?p=169528

Signature

Joey Calisay
http://spaces.msn.com/members/joeycalisay/

> Hi all,
>
[quoted text clipped - 23 lines]
> thks
> JSB

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.