This is a migrated thread and some comments may be shown as answers.

transparent borders form

4 Answers 749 Views
Form
This is a migrated thread and some comments may be shown as answers.
n/a
Top achievements
Rank 1
n/a asked on 16 Apr 2019, 05:11 AM

Hi ,

How can i make transparent borders form like the attach file  ?

 

4 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 16 Apr 2019, 10:52 AM
Hello William,

What you can do is use the TransparencyKey property and set the BackColor of the title bar, but this way you will not be able to click in the transparent regions. This is a WinForms limitation and we do not have control over it. More information about this can be found in the following thread: How do I create a fully transparent in C# that is interactive? - Stack Overflow

I hope this helps. Should you have any other questions do not hesitate to ask.

Regards,
Dimitar
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
n/a
Top achievements
Rank 1
answered on 16 Apr 2019, 01:23 PM

Hi ,

This is what i did:

  this.FormElement.TitleBar.BackColor = Color.LightGreen;
  TransparencyKey = Color.LightGreen;

But it does not work .

0
n/a
Top achievements
Rank 1
answered on 16 Apr 2019, 01:25 PM

I see someone does:

this.FormBorderStyle = FormBorderStyle.None;

But i do not want to hide it, juts make it transparent like attach file.

0
Accepted
Dimitar
Telerik team
answered on 17 Apr 2019, 10:44 AM
Hi William,

Here is how you can set the BackColor of the title bar:
this.TransparencyKey = Color.LimeGreen;
this.FormElement.TitleBar.TitleBarFill.BackColor = Color.LimeGreen;
this.FormElement.TitleBar.TitleBarFill.GradientStyle = Telerik.WinControls.GradientStyles.Solid;

Still using this approach is not reliable because you will be unable to drag the form. The transparency is limited in WinForms and there is no good way to overcome this limitation.

I hope this helps. Should you have any other questions do not hesitate to ask.
 
Regards,
Dimitar
Progress Telerik
Get quickly onboard and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Form
Asked by
n/a
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
n/a
Top achievements
Rank 1
Share this question
or