Click here to Skip to main content
15,921,028 members
Home / Discussions / C#
   

C#

 
Questionc# Reverse GeoCode Pin
alam12326-Oct-09 1:45
alam12326-Oct-09 1:45 
QuestionCross threading problem Pin
Shaheer Abdulrahiman26-Oct-09 0:51
Shaheer Abdulrahiman26-Oct-09 0:51 
AnswerRe: Cross threading problem Pin
Mogamboo_Khush_Hua26-Oct-09 0:55
Mogamboo_Khush_Hua26-Oct-09 0:55 
AnswerRe: Cross threading problem Pin
Luc Pattyn26-Oct-09 0:56
sitebuilderLuc Pattyn26-Oct-09 0:56 
GeneralRe: Cross threading problem Pin
vtchris-peterson26-Oct-09 3:53
vtchris-peterson26-Oct-09 3:53 
GeneralRe: Cross threading problem Pin
Luc Pattyn26-Oct-09 4:25
sitebuilderLuc Pattyn26-Oct-09 4:25 
AnswerRe: Cross threading problem: Quick 'n dirty solution Pin
Alan Balkany26-Oct-09 4:49
Alan Balkany26-Oct-09 4:49 
GeneralRe: Cross threading problem: Quick 'n dirty solution Pin
DaveyM6926-Oct-09 8:24
professionalDaveyM6926-Oct-09 8:24 
GeneralRe: Cross threading problem: Quick 'n dirty solution Pin
Alan Balkany26-Oct-09 9:07
Alan Balkany26-Oct-09 9:07 
QuestionAn interview Question Pin
Mogamboo_Khush_Hua26-Oct-09 0:41
Mogamboo_Khush_Hua26-Oct-09 0:41 
AnswerRe: An interview Question Pin
Daniel Vaughan26-Oct-09 1:31
Daniel Vaughan26-Oct-09 1:31 
GeneralRe: An interview Question Pin
Mogamboo_Khush_Hua26-Oct-09 2:01
Mogamboo_Khush_Hua26-Oct-09 2:01 
GeneralRe: An interview Question Pin
J4amieC26-Oct-09 2:24
J4amieC26-Oct-09 2:24 
AnswerMessage Closed Pin
26-Oct-09 1:35
stancrm26-Oct-09 1:35 
GeneralRe: An interview Question Pin
Mogamboo_Khush_Hua26-Oct-09 1:54
Mogamboo_Khush_Hua26-Oct-09 1:54 
GeneralRe: An interview Question Pin
J4amieC26-Oct-09 2:25
J4amieC26-Oct-09 2:25 
QuestionInvoke C dll functions and structs in C# [modified] Pin
fifthjourney26-Oct-09 0:38
fifthjourney26-Oct-09 0:38 
AnswerRe: Invoke C dll functions and structs in C# Pin
Keith Barrow26-Oct-09 0:43
professionalKeith Barrow26-Oct-09 0:43 
QuestionDifference between Monitor.TryEnter(object,Timespan) and Monitor.Wait(object,Timespan) Pin
frommi26-Oct-09 0:12
frommi26-Oct-09 0:12 
AnswerRe: Difference between Monitor.TryEnter(object,Timespan) and Monitor.Wait(object,Timespan) Pin
Simon P Stevens26-Oct-09 0:43
Simon P Stevens26-Oct-09 0:43 
AnswerProblem with System.Diagnostics.Process.Start [modified] Pin
Slavakr26-Oct-09 0:10
Slavakr26-Oct-09 0:10 
AnswerRe: Problem with System.Diagnostics.Process.Start Pin
Simon P Stevens26-Oct-09 0:15
Simon P Stevens26-Oct-09 0:15 
GeneralRe: Problem with System.Diagnostics.Process.Start Pin
Slavakr26-Oct-09 0:31
Slavakr26-Oct-09 0:31 
GeneralRe: Problem with System.Diagnostics.Process.Start Pin
Simon P Stevens26-Oct-09 1:03
Simon P Stevens26-Oct-09 1:03 
QuestionShow Windows Desktop, nothing else... Pin
Naruki25-Oct-09 23:39
Naruki25-Oct-09 23:39 
C# newbie here.

I am using the wonderful John’s Background Switcher[^] to keep my wallpaper fresh and interesting, and I realized I'd like to make use of it for my screen saver, too.

Since he does not have an option for that, I thought I'd try learning how to make a little C# screensaver form that just showed the wallpaper as is.

That was about a week ago.

In my experiments, I decided there are two general ways of solving this problem:
1) create a blank desktop and display it with no apps running (or my own app, which wouldn't do anything but listen for a keypress)

2) hide everything on the existing desktop, leaving only the wallpaper visible

I have found code samples for creating desktops, but nothing that I can figure out how to make work with my tiny brain. So I concentrated on option 2.

This requires 3 steps:
a) hide all shortcut icons
b) hide all running taskbar icons [& the taskbar]
c) make wallpaper visible through my app's form

C seemed pretty easy from my Java perspective: just throw up a glasspane and be done. C# begs to differ with me.

I did finally find a way to keep my app transparent enough without allowing click-thru (mouse clicks activating the visible icons behind my transparent form), or so I think. Regardless, it won't matter if I hide everything that shouldn't be shown.

I have just now figured out how to reliably hide shortcut icons and redisplay them at will. This problem was a lot harder than it should have been because everybody seems to say "icons" when they mean the stuff on the taskbar (naturally, I assumed they'd use the term tasks or some such - silly me). But now it's good.

So now I am stuck on step B - hide everything else. I did find a PInvoke for toggling the desktop, but it has some nasty drawbacks:
- it requires including a DLL with the screen saver executable
- it does not let me know if things are visible or not
- the restore does not put things back the way they should be


I really think the first option is best (create an empty desktop), but I don't know how to make that work. If anyone has the right solution...

Barring that, does anyone know how to "properly" hide all desktop icons, and then how to restore them as they were?

No code shown because my stuff is a horrible mess and would only make this post even more confusing. But I'll post whatever bits are requested, and of course when I get it working I'll share the whole finished steaming pile of code.

よろしくおねがいします。

Narf.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.