Progressbar->Value Convert::ToInt(textbox->Text); problem!
Hey all!
I got a little problem with my progressbar.
I convert the text of a textbox to the value of the progressbar.
First I tried in milliseconds, that worked, but the max of millisecond = 999, I took the maximum of the progressbar to 1000, but when I debugged the program, it keeps getting to 50% of the progressbar. (Every 1000 milliseconds).
Now I'm gonna try it with just seconds, Maximum set to 60.
code:
Code:
toolStripProgressBar1->Value = Convert::ToInt32(lblFixedGrabSecond->Text);
This code gives me a yellow error messagebox thingy when trying to debug.
Image: http://imageshack.us/photo/my-images...amloosfus.png/
So my questions are,
Either how can I fix the 50% load of the progressbar while using the MilliSeconds thingy.
Or how to fix the yellow error message thingy.
Re: Progressbar->Value Convert::ToInt(textbox->Text); problem!
Once again, .net is off topic in this forum
Re: Progressbar->Value Convert::ToInt(textbox->Text); problem!
Quote:
Originally Posted by
GCDEF
Once again, .net is off topic in this forum
I'm programming, in C++, So I don't understand.
Re: Progressbar->Value Convert::ToInt(textbox->Text); problem!
Quote:
Originally Posted by
Miraclezz
I'm programming, in C++, So I don't understand.
You're not really. The code you posted is using .Net which is off topic. This forum covers Visual C++ and MFC. .Net belongs in the managed C++ forum.
Re: Progressbar->Value Convert::ToInt(textbox->Text); problem!
[ Moved thread ]
Quote:
Originally Posted by
Miraclezz
I'm programming, in C++, So I don't understand.
Have a look at Visual C++ & C++ Programming group and note the forum descriptions.
Quote:
- Visual C++ Programming - Ask questions about Windows programming with Visual C++.
- Managed C++ and C++/CLI - Discuss Managed C++ and .NET-specific questions related to C++.
Each time you open a new topic, try posting it in the most appropriate forum.
That assure you can get faster and better answers and prevent moving it by a moderator.
The most appropriate forum for managed C++ topics (like this one) is Managed C++ and C++/CLI.
Please do as I, as well as other colleagues suggested above.
Thank you!