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.
Unfortunately, activation email could not send to your email. Please try again.

ProgressStyle

Thread ID:

Created:

Updated:

Platform:

Replies:

47021 Jul 26,2006 01:56 PM Aug 11,2006 07:03 AM Windows Forms 5
loading
Tags: Tools
Administrator [Syncfusion]
Asked On July 26, 2006 01:56 PM

Hi

Is it possible to change the ProgressBarAdv.ProgressStyle property dynamically ?? I am not able to do that. Any pointers on this would be appreciated

Thanks!!

Anupama Roy [Syncfusion]
Replied On July 26, 2006 03:16 PM


Hi Sagittarian,

You can handle the progressBarAdv1_ValueChanged event inorder to change the ProgressStyle dynamically.

Please take a look at the sample attached and let me know if you need furthur assistance.

Thank you for choosing Syncfusion products.

Regards,

Anu.


Sample57.zip

Administrator [Syncfusion]
Replied On July 26, 2006 03:38 PM

Hi Anupama,

Thanks a lot. But that dint help much :(

We are having an options dialog which aims at allowing the user to change the Progress Style. If he changes the style say from gradient to tube in the Options dialog, it should change the progressBarAdv1.ProgressStyle. Is ProgressBarAdv1_ValueChanged the only way to get access to the property ProgressStyle ??

Anupama Roy [Syncfusion]
Replied On July 27, 2006 03:20 PM

Hi Sagittarian,

You can overcome this problem by doing certain changes in the accessibility of ProgressBarAdv.

Consider you have Form1 and Form2.Form1 contains ProgressBarAdv and Form2 is made as the OptionDialog.

First, declare an object at the top of your form,the form you want to access data from:

public static Form1 frm1Object;
public static Form2 frm2Object;

And then in the void main on the same form, make new objects and pass in the frm1Object:

static void Main()
{
frm1Object = new Form1();
frm2Object = new Form2();
Application.Run(frm1Object);

}

Now, if you want to access ProgressBarAdv from Form2(Options Dialog), then make ProgressBarAdv public static on Form1.

public static Syncfusion.Windows.Forms.Tools.ProgressBarAdv progressBarAdv1;


And to do something on ProgressBarAdv from OptionsDialog,do as follows.

Form1.progressBarAdv1.ProgressStyle =Syncfusion.Windows.Forms.Tools.ProgressBarStyles.Tube ;

Please take a look at the sample atached for your reference.

Thanks,

Anu.

ProgressBarForum.zip

kelvin
Replied On August 10, 2006 05:00 AM

Give me an alternate solution.This is totally waste.Its not working in 2005 RTM

Administrator [Syncfusion]
Replied On August 11, 2006 07:03 AM

Hi Kelvin,
I had implemented the same task in 2005 RTM but, I did not find any problem. Please look at the attached sample that has been implemented in 2005. Please let me know if you have any further queries regarding this.

Regards,
Velmurugan E.

ProgressBarForums.zip

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.

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.

;