-
March 19th, 2012, 11:24 AM
#1
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:
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.
-
March 19th, 2012, 11:31 AM
#2
Re: Progressbar->Value Convert::ToInt(textbox->Text); problem!
Once again, .net is off topic in this forum
-
March 19th, 2012, 11:36 AM
#3
Re: Progressbar->Value Convert::ToInt(textbox->Text); problem!
Originally Posted by GCDEF
Once again, .net is off topic in this forum
I'm programming, in C++, So I don't understand.
-
March 19th, 2012, 11:43 AM
#4
Re: Progressbar->Value Convert::ToInt(textbox->Text); problem!
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.
-
March 19th, 2012, 12:38 PM
#5
Re: Progressbar->Value Convert::ToInt(textbox->Text); problem!
[ Moved thread ]
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.
- 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!
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|