I have a public function to fill a grid. I pass the Datagridview name and a query as parameter to this function.
This function is inside a class. How can I use this function in more than one program? At this time, when Prog1 call the function it can fill the grid1. But when Prog1 is open and Prog2 tries to call the function then grid2 is empty. When I close prog1 and try to fill grid2 in prog2 then it works. So how can I use a function at the same time in more than one program.
Thanks in advance.