Click here to Skip to main content
15,897,891 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. 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 (class is located in other file or other project)? (The details of data drawing are not important for the question).
Posted
Updated 8-Dec-09 23:16pm
v2

From where are you calling the method that reads data? From the Main Form? If that is the case, just after that call, call invalidate as well.
 
Share this answer
 
Hi,
I tried using delegates and it solved.
 
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