﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>A1VBCode Forums / Classic Visual Basic (VB 6 or earlier) / COM/ActiveX  / Transparent Image in a Transparent ActiveX Control / Latest Posts</title><generator>InstantForum.NET v4.1.1</generator><description>A1VBCode Forums</description><link>http://www.a1vbcode.com/vbforums/</link><webMaster>forums@a1vbcode.com</webMaster><lastBuildDate>Thu, 17 May 2012 02:12:19 GMT</lastBuildDate><ttl>20</ttl><item><title>Transparent Image in a Transparent ActiveX Control</title><link>http://www.a1vbcode.com/vbforums/Topic29475-7-1.aspx</link><description>Hi folks.  This is my first post here, and since I'm new to vb, I'm sure I'll be checking back here a good bit in the future.&lt;/P&gt;&lt;P&gt;I need to create some activex controls with transparent backgrounds.  These controls contain non-sqare transparent gifs.  The issue is that eventhough transparency is enabled in the project, the gifs still have a gray square around them when I insert the OLE object into my externa application.  &lt;/P&gt;&lt;P&gt;So what I've tried is:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a new "ActiveX Control" project &lt;/LI&gt;&lt;LI&gt;Set the "BackStyle" property to 0-Transparent&lt;/LI&gt;&lt;LI&gt;Double click "Image" on the toolbar&lt;/LI&gt;&lt;LI&gt;Set the "Picture" property to load my gif image (I can tell this is loading with proper transparency as I can see other elemnts behind it)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;So I do all of this and there is a gray box around the extents of my image rather than it being transparent.&lt;/P&gt;&lt;P&gt;I have found an .ocx called transimg that seems to work, but since it isn't open source, I don't know how they did it.&lt;/P&gt;&lt;P&gt;Any clues?</description><pubDate>Wed, 28 Jul 2010 19:26:26 GMT</pubDate><dc:creator>DanTheMan</dc:creator></item></channel></rss>
