Solved

develop an active desktop control in c#

Posted on 2006-06-28
6
1,379 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Article by: Ivo
Anonymous Types in C# by Ivo Stoykov Anonymous Types are useful when  we do not need to follow usual work-flow -- creating object of some type, assign some read-only values and then doing something with them. Instead we can encapsulate this read…
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
This video discusses moving either the default database or any database to a new volume.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now