progress bar - C# ProgressBar initial display not working -
i have problem winform in visual studio 2010 progress bar. making 2 progress bars read files folder, 1 amount of files , other amount of lines. progress bars instantiated , line progress bar display standard green progress bar, file progress bar not display till after update or two.
i have tried this.progressbar1.show() , this.progressbar1.visible = true , not work in case.
any appreciated :)
this.progressbar1.location = new system.drawing.point(15, 25); this.progressbar1.name = "progressbar1"; this.progressbar1.size = new system.drawing.size(373, 23); this.progressbar1.tabindex = 0; this.progressbar1.visible = true; here methods in program: public progressbar() { initializecomponent(); } public void settitle(string title) { this.text = title; } public void setmessage(string txt) { label1.text = txt; label1.refresh(); } public void setfile(string txt) { label2.text = txt; label2.refresh(); } private void timer1_tick1(object sender, eventargs e) { this.refresh(); } public void setvaluesbar1(int i) { progressbar1.maximum = i; progressbar1.minimum = 0; progressbar1.value = 0; } public void setvaluesbar2(int i) { progressbar2.maximum = i; progressbar2.minimum = 0; progressbar2.value = 0; }
Comments
Post a Comment