?
Solved

Transparent Color: Visual Studio Windows form

Posted on 2006-05-01
6
Medium Priority
?
282 Views
Last Modified: 2008-03-17
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
Comment
Question by:Murray Brown
  • 3
  • 3
6 Comments
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 2000 total points
ID: 16576695
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
 

Author Comment

by:Murray Brown
ID: 16578807
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
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 16578860
I usually create an images folder at the root of the project and then subdirs for further categorization.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:Murray Brown
ID: 16579000
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
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 16579532
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
 

Author Comment

by:Murray Brown
ID: 16583657
Thanks very much Carl
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…
Suggested Courses

621 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