TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mikey
NA
1
0
Keeping very specific state of custom usercontrol
Aug 25 2010 4:30 AM
Hey folks,
I'm creating a winforms application which looks like a typical search form.
The main form panel includes many small custom UserControls that are built using a checkbox and a textbox.
I want the user to be able to save the last search criterias for next operation.
I thought of serialization, but the problem is that I don't want to save ALL the properties of the UserControl, I just need the checkbox state (boolean) and textbox text (string).
I know you can serialize only specific properties by overriding ISerializable interface, but I also don't want to disallow Serializing the whole UserControl if needed.
Is there any way I can serialize those two values within the controls' context without overriding ISerializable?
does anyone have a better idea for this issue?
Thanks,
Mikey
Reply
Answers (
1
)
how can i checked if form is already open
watermark for combobox control