Use the progressbarcontrol control (devexpress)

Source: Internet
Author: User
Create a new form, drag a button and the progressbarcontrol (devexpress) control in the button event private void simplebutton#click (Object sender, eventargs e) {// set a minimum value progressbarcontrol1.properties. minimum = 0; // set a maximum value progressbarcontrol1.properties. maximum = 1000; // set the step, that is, the number of progressbarcontrol1.properties added each time. step = 1; // set the progress bar style progressbarcontrol1.properties. progressviewstyle. = devexpress. xtraeditors. controls. progressviewstyle. solid; progressbarcontrol1.position = 0; For (INT I = 0; I <progressbarcontrol1.properties. maximum; I ++) {// process all windows message applications in the current message queue. doevents (); // specifies the time when the current thread is suspended. threading. thread. sleep (12); // The execution step progressbarcontrol1.performstep () ;}}to summarize progressbarcontrol for ease of use. You only need to give it a minimum value, the maximum value, and the step to execute progressbarcontrol1.performstep (); // process all windows message applications in the current message queue. doevents (); then OK

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.