473,769 Members | 1,681 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Will VB 2004 fix control transparency issues?

Does anyone know if we will be able to put transparent backgrounds on
UserControls in VB 2004?
Nov 20 '05 #1
11 1432
Please explain what you mean by this? A UserControl can be transparent with
..NET 2002

"Noozer" <po********@127 .0.0.1> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Does anyone know if we will be able to put transparent backgrounds on
UserControls in VB 2004?

Nov 20 '05 #2
how so? setting a background to transparent gives you an error
"Scott M." <s-***@BADSPAMsnet .net> wrote in message
news:Od******** ******@TK2MSFTN GP10.phx.gbl...
Please explain what you mean by this? A UserControl can be transparent with .NET 2002

"Noozer" <po********@127 .0.0.1> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Does anyone know if we will be able to put transparent backgrounds on
UserControls in VB 2004?


Nov 20 '05 #3
Hi,

Add this to the new procedure of your usercontrol to make it support
transparent background.
Me.SetStyle(Con trolStyles.Supp ortsTransparent BackColor, True)

Ken

-------------------------

"Brian Henry" <[REMOVE-ME]br******@adelph ia.net> wrote in message
news:eP******** *****@tk2msftng p13.phx.gbl...
how so? setting a background to transparent gives you an error
"Scott M." <s-***@BADSPAMsnet .net> wrote in message
news:Od******** ******@TK2MSFTN GP10.phx.gbl...
Please explain what you mean by this? A UserControl can be transparent

with
.NET 2002

"Noozer" <po********@127 .0.0.1> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
> Does anyone know if we will be able to put transparent backgrounds on
> UserControls in VB 2004?
>
>



Nov 20 '05 #4
No it can't..

Make a UserControl with a transparent background and a round object. Now add
that control to a form overtop of an already existing control. The
UserControl will make a rectangle covering the control beneath it.

Give it a try!

"Scott M." <s-***@BADSPAMsnet .net> wrote in message
news:Od******** ******@TK2MSFTN GP10.phx.gbl...
Please explain what you mean by this? A UserControl can be transparent with .NET 2002

"Noozer" <po********@127 .0.0.1> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Does anyone know if we will be able to put transparent backgrounds on
UserControls in VB 2004?


Nov 20 '05 #5
Hi,
A control with a transparent background will take the color of its
parent. Make sure you set the transparent background controls parent to the
control you want to see. The controls parent is the form by default.

Ken
------------------
"Noozer" <po********@127 .0.0.1> wrote in message
news:up******** ******@TK2MSFTN GP10.phx.gbl...
No it can't..

Make a UserControl with a transparent background and a round object. Now
add
that control to a form overtop of an already existing control. The
UserControl will make a rectangle covering the control beneath it.

Give it a try!

"Scott M." <s-***@BADSPAMsnet .net> wrote in message
news:Od******** ******@TK2MSFTN GP10.phx.gbl...
Please explain what you mean by this? A UserControl can be transparent

with
.NET 2002

"Noozer" <po********@127 .0.0.1> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
> Does anyone know if we will be able to put transparent backgrounds on
> UserControls in VB 2004?
>
>



Nov 20 '05 #6
If you want to see/interact with the control beneath the usercontrol, then
make the usercontrol shaped, rather than transparent, by setting its region.

"Noozer" <po********@127 .0.0.1> wrote in message
news:up******** ******@TK2MSFTN GP10.phx.gbl...
No it can't..

Make a UserControl with a transparent background and a round object. Now add that control to a form overtop of an already existing control. The
UserControl will make a rectangle covering the control beneath it.

Give it a try!

"Scott M." <s-***@BADSPAMsnet .net> wrote in message
news:Od******** ******@TK2MSFTN GP10.phx.gbl...
Please explain what you mean by this? A UserControl can be transparent

with
.NET 2002

"Noozer" <po********@127 .0.0.1> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Does anyone know if we will be able to put transparent backgrounds on
UserControls in VB 2004?



Nov 20 '05 #7
.....and as I've stated before... The image is loaded dynamically so there is
no way to know what shape to make the region.

"Mick Doherty"
<EX***********@ AND.REMOVE.SQUA REBRACKETS.[mdaudi100#ntlwo rld.com]> wrote in
message news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
If you want to see/interact with the control beneath the usercontrol, then
make the usercontrol shaped, rather than transparent, by setting its region.
"Noozer" <po********@127 .0.0.1> wrote in message
news:up******** ******@TK2MSFTN GP10.phx.gbl...
No it can't..

Make a UserControl with a transparent background and a round object. Now

add
that control to a form overtop of an already existing control. The
UserControl will make a rectangle covering the control beneath it.

Give it a try!

"Scott M." <s-***@BADSPAMsnet .net> wrote in message
news:Od******** ******@TK2MSFTN GP10.phx.gbl...
Please explain what you mean by this? A UserControl can be transparent
with
.NET 2002

"Noozer" <po********@127 .0.0.1> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
> Does anyone know if we will be able to put transparent backgrounds

on > UserControls in VB 2004?
>
>



Nov 20 '05 #8
Thanks!

I didn't know this, but it still doesn't help if the control spans across
two objects.

All I want to know is if Microsoft is going to fix this bug in VB2004 or
not. (Yes, it's a bug)

"Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message
news:e$******** ******@TK2MSFTN GP12.phx.gbl...
Hi,
A control with a transparent background will take the color of its
parent. Make sure you set the transparent background controls parent to the control you want to see. The controls parent is the form by default.

Ken
------------------
"Noozer" <po********@127 .0.0.1> wrote in message
news:up******** ******@TK2MSFTN GP10.phx.gbl...
No it can't..

Make a UserControl with a transparent background and a round object. Now
add
that control to a form overtop of an already existing control. The
UserControl will make a rectangle covering the control beneath it.

Give it a try!

"Scott M." <s-***@BADSPAMsnet .net> wrote in message
news:Od******** ******@TK2MSFTN GP10.phx.gbl...
Please explain what you mean by this? A UserControl can be transparent

with
.NET 2002

"Noozer" <po********@127 .0.0.1> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
> Does anyone know if we will be able to put transparent backgrounds on
> UserControls in VB 2004?
>
>



Nov 20 '05 #9
whether the image is loaded dynamically or at design time makes no
difference. If it was going to look right on a transparent background then
it quite obviously has transparent pixels. Use the OnPaint() subroutine to
create a region from the non transparent pixels of the image and apply it to
the usercontrol.
"Noozer" <po********@127 .0.0.1> wrote in message
news:NP%Gb.8298 97$pl3.39089@pd 7tw3no...
....and as I've stated before... The image is loaded dynamically so there is no way to know what shape to make the region.

"Mick Doherty"
<EX***********@ AND.REMOVE.SQUA REBRACKETS.[mdaudi100#ntlwo rld.com]> wrote in message news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
If you want to see/interact with the control beneath the usercontrol, then
make the usercontrol shaped, rather than transparent, by setting its

region.

"Noozer" <po********@127 .0.0.1> wrote in message
news:up******** ******@TK2MSFTN GP10.phx.gbl...
No it can't..

Make a UserControl with a transparent background and a round object.
Now add
that control to a form overtop of an already existing control. The
UserControl will make a rectangle covering the control beneath it.

Give it a try!

"Scott M." <s-***@BADSPAMsnet .net> wrote in message
news:Od******** ******@TK2MSFTN GP10.phx.gbl...
> Please explain what you mean by this? A UserControl can be

transparent with
> .NET 2002
>
> "Noozer" <po********@127 .0.0.1> wrote in message
> news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
> > Does anyone know if we will be able to put transparent backgrounds on > > UserControls in VB 2004?
> >
> >
>
>



Nov 20 '05 #10

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

Similar topics

90
3994
by: Mark Hahn | last post by:
"Michael Geary" <Mike@Geary.com> wrote ... >Does anyone have some sample code where obj$func() would be used? > (Apologies if I missed it.) There have been so many messages about delegation and binding since Greg originally posted his meowing cat message that it's hard to remember what the original problem was that Greg pointed out. At that time Prothon had no solution for the problem. Now there is a released solution but it is...
20
4523
by: Nathan Sokalski | last post by:
I am trying to create graphics with GDI+ that include transparency. However, the transparency never seems to show up, even though my colors have an alpha value of 0. How can I generate a graphic that is completely transparent in certain areas (so that the web page background shows through)? I save my graphics as gif files. I would appreciate, if possible, a simple example so that I can see the code. Thanks. -- Nathan Sokalski...
1
1552
by: jojo | last post by:
I' d like to develop an active x UserControl, using VB6, with transparent background. The user control will contains an image control. When load GIF image with transparent parts I want that parts to be tranparent for the entire UserControl. I've set the UserControl's backstyle 0-transparent, but I got transparent regions displayd in gray! There is a solution?
5
2551
by: vBOT | last post by:
Hi all, I have an odd shaped graphic I would like to use as my interface (see it here at http://www.mokee.com/vbot/ver3/face.jpg) The part I want to be transparent on the image is red. I set the background image of my form to be this image (actually a transparent png version), then I set the transparency key to red as well. Instead of the shaped form I thought I would have, I now have the graphic with a white border as my form. Is...
2
6744
by: Simon Tamman {Uchiha Jax} | last post by:
I understand that MS made their controls annoyingly difficult to modify (for example transparency on a listbox, tab control, treeview etc) to ensure they didn't torpedo the third party control library industry (or is this just an excuse to fob us off with controls that are difficult to extend?). Therefore could anyone tell me of a company that offers decent transparent controls?
6
3655
by: tommaso.gastaldi | last post by:
In a previous post I have been asking about a way to test Alpha Transparency. Bob and Michael have kindly provided some ideas. Here I would like to share the function I have prepared, for the purpose to improve it. Frankly, I am not clear about the exact meaning of some pixel format (max, gdi, etc.) and I hope I have put them under the right "case". I have made only some superficial test and it seems to work. Note that the purpose is...
4
2878
by: Adam Clauss | last post by:
I have a completely user-drawn user control in which I enabled transparency (follownig suggestions at http://www.c-sharpcorner.com/UploadFile/Nildo%20Soares%20de%20Araujo/TransparentControls11152005074108AM/TransparentControls.aspx) The user control does not contain any other controls; I manually draw contents in the OnPaint override I created. My problem is that the control does not always draw itself properly. Sometimes NONE of the...
1
2725
by: dragze | last post by:
Hi, On one of the pages of my site i use two javascripts, one makes transparency of png's work in IE, and the other embeds a flash player. Now use one of the scripts it works fine, use both and the transparency script stops working. So for example, use just the png transparency script and it displays the png's correctly in IE, as soon as i add the SWFobject (flash embedding) script the transparency script stops working!!?? :S Any help...
0
2871
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 you see in Office 2007. I got it working great, and created a few more controls, including a "VistaButton", which is primarily transparent when the cursor does not hover over it. However, when I added a standard Panel in the VistaGroupBox and put my...
0
9415
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10032
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9978
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9848
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7392
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6661
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5293
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5432
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3551
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.