CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2012
    Posts
    13

    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.

  2. #2
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    Re: Progressbar->Value Convert::ToInt(textbox->Text); problem!

    Once again, .net is off topic in this forum

  3. #3
    Join Date
    Mar 2012
    Posts
    13

    Re: Progressbar->Value Convert::ToInt(textbox->Text); problem!

    Quote Originally Posted by GCDEF View Post
    Once again, .net is off topic in this forum
    I'm programming, in C++, So I don't understand.

  4. #4
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    Re: Progressbar->Value Convert::ToInt(textbox->Text); problem!

    Quote Originally Posted by Miraclezz View Post
    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.

  5. #5
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,234

    Re: Progressbar->Value Convert::ToInt(textbox->Text); problem!

    [ Moved thread ]

    Quote Originally Posted by Miraclezz View Post
    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!
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

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
  •  





Click Here to Expand Forum to Full Width

Featured