transparent borders form

5 posts, 1 answers
  1. William Tyson
    William  Tyson  avatar
    4 posts
    Member since:
    Feb 2019

    Posted 16 Apr Link to this post

    Hi ,

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

     

  2. Dimitar
    Admin
    Dimitar avatar
    2764 posts

    Posted 16 Apr Link to this post

    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 winform 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.
  3. William Tyson
    William  Tyson  avatar
    4 posts
    Member since:
    Feb 2019

    Posted 16 Apr in reply to Dimitar Link to this post

    Hi ,

    This is what i did:

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

    But it does not work .

  4. William Tyson
    William  Tyson  avatar
    4 posts
    Member since:
    Feb 2019

    Posted 16 Apr in reply to William Tyson Link to this post

    I see someone does:

    this.FormBorderStyle = FormBorderStyle.None;

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

  5. Answer
    Dimitar
    Admin
    Dimitar avatar
    2764 posts

    Posted 17 Apr Link to this post

    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.
Back to Top