Welcome to MSDN Blogs Sign in | Join | Help

aWorkBlogByGus

Gus Perez on C#, .NET Development and Software Testing
Two more C# apps added: RightSideUp and Space Invaders
I've moved over a couple more of the apps from my old site that I've hacked up over time.  RightSideUp is an app that automatically rotates images based on the orientation in their EXIF data.  Space Invaders is another clone of the classic game.  Source and binaries available for both.
Posted: Friday, March 12, 2004 11:38 PM by GusPerez

Comments

Joku said:

Hey, think you could have the uptime(2000) source available or perhaps show how to achieve same functionality in C# / .net? I liked the ability to put it on top and have the mouse clicks just go through it (even the text) as if it weren't there. Unfortunately i'm in the impression this needs some interop..

I can get similar thing with transparency key thing, but it will only work for the background, not the text in the form.
# March 17, 2004 8:27 AM

Joku said:

Actually i think i got the idea what to try. I looked up what stuff your uptime2000 was importing and with a bit of reading up found WS_EX_TRANSPARENT, if i get the hwnd of the winform in C# it is probably possible to use this with layered window stuff to achieve the effect, but apparently needs this small bit of interop.. ?
# March 17, 2004 8:59 AM

Gus Perez said:

I'll try to dig up the source for Uptime soon and post it. I honestly don't remember what flags I had to use as it's been ages since I worked on that app. I do remember trying to do the same thing with C# in the 7.0 timeframe and also coming to the conclusion that there was going to be some pinvoking involved. Though I don't know if I ever went forward on it.

Anyway, I'll post the code soon. Thanks!
# March 17, 2004 9:23 AM

Gus Perez said:

Joku, I just posted the Uptime 2000 source. You can find it here: http://blogs.msdn.com/gusperez/archive/2004/03/17/91738.aspx.

# March 17, 2004 11:35 PM

TrackBack said:

LSN WebLog » Uptime 2000 - Tool to display your system uptime transparently on your desktop
# April 10, 2004 3:25 PM
New Comments to this post are disabled
Page view tracker