Results 1 to 20 of 20

Thread: Transparent Frames

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2007
    Location
     
    Posts
    453

    Transparent Frames

    Is it possible to make frames transparent, I have over 20 on one of my forms, and I need them to be transparent, is this possible?
    Haikus are easy.
    But sometimes they don't make sense.
    Refrigerator.

  2. #2
    PowerPoster Fazi's Avatar
    Join Date
    Aug 2005
    Location
    Underworld
    Posts
    2,525

    Re: Transparent Frames

    may be this thread will give you some idea.
    http://www.vbforums.com/showthread.p...61394&t=471656

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2007
    Location
     
    Posts
    453

    Re: Transparent Frames

    Sorry, that is form, I need frames...
    Haikus are easy.
    But sometimes they don't make sense.
    Refrigerator.

  4. #4
    Frenzied Member
    Join Date
    Sep 2006
    Location
    Scotland
    Posts
    1,054

    Re: Transparent Frames

    This will make the frame invisible (including all components):

    Code:
    Private Sub Form_Load()
    Frame1.Visible = False
    End Sub
    Whereas this will make the frame invisible but leave the components there:

    Code:
    Private Sub Form_Load()
    Frame1.BorderStyle = 0
    Frame1.Caption = ""
    End Sub

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2007
    Location
     
    Posts
    453

    Re: Transparent Frames

    Well, I want the frame to be visible, just the background inside the border to be invisible...
    Haikus are easy.
    But sometimes they don't make sense.
    Refrigerator.

  6. #6
    Frenzied Member
    Join Date
    Sep 2006
    Location
    Scotland
    Posts
    1,054

    Re: Transparent Frames

    Hmmm.... OK i'm gonna have to pass on that one.... Lol.

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2007
    Location
     
    Posts
    453

    Re: Transparent Frames

    Is it possible, but hard? Or completely impossible?
    Haikus are easy.
    But sometimes they don't make sense.
    Refrigerator.

  8. #8
    Frenzied Member
    Join Date
    Sep 2006
    Location
    Scotland
    Posts
    1,054

    Re: Transparent Frames

    I would say possible but hard. I'm only a beginner so you would really need to wait for Martin or Si or some other advanced member to respond. Sorry.

  9. #9

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2007
    Location
     
    Posts
    453

    Re: Transparent Frames

    Ok, thank you for your time though...
    Haikus are easy.
    But sometimes they don't make sense.
    Refrigerator.

  10. #10
    Fanatic Member schoolbusdriver's Avatar
    Join Date
    Jan 2006
    Location
    O'er yonder
    Posts
    1,020

    Re: Transparent Frames

    If the background to the frame(s) is static, try using the transparent frame UserControl in my signature (TransFrame.zip) This blits a pic of the background onto the control.

    If the background is mobile, ie video, a pic that stretches with the form, scrolling text/pictures etc, the only successful way I've found is to use overlays. Complex but possible. (NET/VB2005 has native support for transparent controls, but is flaky when it comes to displaying them over video)

  11. #11

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2007
    Location
     
    Posts
    453

    Re: Transparent Frames

    The frames background is static... (I am trying it now...)
    Haikus are easy.
    But sometimes they don't make sense.
    Refrigerator.

  12. #12

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2007
    Location
     
    Posts
    453

    Re: Transparent Frames

    The problem is that the border doenst work well... Is there a way I can make the border work with the background?
    Haikus are easy.
    But sometimes they don't make sense.
    Refrigerator.

  13. #13

  14. #14
    Fanatic Member schoolbusdriver's Avatar
    Join Date
    Jan 2006
    Location
    O'er yonder
    Posts
    1,020

    Re: Transparent Frames

    Quote Originally Posted by Bobalandi
    The problem is that the border doenst work well... Is there a way I can make the border work with the background?
    Nope. As RhinoBull has said, all you can do is mimic transparency.

  15. #15

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2007
    Location
     
    Posts
    453

    Re: Transparent Frames

    Well, yes, like what you did with the background, is there a way that the border text can mimic the background?
    Haikus are easy.
    But sometimes they don't make sense.
    Refrigerator.

  16. #16

  17. #17
    Fanatic Member schoolbusdriver's Avatar
    Join Date
    Jan 2006
    Location
    O'er yonder
    Posts
    1,020

    Re: Transparent Frames

    Quote Originally Posted by Bobalandi
    Well, yes, like what you did with the background, is there a way that the border text can mimic the background?
    Not as far as I know - the caption's background colour is the same as one of the borders.

    EDIT: Have you tried Rhino's sample code ?
    Last edited by schoolbusdriver; Aug 26th, 2007 at 04:06 PM.

  18. #18

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2007
    Location
     
    Posts
    453

    Re: Transparent Frames

    Yes, but I didnt understand most of it... *embarrased...*
    Haikus are easy.
    But sometimes they don't make sense.
    Refrigerator.

  19. #19

  20. #20

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2007
    Location
     
    Posts
    453

    Re: Transparent Frames

    Ok... Thanks AGAIN for all your help...
    Haikus are easy.
    But sometimes they don't make sense.
    Refrigerator.

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