Friday, May 8, 2015

How to refresh Form1 from inside a class?

You should never make a class depending from its caller without passing that to the constructor. 

Therefore it can be if you have done that: 

(passing "this" from the form)

System.Windows.Form TheCallingClass = (System.Windows.Form)sender;
TheCallingClass.Show
typed in this messages so watch typos or other small mistakes



Success
Cor




No comments:

Post a Comment