So I've got this problem where I'm creating a control in c# .NET, and I can use it just fine in VB6. However, since you can't place borderless controls in .net containers in vb6, I've tried making a special .NET Label and exposing it to vb6.
I can get this label on my form just fine, but I can't make it transparent.
I have tried using UserControl_AmbientChanged
but the Ambient.BackColor
always seems to be the form's color, and not the actual parent's color (say, a frame). Same when I use UserControl.Parent
and then the Parent's BackColor. Same with Extender.Parent
. Even if that worked, it wouldn't be pretty in the case where the background is an image.
I've tried using SetWindowLong
but that just makes the whole label invisible / transparent with no regards for the Caption.
I've tried using a bliting technique found here: http://www.vbforums.com/showthread.php?438895-transparent-text-box-or-label-with-scrollbars&highlight=transparent%20TextBox But this did not work as my controls are not PictureBoxes.
I'm out of option, has anyone done this before? How? Any help at all would be very appreciated.