Click here to Skip to main content
15,885,216 members
Home / Discussions / C#
   

C#

 
GeneralRe: "The table could not found" and " the report need more information" Pin
haleemasher2-Nov-09 22:47
haleemasher2-Nov-09 22:47 
Questionthank a lot. a problem about the muti-thread Pin
scoket2-Nov-09 20:13
scoket2-Nov-09 20:13 
AnswerRe: thank a lot. a problem about the muti-thread Pin
Christian Graus2-Nov-09 20:21
protectorChristian Graus2-Nov-09 20:21 
GeneralRe: thank a lot. a problem about the muti-thread Pin
scoket2-Nov-09 21:04
scoket2-Nov-09 21:04 
GeneralRe: thank a lot. a problem about the muti-thread Pin
Luc Pattyn3-Nov-09 1:00
sitebuilderLuc Pattyn3-Nov-09 1:00 
Questiontreeview control Pin
Member 5903102-Nov-09 19:31
Member 5903102-Nov-09 19:31 
AnswerRe: treeview control Pin
Christian Graus2-Nov-09 19:37
protectorChristian Graus2-Nov-09 19:37 
Question(ActiveWindow == DesktopWindow) Pin
JokerXtreme2-Nov-09 13:50
JokerXtreme2-Nov-09 13:50 
Hey all, i have a question. I've searched everywhere for the answer and I can't find anything. So here it is. This is a part of the code, which I've copied from somewhere by the way.

<br />
public static bool IsUserPlayingFullscreen()<br />
{<br />
     IntPtr hWnd = GetForegroundWindow();<br />
     if (hWnd == GetDesktopWindow())<br />
     {<br />
          Logger.LogMessageToFile("F***");<br />
          return false;<br />
     }<br />
<br />
     RECT rcWindow;<br />
     GetWindowRect(hWnd, out rcWindow);<br />
     IntPtr hm = MonitorFromRect(ref rcWindow, MONITOR_DEFAULTTONULL);<br />
     if (hm == IntPtr.Zero) return false;<br />
     MONITORINFO mi = new MONITORINFO();<br />
     mi.cbSize = Marshal.SizeOf(typeof(MONITORINFO));<br />
     GetMonitorInfo(hm, ref mi);<br />
     return EqualRect(ref rcWindow, ref mi.rcMonitor);<br />
}<br />


Anyway, here I'm trying to detect if a full screen application is running. Runs pretty nice in most of the situations, besides one. If the desktop window is active, it is tricked in believing it is a FS App. I thought that this
"if (hWnd == GetDesktopWindow())" would detect if the current active window is the desktop, but it doesn't! Any help? Thanx in advance!
AnswerMessage Closed Pin
2-Nov-09 21:22
stancrm2-Nov-09 21:22 
QuestionRe: (ActiveWindow == DesktopWindow) Pin
JokerXtreme3-Nov-09 3:01
JokerXtreme3-Nov-09 3:01 
QuestionRe: (ActiveWindow == DesktopWindow) Pin
JokerXtreme3-Nov-09 8:16
JokerXtreme3-Nov-09 8:16 
AnswerRe: (ActiveWindow == DesktopWindow) Pin
JokerXtreme3-Nov-09 11:16
JokerXtreme3-Nov-09 11:16 
Question!!! HELP ME !!! Realize a vumeter for file audio Pin
uelfox2-Nov-09 13:13
uelfox2-Nov-09 13:13 
AnswerRe: !!! HELP ME !!! Realize a vumeter for file audio Pin
Christian Graus2-Nov-09 13:45
protectorChristian Graus2-Nov-09 13:45 
AnswerRe: !!! HELP ME !!! Realize a vumeter for file audio Pin
The Man from U.N.C.L.E.2-Nov-09 23:58
The Man from U.N.C.L.E.2-Nov-09 23:58 
Questionms char and contour surface plot Pin
ThorTheBraveGod2-Nov-09 11:25
ThorTheBraveGod2-Nov-09 11:25 
AnswerRe: ms char and contour surface plot Pin
Christian Graus2-Nov-09 11:40
protectorChristian Graus2-Nov-09 11:40 
GeneralRe: ms char and contour surface plot Pin
ThorTheBraveGod3-Nov-09 4:49
ThorTheBraveGod3-Nov-09 4:49 
AnswerRe: ms char and contour surface plot Pin
Super Lloyd2-Nov-09 14:08
Super Lloyd2-Nov-09 14:08 
GeneralRe: ms char and contour surface plot Pin
ThorTheBraveGod3-Nov-09 4:48
ThorTheBraveGod3-Nov-09 4:48 
QuestionProgrammatically launch wifi settings dialogs in Windows 7 Pin
David Knechtges2-Nov-09 10:08
David Knechtges2-Nov-09 10:08 
AnswerRe: Programmatically launch wifi settings dialogs in Windows 7 Pin
Christian Graus2-Nov-09 10:09
protectorChristian Graus2-Nov-09 10:09 
GeneralRe: Programmatically launch wifi settings dialogs in Windows 7 Pin
David Knechtges2-Nov-09 10:31
David Knechtges2-Nov-09 10:31 
Questionencryption Pin
jashimu2-Nov-09 8:31
jashimu2-Nov-09 8:31 
AnswerRe: encryption Pin
Christian Graus2-Nov-09 9:02
protectorChristian Graus2-Nov-09 9:02 

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.