473,324 Members | 2,178 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

transparent control

How create transparent background in "UserControl" ( Opacity regulated ) ?

thanks for all

bat21
Nov 15 '05 #1
5 3590
Under Control there not visible other Control's,

there is only background of parent.

Bat21
U¿ytkownik "Amalorpavanathan Y (AMAL)" <an*******@discussions.microsoft.com>
napisa³ w wiadomo¶ci
news:F1**********************************@microsof t.com...
Refer the URL
http://msdn.microsoft.com/library/de...background.asp
Regards,
Amal

Nov 15 '05 #3
a
In the link you provided, step one says: "In the Code Editor for your
control, locate the constructor." I am trying to make a pictureBox be
tranparent. How do I get to the contructor for the pictureBox?

I tried doing this inside InitializeComponent(), but I get the error:

Cannot access protected member
'System.Windows.Forms.Control.SetStyle(System.Wind ows.Forms.ControlStyles,
bool)' via a qualifier of type 'PictureBox'; the qualifier must be of type
'Form1' (or derived from it)

Thanks
"Amalorpavanathan Y (AMAL)" <an*******@discussions.microsoft.com> wrote in
message news:F1**********************************@microsof t.com...
Refer the URL
http://msdn.microsoft.com/library/de...background.asp
Regards,
Amal

Nov 15 '05 #4
call out this object method

"this.SetStyle(....);"

bat21
U¿ytkownik "a" <a@b.c> napisa³ w wiadomo¶ci
news:10*************@corp.supernews.com...
In the link you provided, step one says: "In the Code Editor for your
control, locate the constructor." I am trying to make a pictureBox be
tranparent. How do I get to the contructor for the pictureBox?

I tried doing this inside InitializeComponent(), but I get the error:

Cannot access protected member
'System.Windows.Forms.Control.SetStyle(System.Wind ows.Forms.ControlStyles,
bool)' via a qualifier of type 'PictureBox'; the qualifier must be of type
'Form1' (or derived from it)

Thanks
"Amalorpavanathan Y (AMAL)" <an*******@discussions.microsoft.com> wrote in
message news:F1**********************************@microsof t.com...
Refer the URL

http://msdn.microsoft.com/library/de...background.asp

Regards,
Amal


Nov 15 '05 #5

"a" <a@b.c> wrote in message news:10*************@corp.supernews.com...
In the link you provided, step one says: "In the Code Editor for your
control, locate the constructor." I am trying to make a pictureBox be
tranparent. How do I get to the contructor for the pictureBox?

I tried doing this inside InitializeComponent(), but I get the error:

Cannot access protected member
'System.Windows.Forms.Control.SetStyle(System.Wind ows.Forms.ControlStyles,
bool)' via a qualifier of type 'PictureBox'; the qualifier must be of type
'Form1' (or derived from it)

Thanks


You can only locate the constructor if you are deriving a new class from
PictureBox.

Try setting the back color of the picture box to Transparent. Open the Forms
designer, click the picture box, then in the properties window click on
BackColor. On the Web tab, click on Transparent. It's the first item in the
list on my machine. Maybe that is what you want.

HTH
Eric
Nov 15 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Paul Schnitter | last post by:
Update: My custom control is based on the article "Creating Visual Basic .NET controls from scratch" in "Adventures in .NET" on MSDN. It is designed to be a replacement for the VB6 shape...
3
by: °Ë´óɽÈË | last post by:
HI, I create a custom transparent control, set the style is ControlStyles.DoubleBuffer, It display black background. How to create a double buffer transparent control?
1
by: Efkas | last post by:
My application have some level : 1. MyButton class with Label inheritance 2. MyComponent as User Control loading and positionning some of MyButtons 3. MyApp loading and positionning MyComponent ...
3
by: Steve Koon | last post by:
Any thoughts on getting this project to work or suggesting another method would be appreciated. Steve ========================================== Project: A Windows Form which acts as a...
8
by: Grahammer | last post by:
Is it possible to set the background of a usercontrol as transparent? I tried setting the background image of the usercontrol to a transparent GIF, but that caused MAJOR problems. I'm making...
4
by: jcrouse | last post by:
I am using the following code to move a label on a form at runtime: If myMousedown = lblP1JoyRight.Name Then If lblP1JoyRight.BackColor.Equals(Color.Transparent) Then bTransCk = True ...
2
by: Dean Slindee | last post by:
It appears that I have two routines that don't play well together! First routine: a form's background is shaded with a gradient color. Second routine: then, the background of all labels on the...
4
by: ray well | last post by:
in my app i need to make a RichTextbox control transparent. i need it to be a like a pane of glass lying on a sheet of paper, where u can see everything on the sheet of paper not covered by text...
8
by: Brian Ward | last post by:
I am looking for a simple way to set the image transparency in a PictureBox. I have a moving PictureBox containing a graphic image .. moving by incrementing its Left property. The background...
0
by: MasterOfTheDark | last post by:
This one's a hairy one to explain. What I've got is a class called "VistaGroupBox" that I put some nice-looking Vista-style gradients in the background and made to look like the ribbon categories...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.