المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : UI Delay



C# Programming
07-02-2009, 01:50 PM
I am having some trouble when I try to load some UI. If you can download my code http://www.2shared.com/file/6531405/908ada48/Delay.html[^ (http://www.2shared.com/file/6531405/908ada48/Delay.html)] and then click on the new file icon the graphics will show. I have 2 issues. firstly the panels, treview and property grids have a small but noticeable delay when they are being shown. You can see the controls incomplete as they are being drawn, it looks really messy. Is there a way to remove this delay?

Second, as you can see in the code I have a border around my UI. I dont think just drawing it is the best way to do it because when I resize the main window the *******ing causes the line to flicker. I have resulted in just turning it off when resizing. I think that it is possible to make a custom panel control and have this border drawn onto that. If so, and if it will solve the problem, can someone help me create this control.

Thanks