Click here to Skip to main content
15,886,798 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i want use picturebox image for sing fild in database , but i can't see textbox or label text when picture box is front them . i want to create Transparent picture box .please help
Posted
Comments
Sergey Alexandrovich Kryukov 27-May-14 15:23pm    
To start with, you should think what does "transparency" mean. Chances are, you should not use PictureBox (as in most cases).
What is "sing fild"? Please, this is the English site; I don't think many will understand you. This request is quite unclear.
—SA

1 solution

Even if you did "create a transparent picture box" what use would that be?

The first problem is that either the picture in the picture box hides the label / textbox when you show it, or the picture isn't visible either.

The second problem is that if a "transparent picture box" is on top of the textbox, any mouse activity will go to the PictureBox, and not to the textbox - which would annoy the heck out of me as a user, because I couldn't click into the text field, or Select any text, or...

Probably, that isn't what you want: you want to use the Forms designer window to move the textbox or label on top of the picture box so that mouse input goes to them, and they "clip" the picture. Easy - there are two buttons for that: "Bring to front" and "Send to back" - the purpose of each is obvious!
 
Share this answer
 
Comments
Member 10212064 27-May-14 15:46pm    
Thanks
In other words, I want to see text or label text if picturebox move on them

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900