Solved

develop an active desktop control in c#

Posted on 2006-06-28
6
1,392 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: 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

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

729 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