Jump to content

Perminantly displaying a smiley face on the screen (above all windows)

- - - - -

  • Please log in to reply
4 replies to this topic

#1
Alex3k

Alex3k

    Programmer

  • Members
  • PipPipPipPip
  • 109 posts
Hey Guys(and Girls)

I am looking to write a program that displays a smiley face on the screen constantly above all the windows so there is no way of getting rid of it. It is a program i want to put on my friends computer as a joke and to remove it just press a button combo or or something along those lines.

I thought of making a entire program but i wasnt sure i would be able to do that as i still want them to interact with the general uses of the computer but just have a inconvient smiley face in the corner of the screen. (things like that really annoy him :P)

Can anyone help me out?
Dreamspark really does "Spark Dreams"
---------------------------------------
View my Blog

#2
CommittedC0der

CommittedC0der

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,565 posts
Just set the background image of your form to the smily face, and change the border to none(so he cant exit it), then put the "above all" property to true. That should do the trick. :)

~ Committed.
A man can be defined by what he does when no one is looking.
Science is only an educated theory, which we cannot disprove.

#3
Alex3k

Alex3k

    Programmer

  • Members
  • PipPipPipPip
  • 109 posts
Haha that simple?
brilliant :D
Dreamspark really does "Spark Dreams"
---------------------------------------
View my Blog

#4
LuthfiHakim

LuthfiHakim

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 765 posts
Or you can directly draw to the desktop canvas using gdi calls. Check Windows API GetDesktopWindow to get desktop window handle to draw on.

#5
wixifo

wixifo

    Newbie

  • Members
  • PipPip
  • 13 posts
You don't even need to set a hotkey to close it, you can just make it close using Ctrl+Alt+Del :p




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users