Window appearence problem.

hi
i have problem in showing the window, basically i have a grid where the functionality is that , if i'll double click on grid its open a window and if i'll single click on grid its close the window.
so for performance issue i'll check before opening the window every time, if that reference (form reference) is there than only make visible true this window and in case of single click i'll hide the window by visiblity false.

But the problem is that at the time of opening i'll set its startposition ,if i'll set startposition after making visible true. Then its filcker as per screenshoot. But if i'll set the position before visible true then, the window is not opened at desired position.

So pl'z give me a better idea for this and refer screenshots

Thanks in Advance.
Gourav

paint0.zip

3 Replies

GR gruu May 29, 2007 12:31 PM UTC

Refresh the controls before you going to make visible as true. Otherwise give some delay time. Let me know still you facing the same issue. It would be nice to send your sample application. So that it will be easier to view the issue and get solution.

Good Luck.


GN Gourav Nayyar May 29, 2007 01:34 PM UTC

Thanks guru for your suggestion , but the problem is still there. i'll send you the doubleclick and cellclick code just check it.

Thanks in Advance.
Gourav Nayyar

>Refresh the controls before you going to make visible as true. Otherwise give some delay time. Let me know still you facing the same issue. It would be nice to send your sample application. So that it will be easier to view the issue and get solution.

Good Luck.

code21.zip


GR gruu June 2, 2007 10:05 AM UTC

Hi,

Can you use Thread.Sleep(100); method after refreshing the form. The rendering problem may happens due to inconsistent time delay to view the Grid. Hope it will helps you to solve this problem. If the problem is still there, please let me know and send me your sample application. I will work on it and try to solve the problem.

Gook Luck.

Loader.
Up arrow icon