Default
Google

How can I create a transparent form?

Applies To: C++Builder 1 or higher
Category: Knowledge Base

I need to create a form without any background. The only thing visible should be its components. Is it possible to create a transparent window with C++Builder?
 
 1.
  Start a new project using File | New Application.
 
 2.
  Add a Button or any other visual component in order to see
      the placement of your form.
 
 3.
  Edit the OnCreate event:
 
void __fastcall TForm1::FormCreate(TObject *Sender)
{
    Brush->Style = bsClear; 
    BorderStyle = bsNone; 
}

C++Builder Developer's Network
Copyright © Yoto Yotov



Acquiring image from ProHosting Banner Exchange