954,517 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to make picture box transparent?

I use picture box to view web cam, it works. But i wan to add another transparent picture box on top with upload a picture transparent background circle . So when i open web cam there is a circle on the web cam. Is that possible? How to make picture box transparent?

michtan
Newbie Poster
6 posts since Apr 2008
Reputation Points: 10
Solved Threads: 0
 

I only started learning VB today but when going through an example of how to display a picture i was curious how to also hide it.

the following is what I put together with one button to display the image and another to hide.

To show the image;

PictureBox1.Visible = True


To hide the image;

PictureBox1.Visible = True


Extracted from this;

Public Class Picture_example

    Private Sub Picture_example_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        PictureBox1.Image = Image.FromFile("C:\Documents and Settings\JJ\Desktop\pcount2.jpg")
        PictureBox1.Visible = True
    End Sub
    Private Sub Picture_example_2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        PictureBox1.Visible = False
    End Sub
End Class


hope it helps

dvs_diickhead
Newbie Poster
1 post since Jun 2010
Reputation Points: 10
Solved Threads: 0
 

Im not goin to hide it, cause i use picturebox to viewing webcam and i want add a circle when viewing the web cam. so i wan add another picturebox2 on top the web cam picture box. what i can think is the picturebox2 background make it transparent and upload a circle with background transparent .png . but when i viewing the web cam the picturebox2 still there.

michtan
Newbie Poster
6 posts since Apr 2008
Reputation Points: 10
Solved Threads: 0
 

I don't Understand You All But i think you could use none picture like this

PictureBox2.BackgroundImage = Nothing

It Still there And Transparent
You Could Upload You png to Image Resource
And When You Want it to Show Again Just

PictureBox2.BackgroundImage = My.Resource.***.png
trpsjt2008
Light Poster
42 posts since Apr 2010
Reputation Points: 10
Solved Threads: 2
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: