CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    Transparent button ?


    I have a form containing some buttons and a picture in the background. I'd like my buttons to be transparent so that you could see the picture through them. Is that possible to do and if so, how ?


  2. #2
    Join Date
    Aug 1999
    Location
    US, Florida
    Posts
    817

    Re: Transparent button ?

    There are a lot of ways, one is to use alpha blending but that's hard and requiers .dll, second is easier but not as good....create a label, set it's backstyle to transparent and play around with borderstyle and appearance to make it look better then create 4 lines around the label and on MouseDown property remove lines or make them one color or something else...just to make it look like it's pressed and on MouseUp set lines that are to the left and bottom of label black color and other two to white or light gray....play around with colors too.....that's one and probably the easiest way to make transparent button....it won't look really nice but it's transparent


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured