Refresh forms
-
Hello All, 1- I puted some controls on windows form and binded them to database. I need if i changed some thing on another forms to refresh the First forms. 2- How can i check if a form alreday running or not ? Please help Thanks Hay
Depending on whether the data on the second form is related to the data on the first form, you could pass the first form's binding context to the second form, so that both forms use the same binding context. I've done this when I had to display child data in a separate form. I just passed the binding context into the second form's constructor. There are several different ways to detect whether a form is already currently being shown. One way is to create your own ApplicationContext and have it create and destroy your forms. Another way is to simply create a static object that holds this information. Hope that helps