Progressbar
I found this for Visual Basic http://support.microsoft.com/default.aspx?scid=KB;en-us;q147809 but is there a similar way for managed C++?? Is there any tutorial for doing this in managed C++??
[192 byte] By [
Ante1980] at [2007-11-20 2:57:16]

# 1 Re: Progressbar
you mean like a progressbar?:
private: System::Windows::Forms::ProgressBar^ progressBar1;
progressBar1 = (gcnew System::Windows::Forms::ProgressBar());
this->progressBar1->Minimum = 0;
this->progressBar1->Maximum = 1000;
/*(this way youll get a bar wich goes from 0 - 1000;
with every 10 points a block on the screen) (progressbar is default
divided in 100 parts). use the Preferences to change this
to use it:*/
for(int i = 0;i<1000;i++){
progressBar1->Value = i; // or: progressBar1->value++;
Thread::Sleep(100);
}
this way your progressbar will slowly count up to 1000;
# 2 Re: Progressbar
I have allready created my own progressbar control in that I can put in my form but I would like the percent completed (text e.g. 43%) to be printed in the middle of the bar and the text to change color as the status bar passes over it.
This is done in the above article but I was wondering if there is similar way of doing this in managed C++?? I wonder how this is done in managed C++??
I keep finding examples about it, but it is allways in VB or Native C++.