473,378 Members | 1,309 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

TransparencyKey

Hi guys,

I am writing an app that I wish to have a transparent background. In the
InitializeComponent() method I set the members of the form to the following:

//-- Code -------------------------------------------

this.FormBorderStyle = FormBorderStyle.None;
this.MaximizeBox = false;
this.BackColor = Color.FromArgb(((System.Byte)(128)), ((System.Byte)(128)),
((System.Byte)(255)));
this.TransparencyKey = Color.FromArgb(((System.Byte)(128)),
((System.Byte)(128)), ((System.Byte)(255)));

//-- End of Code ------------------------------------

I am then drawing graphics of a clock as per
http://www.publicjoe.f9.co.uk/csharp...nalogclock.exe
application.

This works great under windows 2000, but not XP. Can someone please point me
in the right direction.

Full code can be seen at
http://www.publicjoe.f9.co.uk/csharp...analogclock.cs

Thanks in advance

Publicjoe

C# Tutorial at http://www.publicjoe.f9.co.uk/csharp/tut.html
C# Ebook at http://www.publicjoe.f9.co.uk/csharp/samples/ebook.html
VB Tutorial at http://www.publicjoe.f9.co.uk/vbnet/vbnet.html
VB Ebook at http://www.publicjoe.f9.co.uk/vbnet/samples/ebook.html
Mirrors at http://www.dowhileloop.com/publicjoe/ and
http://www.publicjoe.justbe.com/

Useful Articles at http://www.madsally.co.uk

Nov 16 '05 #1
0 2741

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: kiplring | last post by:
It is about inside the .net framework. Anyone know or can guess TransparencyKey Implementation? First, It can be implemented by Region. Second, It can be implemented by Layer. Third, It...
0
by: ddd | last post by:
Hi, I am building a simple windows form which mimics the windows media player. It user the wmplayer control, and has as transparencykey white. For some reason the player does not play the...
1
by: Brian | last post by:
If your like me, you have probably seen way too many demos of the opacity property of a form. Well I finally have a need for it and I am having an issue. I am trying to create a splash screen...
1
by: Derrick | last post by:
Hello all; I have a form with the Background color and TransparencyKey set to the same value. When I run this as a Windows App, everything works as it should. However, if I change this...
1
by: perspolis | last post by:
Hi all I used TransparencyKey in my form to hide portion of my form but when form is shown it shows flicker before displaying.. how can I remove this flicker?? thanks in advance
1
by: pigeonrandle | last post by:
Hi, I have a treeview which has some nodes whose text are too long to display, so, when i hover my mouse over the node a tooltip appears showing all the text, and then disappears almost...
1
by: VMI | last post by:
I have a Windows Form and, for its BackgroundImage, I put an all-white bitmap (opened mspaint, and immediately saved as bmp). Then I set the TransparencyKey property to White (I also added it in...
3
by: bigdunka | last post by:
I am working on layering a few picture boxes on top of each other in a basic 3D grid, viewed from front and a little to the right, using Visual Studio 05. I have color 128, 254, 128 set as the...
8
by: Rainer Queck | last post by:
Hello NG, I had/have a bad flicker Problem with my Application. On starting some applications, while my app was running, the whole Display started to flicker. Even the desktop Icons! Looking...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.