Hi ,
How can i make transparent borders form like the attach file ?
4 Answers, 1 is accepted
0
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
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
Hi William,
Here is how you can set the BackColor of the title bar:
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
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.
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.