English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

hi , i have two forms i want to create progress bar using picture box , once the value of the picture box reachs 100 than i want to open next form. can anyone send me the code pls

thank you

2007-01-15 05:56:28 · 2 answers · asked by Anonymous in Computers & Internet Programming & Design

2 answers

Richard is right on how to open page 2 but I think he missed part of the question, or else I'm misunderstanding it.

You want a picture to actually BE the progress bar? As in you can't see any of the picture but as it progresses you want to see more and more of it?

If that's what you want, make 2 picture boxes, one with your picture and the other with just the background color of the page outside the picture box.

Lay the color box over the picture box..Bring to Front. Then as your process progresses, gradually reduce the width of the color box revealing the picture beneath it.

For example when your process is 10 % complete take colorBox.width * .9 ..... maybe put it in a loop.

hope that's what you wanted

2007-01-15 07:45:56 · answer #1 · answered by rod 6 · 0 0

In whatever procedure changes the progress bar value, put the following:

If Progressbar.Value=100 then form2.show

For a custom progress bar control, check out http://www.pscode.com

2007-01-15 14:01:16 · answer #2 · answered by Richard H 7 · 1 0

fedest.com, questions and answers