Click here to Skip to main content
15,914,071 members
Home / Discussions / C#
   

C#

 
GeneralRe: What is the equivalant to constant string array in C#? Pin
OriginalGriff3-Nov-09 1:47
mveOriginalGriff3-Nov-09 1:47 
GeneralRe: What is the equivalant to constant string array in C#? Pin
Luc Pattyn3-Nov-09 1:49
sitebuilderLuc Pattyn3-Nov-09 1:49 
GeneralRe: What is the equivalant to constant string array in C#? Pin
CelestialCoder3-Nov-09 20:30
CelestialCoder3-Nov-09 20:30 
AnswerRe: What is the equivalant to constant string array in C#? Pin
Hristo-Bojilov3-Nov-09 1:19
Hristo-Bojilov3-Nov-09 1:19 
QuestionDataGridBoolColumn disable CheckBox Pin
kantoz3-Nov-09 0:08
kantoz3-Nov-09 0:08 
AnswerRe: DataGridBoolColumn disable CheckBox Pin
dan!sh 3-Nov-09 1:30
professional dan!sh 3-Nov-09 1:30 
QuestionVisual Studio 2008 cannot detect error Pin
Aftab Sindhi2-Nov-09 23:23
Aftab Sindhi2-Nov-09 23:23 
AnswerRe: Visual Studio 2008 cannot detect error Pin
freakyit2-Nov-09 23:35
freakyit2-Nov-09 23:35 
GeneralRe: Visual Studio 2008 cannot detect error Pin
Aftab Sindhi2-Nov-09 23:45
Aftab Sindhi2-Nov-09 23:45 
AnswerRe: Visual Studio 2008 cannot detect error Pin
Luc Pattyn3-Nov-09 0:56
sitebuilderLuc Pattyn3-Nov-09 0:56 
GeneralRe: Visual Studio 2008 cannot detect error Pin
Aftab Sindhi3-Nov-09 1:13
Aftab Sindhi3-Nov-09 1:13 
AnswerRe: Visual Studio 2008 cannot detect error Pin
Aftab Sindhi11-Nov-09 4:44
Aftab Sindhi11-Nov-09 4:44 
Questionhow to change instalation screen Pin
sudhir behera2-Nov-09 22:57
sudhir behera2-Nov-09 22:57 
AnswerRe: how to change instalation screen Pin
The Man from U.N.C.L.E.3-Nov-09 0:05
The Man from U.N.C.L.E.3-Nov-09 0:05 
Question"The table could not found" and " the report need more information" Pin
haleemasher2-Nov-09 22:29
haleemasher2-Nov-09 22:29 
AnswerRe: "The table could not found" and " the report need more information" Pin
Christian Graus2-Nov-09 22:37
protectorChristian Graus2-Nov-09 22:37 
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 

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.