Solved

develop an active desktop control in c#

Posted on 2006-06-28
6
1,383 Views
Last Modified: 2008-02-07
Hi all experts,
i want to develop a nice thing that will be on the desktop (like an active desktop) something like this: http://www.tinnes.org.uk/desktopcalendar/about.htm
or this: http://www.xemico.com/adc/screenshots.html
and i don't have any clue where to start from (i want to use C# of course.)
any ideas?
Thanks Navot.
0
Comment
Question by:navotvolk
  • 3
  • 2
6 Comments
 
LVL 4

Expert Comment

by:SmithJW
ID: 17017300
Since you want to do this using c#, Active Desktop is the wrong method.

You should create a form, and set the background color as the transparency colour, then set the form to always be at the background. Finally whyn you add controls they will appear as if they are floating on your desktop.

I have used a similar approach on a little project that is available somewhere on my website (linked in my profile).
If you want a form template creating for this, post back, and i'll see what i can do!

Alternatively... you can get a handle to the desktop window, from which you can create a GDI bitmap to draw on. There are API functions to do all this, which i can list for you if you want to give it a try.
This method will give you freedom to control exactly what you want to draw, but really isnt worth the effort, and is much much harder than a transparent form.

0
 
LVL 1

Author Comment

by:navotvolk
ID: 17018303
thanks for your answer,
i looked it your site and didnt found it.
can you send me the form template?
i tried to make a transperetn form before but the problem is it makes the text transperent two (and i want it to remain solid black)
did you handle it in your template?
0
 
LVL 4

Accepted Solution

by:
SmithJW earned 250 total points
ID: 17018803
I have uploaded a sample with instructions:
http://smithjw.no-ip.com/TransparencyTemplate.zip

The basics of it are
set the transparency key to a known color
make transparent areas use that color
turn off the form border
et voila... thats all there is to it :)

this was built using visual studio 2005.
hope it helps :)
0
 
LVL 4

Expert Comment

by:SmithJW
ID: 17018818
I almost forget... there are probly a few other bits and bobs needed to make the illusion complete, such as setting the form not to display a taskbar, and adding an area where you can allow the user to re-position the window. apart from that, it should be
0
 
LVL 1

Author Comment

by:navotvolk
ID: 17019518
thanks i will check it on sunday and then i will accecpt the answer.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

806 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