By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,882 Members | 2,489 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,882 IT Pros & Developers. It's quick & easy.

Controls within a User Control in Windows Forms not remembering st

P: n/a
Hello,

I'm working on a user control (control A) that contains many controls within
it (textboxes, a radio button, listboxes, comboboxes and a button - as well
as a whack of labels). During a stage in the application, the form that
contains the user control (form A, just say) is hidden when another form
(form B) appears, and it can be re-dislayed by closing the form B. That's
all find and good, except that form A does not retain the values inside
control A. Control A is marked with <Serializable()> and I would assume that
the controls within would be serializable as well (textboxes? I'd be
surprised if they weren't....), so what would I be missing? So what happens
is that control A is on form A and when the user runs form B, form A is
hidden, and when form B closes, form A returns, but all the controls that are
in control A lose their value (there are other controls on form A, such as
textboxes, and they retain their value). Control A inherits from
System.Windows.Forms.userControl. What am I missing? What did I do wrong?
This is in VS2003, using VB.NET. Please help! (... and thank you!)
Feb 19 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.