Click here to Skip to main content
15,912,578 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a class (other than main form class) where in I read a data file. This call is made from various points (need not be from main form).
After reading the data, I want to display it on the panel on the main form. How can I call OnPaint of main form from data reading class in order to display it?
Posted

1 solution

You shouldn't call the form back. If the data class has an event it can raise when it changes, whichever class is referencing it can also refresh itself when the data is changed.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900