Link to home
Start Free TrialLog in
Avatar of sotiris_zegiannis
sotiris_zegiannis

asked on

create dynamically a progress bar in c++ builder

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.
ASKER CERTIFIED SOLUTION
Avatar of cwwkie
cwwkie

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sotiris_zegiannis
sotiris_zegiannis

ASKER

Thanks A lot.Take care.