Click here to Skip to main content
15,914,452 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
i have MDI form , it will refresh every secounds , what is the code for refreshing MDI form every secounds..
Posted
Comments
Sergey Alexandrovich Kryukov 6-Nov-14 1:45am    
Why? why?!

There is no such thing as "what is the code"? The code is written. What have you tried so far?

—SA
Riyan Oliver 6-Nov-14 2:17am    
hello SA , Thank you , i read it , i will try my best level to solve the problem ,
Sinisa Hajnal 6-Nov-14 2:23am    
Why would you refresh the form so often? What if the user is doing something and the form refreshes?
Riyan Oliver 6-Nov-14 2:35am    
SA my project is hotel room booking concept ,MDI form have datagridview , it contains room number, if user booking the room in the child form , color should be change in the MDI form corresponding room number.. so that's why form will refresh..

1 solution

Don't.
Instead, have your child forms create and signal an event, which the parent form then handles: Transferring information between two forms, Part 2: Child to Parent[^]

That way, you don't need a timer!
 
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