[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

create dynamically a progress bar in c++ builder

Posted on 2006-03-30
2
Medium Priority
?
1,263 Views
Last Modified: 2013-11-17
hELLO Every human body.Joking.
I am trying to create a progress bar dynamically.Below is the code:

TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
        : TForm(Owner)
{
 TProgressBar *pr2;
 pr2=new TProgressBar(Form1);
 pr2->Enabled=true;
 pr2->Min=0;
 pr2->Max=100;
 pr2->Width=100;
 pr2->Height=200;
 pr2->Top=200;
 pr2->Left=200;
 pr2->Show();
}
but the progress bar won't be shown.What to do?
Thanks.
Sotiris.
0
Comment
Question by:sotiris_zegiannis
2 Comments
 
LVL 14

Accepted Solution

by:
cwwkie earned 2000 total points
ID: 16336414
Is there something else on the form? You should set the parent propery of pr2.
0
 

Author Comment

by:sotiris_zegiannis
ID: 16337001
Thanks A lot.Take care.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deletiā€¦
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
Suggested Courses
Course of the Month20 days, 14 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question