Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Project to display tranparent image

Posted on 2011-04-27
6
Medium Priority
?
249 Views
Last Modified: 2012-05-11
Hello,

I am trying to do a project in VB (VS2010/2008) to just display and image onscreen with the "empty" parts of the image be transparent and show the underlying window.  I would appreciate it if someone could point me to a sample project that examples something like this or some sample code.  I am relatively new to VB but have been doing VBA and C++ for a long time.

I am familiar with how to create a form and picturebox but the grey background of the form shows behind the picture and I just want to show the desktop/etc in the background...

Thank you,
0
Comment
Question by:jason987
  • 2
  • 2
5 Comments
 
LVL 5

Author Comment

by:jason987
ID: 35478996
Actually I got everything I needed just by loading the miage in the background and setting the color to window and background to transparent (web) but for some reason the image doesn't display, a white X has just some of the pixels.  See attached. t6est
0
 
LVL 4

Expert Comment

by:MaximumIQ
ID: 35479642
What's your ImageTransparentColor property set to for the image control?
0
 
LVL 4

Expert Comment

by:MaximumIQ
ID: 35479693
You can try making the backcolor of your form Red and also setting the TransparencyKey of the form to Red as well. Now the transparent area of the background image (Which would have showed up Red) will show transparent because the TransparencyKey of the form is also set to red.
0
 
LVL 5

Accepted Solution

by:
jason987 earned 0 total points
ID: 35479785
Everything I wanted to do could be done through form controls with no code.
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 35859787
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Simulator games are perfect for generating sample realistic data streams, especially for learning data analysis. It is even useful for demoing offerings such as Azure stream analytics, PowerBI etc.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question