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


P: n/a
What causes a classes field variables to lose their values inbetween events?
Has anybody experienced this behavior? I have a simple windows project with
a public member in a form that gets set by one button click event and then
its value is used in another button click event. Inbetween events its value
is lost. What's strange is my changes before the last build had nothing to
do with this form or variable?


Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies

P: n/a

It seems normal, however can you give a little sample with those to buttons
and one value. Just to show us how you did it. Not your original code.

Nov 21 '05 #2

P: n/a
When I changed the scope of all of my class types to public the problem went
away. Which raises another question how do you keep your derived types from
being used outside of your assembly?


Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.