• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 287
  • Last Modified:

Transparent Color: Visual Studio Windows form

Hi

I am building a Windows form that has a diagram that needs to change to whatever
color the user picks.

The diagram was taken from a screen shot and placed in Microsoft Paint, where I tried
to do a Windows form grey outline and then use transparent colour in the middle.

The idea was to change the background color of the picture box so that it would come through
the transparent part of the diagram, hence appearing to change color.

The problem is the MS Paint doesn't appear to have transparent color, only white.

Any help on this would be greatly appreciated
0
Murray Brown
Asked:
Murray Brown
  • 3
  • 3
1 Solution
 
Carl TawnSystems and Integration DeveloperCommented:
You need a better paint app :o)

You could try Paint Shop Pro from Corel (formerly from Jasc). This will allow you to specify which colour to use for transparency when you save an image.  
http://www.corel.co.uk/servlet/Satellite?pagename=Corel3Uk/Products/Display&pfid=1047024670813&pid=1047025446809


You will also need to save your image as a GIF, since Bitmaps do not support transparency directly.
0
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Thanks very much. Would you be able to tell me the best folder area to store the gif files for your visual studio project. Thanks
0
 
Carl TawnSystems and Integration DeveloperCommented:
I usually create an images folder at the root of the project and then subdirs for further categorization.
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
So for example I could just create a folder in the following location using Windows Explorer

C:\Documents and Settings\Murray\My Documents\Visual Studio 2005\Projects\vsCoseq\Images

Thanks
0
 
Carl TawnSystems and Integration DeveloperCommented:
Yup, if you want to. Its easier if its under your project somewhere because then you can use relative paths in your pages when including images. Plus, when it comes to deploying your app, you know where everything is.
0
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Thanks very much Carl
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now