We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

flickering toolbars

Thread ID:

Created:

Updated:

Platform:

Replies:

55464 Jan 30,2007 07:12 PM UTC Jan 31,2007 12:50 PM UTC WinForms 3
loading
Tags: Tools
Christian Lützenkirchen
Asked On January 30, 2007 07:12 PM UTC

Hi,

I am using Version 4.4.0.54. Starting with Version 4 the toolbars in a application are drawn very often in a bigger application and the window seems to flicker. You can see this effect in your VSDemo_2005. Please open 2-3 child windows and then close the application using the X in the upper right corner. While closing the application the toolbars are drawn about five times at different positions! You can see this effect especially on a slow computer.
This effect also appears when child windows are slow, e.g. load data from a database.

Is there a workaround for this "feature"?

Best Regards,
Christian

Golda Rebecal [Syncfusion]
Replied On January 31, 2007 09:08 AM UTC

Hi Christian,

To avoid flickering on closing the application, we can use the LockWindowUpdate interop call in the form closing event.

1) We have to import the required assemblies for the LockWindowUpdate interop call

[System.Runtime.InteropServices.DllImportAttribute("user32.dll")]
private static extern bool LockWindowUpdate(Int64 windowHandle);

2) Then we have to call LockWindowUpdate in the form closing event.

void VSMainForm_FormClosing(object sender, FormClosingEventArgs e)
{
LockWindowUpdate(this.Handle.ToInt64());
}

Please have a look at the modified VS_Demo2005 sample attached and let me know if this helps.


Regards,
Golda


VSDemo.zip

Christian Lützenkirchen
Replied On January 31, 2007 10:35 AM UTC

Hi Golda,

thank you for your reply but I can not open the zip file. Can you please check this?

Best Regards,
Christian

Christian Lützenkirchen
Replied On January 31, 2007 12:50 PM UTC

Hi Golda,

it is running fine now! But you have to define the windowsHandle as IntPtr!

Best Regards,
Christian

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;