Click here to Skip to main content
15,920,801 members
Home / Discussions / C#
   

C#

 
QuestionAnyway to get maxlength of a datacolumn when it comes back as -1 ? Pin
csharpguyfromde2-Feb-07 8:34
csharpguyfromde2-Feb-07 8:34 
AnswerRe: Anyway to get maxlength of a datacolumn when it comes back as -1 ? Pin
PIEBALDconsult2-Feb-07 8:48
mvePIEBALDconsult2-Feb-07 8:48 
GeneralRe: Anyway to get maxlength of a datacolumn when it comes back as -1 ? Pin
csharpguyfromde2-Feb-07 9:07
csharpguyfromde2-Feb-07 9:07 
QuestionPASS TEXTBOX.TEXT VALUE TO THE SQL QUERY BUILDER Pin
pranav kotak2-Feb-07 8:21
pranav kotak2-Feb-07 8:21 
AnswerRe: PASS TEXTBOX.TEXT VALUE TO THE SQL QUERY BUILDER Pin
led mike2-Feb-07 8:46
led mike2-Feb-07 8:46 
QuestionDetecting full screen applications Pin
Cesa372-Feb-07 8:02
Cesa372-Feb-07 8:02 
AnswerRe: Detecting full screen applications Pin
PIEBALDconsult2-Feb-07 8:26
mvePIEBALDconsult2-Feb-07 8:26 
GeneralRe: Detecting full screen applications Pin
Luc Pattyn2-Feb-07 9:08
sitebuilderLuc Pattyn2-Feb-07 9:08 
If you really want this (and I can understand some popups are annoying in the middle of
a game), you could use PInvoke to get at EnumWindows, and check if there is any main window
with a size equal to the screen size.
It may be insufficient for exact size match (e.g. a maximized window is larger than the screen,
just check it), and having multiple monitors might also complicate matters.

Two prototypes to get you started:

/// <summary>
/// Enumerate all windows, calling a delegate for each of them.
/// </summary>
/// <param name="ewp"></param>
/// <param name="lParam"></param>
/// <returns></returns>
[DllImport("user32.dll", CallingConvention=CallingConvention.StdCall)]
public static extern int EnumWindows(LP_EnumWindowsProc ewp, object lParam);

/// <summary>
/// delegate used for EnumWindows() callback function
/// </summary>
public delegate bool LP_EnumWindowsProc(IntPtr hWnd, int lParam);

Smile | :)




Luc Pattyn
QuestionVisual Studio C# - plugging in external DLL's Pin
sysrev2-Feb-07 7:11
sysrev2-Feb-07 7:11 
AnswerRe: Visual Studio C# - plugging in external DLL's Pin
Luc Pattyn2-Feb-07 7:26
sitebuilderLuc Pattyn2-Feb-07 7:26 
GeneralRe: Visual Studio C# - plugging in external DLL's Pin
sysrev3-Feb-07 1:14
sysrev3-Feb-07 1:14 
GeneralRe: Visual Studio C# - plugging in external DLL's Pin
Luc Pattyn3-Feb-07 1:28
sitebuilderLuc Pattyn3-Feb-07 1:28 
GeneralRe: Visual Studio C# - plugging in external DLL's Pin
sysrev3-Feb-07 1:55
sysrev3-Feb-07 1:55 
Questionshape files Pin
hamadam212-Feb-07 6:57
hamadam212-Feb-07 6:57 
Questionscale picture Pin
hamadam212-Feb-07 6:55
hamadam212-Feb-07 6:55 
AnswerRe: scale picture Pin
Luc Pattyn2-Feb-07 7:32
sitebuilderLuc Pattyn2-Feb-07 7:32 
Questionhow to create multiple instance of windows service .Net Pin
sundar1562-Feb-07 6:44
sundar1562-Feb-07 6:44 
AnswerRe: how to create multiple instance of windows service .Net Pin
Luc Pattyn2-Feb-07 7:34
sitebuilderLuc Pattyn2-Feb-07 7:34 
GeneralRe: how to create multiple instance of windows service .Net Pin
PIEBALDconsult2-Feb-07 8:29
mvePIEBALDconsult2-Feb-07 8:29 
GeneralRe: how to create multiple instance of windows service .Net Pin
sundar1566-Feb-07 4:44
sundar1566-Feb-07 4:44 
QuestionLike contacts edit of outlook (exchange server 2003) from (c *.net with framework 1.1) Pin
HugoCor2-Feb-07 5:57
HugoCor2-Feb-07 5:57 
AnswerRe: Like contacts edit of outlook (exchange server 2003) from (c *.net with framework 1.1) Pin
led mike2-Feb-07 6:26
led mike2-Feb-07 6:26 
QuestionCreate Collection from Class Pin
mail5723522-Feb-07 5:21
mail5723522-Feb-07 5:21 
AnswerRe: Create Collection from Class Pin
Abisodun2-Feb-07 5:27
Abisodun2-Feb-07 5:27 
AnswerRe: Create Collection from Class Pin
Luc Pattyn2-Feb-07 7:36
sitebuilderLuc Pattyn2-Feb-07 7:36 

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.