When you have imported a selfmade bitmap into you project (for example with a grey background) it looks great when the backcolor from the form is also grey. But when you change the form color with windows settings the formcolor changes but not the back ground of your picture. Follow the steps below how to get ridoff this problem.
1: First Download the zip that comes with this explaning text.
2: Unzip it. When you are done start the programm.
3: Open Paint en select for a backgroundcolor the cyan color.
4: Draw your picture (dont use the background color)
5: select your picture and copy it to the clipboard.
6: Go to the Microsoft Animated Gif Editor and press
the paste button. You will see that your picture is
imported in the first frame.
7: Select the Image Tab
8: Klick on the transparantcy Checkbox and then on the
littele colorbox below
9: Select the same background color you have used in paint
(the cyan color)and press the OK button
10: Press the savebutton and save your picture
11: now open visual basic and start a Basic Program.
12: Put an Image control on your form.
13: Now select the Picture propperty and search for your safed gif you have made in the steps before.
14: When you have opend your picture you will see that the ugly cyan backgroundcolor has become transparent and the is has become the color from the active form.
Original Author: Eric Dijkstra
Attachments
File | Uploaded | Size |
---|---|---|
CODE_UPLOAD29691212000.zip | 9/3/2020 3:45:00 PM | 8108 |