Exemplo n.º 1
0
        void secondwork()// procesbar is code for image open. For other form.
        {
            processbarform pform = Application.OpenForms["processbarform"] as processbarform;

            if (pform.progressBar1.Value + 1 == pform.progressBar1.Maximum)
            {
                pform.progressBar1.Value = pform.progressBar1.Maximum;
            }
            else
            {
                pform.progressBar1.Value = pform.progressBar1.Value + 1;
            }
        }
Exemplo n.º 2
0
        void firstwork()// procesbar is code for image open. For other form.
        {
            processbarform pform = Application.OpenForms["processbarform"] as processbarform;

            pform.progressBar1.Maximum = max_progress;
        }