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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback


Thread ID:




7406 Sep 24,2003 01:30 PM UTC WinForms 0
Tags: FAQ
Asked On September 24, 2003 01:30 PM UTC

I can not get the statusbar1.text to blink every half a second I have the following in the code The property, enabled for the timer is set to false, the interval is 500 'Run the process as a separate thread... Private t As New Thread(AddressOf Me.PopulateExcel) Private Sub btnExcelStrategies_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExcelStrategies.Click t.Start() 'populates excel in a separate thread, to prevent locking... End Sub private sub PopulateExcel() '''populates excel cells... this takes about 10 minutes to complete... End Sub Private Sub EnableTimer() Timer1.Enabled = True End Sub Private Sub DisableTimer() Timer1.Enabled = False StatusBar1.Text = "" End Sub Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Application.DoEvents() If StatusBar1.Text = "" Then StatusBar1.Text = "Processing Data..." Else StatusBar1.Text = "" End If End Sub


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon