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?
-
- Start a new project using File | New Application.
-
- Add a Button or any other visual component in order to see
- the placement of your form.
-
- Edit the OnCreate event:
-
- void __fastcall TForm1::FormCreate(TObject *Sender)
- {
- Brush->Style = bsClear;
- BorderStyle = bsNone;
- }
C++Builder Developer's Network
Copyright © Yoto Yotov