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 / WinForm Controls / November 2004

Tip: Looking for answers? Try searching our database.

Persist values entered in Designer?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Serg - 23 Nov 2004 22:05 GMT
Yet another question from a controls newbie. I have a Verb which pops up a
dialog and allows users to customize my control. Is there a built in way to
persist users' entries? (similar to that of customizing a .NET DataGrid
control). Where does that info get stored? Thank you.
joeycalisay - 26 Nov 2004 05:33 GMT
Why are you not using the default propertygrid to customize your control and
chose to use a custom dialog?
If your custom properties are simple ones, collection types being the
complex ones, you should just use the DesignerSerializationVisibility
attribute for the said properties, making it Visible for simple types and
Content for collection types for it to be persisted...

try this helpful link:
http://www.awprofessional.com/articles/printerfriendly.asp?p=169528

> Yet another question from a controls newbie. I have a Verb which pops up a
> dialog and allows users to customize my control. Is there a built in way to
> persist users' entries? (similar to that of customizing a .NET DataGrid
> control). Where does that info get stored? Thank you.
Serg - 26 Nov 2004 21:42 GMT
Joey this is a great article, thanks very much for your help. What I needed
to do was to call RaiseComponentChanged. The reason I am using a verb to set
one of my properties is that it is a bitmask, so I can display each bit as a
checkbox in the custom form (from the verb event handler). Thanks again.


> Why are you not using the default propertygrid to customize your control and
> chose to use a custom dialog?
[quoted text clipped - 11 lines]
> > persist users' entries? (similar to that of customizing a .NET DataGrid
> > control). Where does that info get stored? Thank you.
joeycalisay - 29 Nov 2004 01:07 GMT
no problem...

> Joey this is a great article, thanks very much for your help. What I needed
> to do was to call RaiseComponentChanged. The reason I am using a verb to set
[quoted text clipped - 16 lines]
> > > persist users' entries? (similar to that of customizing a .NET DataGrid
> > > control). Where does that info get stored? Thank you.

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.