Simple use of threads

Source: Internet
Author: User

First, you must refresh the data (for example, this method) when using a thread)

// To enable the thread, you only need to refresh the data and use it frequently (note)
Public void reshorder ()
{
Try
{
Thread thread = new thread (
Delegate ()
{
Dt_businessorder = _ customservice. getbussinessorders (userinfo. unote1, PID, CID, CCID, userinfo. uparentid );
});
// Enable the thread to refresh data
Thread. Start ();

Rescdgv (dgvbizorders, dt_businessorder );
Dgvbizorders. Columns [1]. Visible = false; // province ID
Dgvbizorders. Columns [2]. Visible = false; // city id
Dgvbizorders. Columns [3]. Visible = false; // Region ID
Dgvbizorders. Columns [4]. Visible = false; // merchant ID
If (dgvbizorders. Rows. Count! = 0)
{
Isplaysound = true;
}
Else
{
Isplaysound = false;
}
}
Catch {}
}

 

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.