How to make background transparent


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: How to make background transparent

  1. #1
    Join Date
    Aug 2004
    Posts
    43,023

    How to make background transparent

    [Originally posted by GreenGiant]

    Hi
    I would like to know how Can I make a backgound transparent for Picture control?
    I tried to use BackStyle Property ,but don't know how to use it.
    Thanks for your time

  2. #2
    Join Date
    Aug 2004
    Posts
    43,023

    Re:How to make background transparent

    [Originally posted by Karlis]

    Place Picture1 control on top of picture2 control
    in a form.

    Add the following code to the form load event

    Private Sub Form_Load()
    Picture1.AutoRedraw = True
    Picture2.AutoRedraw = True

    Picture2.PaintPicture Form1.Picture, 0, 0
    Picture1.PaintPicture Picture2.Image, 0, 0, Picture1.Width, Picture1.Height,Picture1.Left,Picture1.Top, Picture1.Width,Picture1.Height
    Picture1.Line (1, 1)-(Picture1.Width - 1, Picture1.Height - 1), , B

    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center