make form background color transparent

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Cc

    make form background color transparent

    hi,
    how do I make form background colour transparent when I set border style to
    none?


  • Cor

    #2
    Re: make form background color transparent

    Hi,
    I do not understand this what is the connection between a (web) form and a
    border style?
    Cor


    Comment

    • Herfried K. Wagner [MVP]

      #3
      Re: make form background color transparent

      Hello,

      "Cc" <kobolds@singne t.com.sg> schrieb:[color=blue]
      > how do I make form background colour transparent
      > when I set border style to none?[/color]

      Have a look at the form's Region property or its TransparencyKey
      property.

      HTH,
      Herfried K. Wagner
      --
      MVP · VB Classic, VB .NET
      Die Website von H. Wagner zu .NET, Visual Basic .NET, Classic Visual Basic, Webentwicklung und mehr.



      Comment

      • Herfried K. Wagner [MVP]

        #4
        Re: make form background color transparent

        Hello,

        "Cor" <non@non.com> schrieb:[color=blue]
        > I do not understand this what is the connection between a
        > (web) form and a border style?[/color]

        Web form?!

        Regards,
        Herfried K. Wagner
        --
        MVP · VB Classic, VB .NET
        Die Website von H. Wagner zu .NET, Visual Basic .NET, Classic Visual Basic, Webentwicklung und mehr.



        Comment

        • Herfried K. Wagner [MVP]

          #5
          Re: make form background color transparent

          Hi Cor,

          "Cor" <non@non.com> schrieb:[color=blue]
          > Can I set on a window form border style is none?[/color]

          Set its FormBorderStyle property to None.
          [color=blue]
          > Is that true then opacity=0% works too on nt based systems.[/color]

          Regions are supported since Windows 95, nevertheless, transparency using
          the TransparencyKey property is AFAIK only supported on Windows
          2000/XP/2003.

          Regards,
          Herfried K. Wagner
          --
          MVP · VB Classic, VB .NET
          Die Website von H. Wagner zu .NET, Visual Basic .NET, Classic Visual Basic, Webentwicklung und mehr.



          Comment

          • Cor

            #6
            Re: make form background color transparent

            Herfried,
            Thanks learned again something
            Cor


            Comment

            • Herfried K. Wagner [MVP]

              #7
              Re: make form background color transparent

              Hello,

              "Cor" <non@non.com> schrieb:[color=blue]
              > Thanks learned again something[/color]

              If you want to create a form with a simple irregular shape (round
              borders or something like this), I would create a region (for example
              from a GraphicsPath) and set the form's Region property to this region.

              Regards,
              Herfried K. Wagner
              --
              MVP · VB Classic, VB .NET
              Die Website von H. Wagner zu .NET, Visual Basic .NET, Classic Visual Basic, Webentwicklung und mehr.



              Comment

              Working...