Click here to Skip to main content
15,924,195 members
Home / Discussions / C#
   

C#

 
Question.net Exe (Console application) is not working on the remote server Pin
Raheem MA9-Jul-08 1:43
Raheem MA9-Jul-08 1:43 
AnswerRe: .net Exe (Console application) is not working on the remote server Pin
leppie9-Jul-08 1:54
leppie9-Jul-08 1:54 
Questiondisable keypress (Alt+F4, Ctrl+Alt+Del) Pin
Yosh_9-Jul-08 1:40
professionalYosh_9-Jul-08 1:40 
AnswerRe: disable keypress (Alt+F4, Ctrl+Alt+Del) Pin
User 66589-Jul-08 1:56
User 66589-Jul-08 1:56 
GeneralRe: disable keypress (Alt+F4, Ctrl+Alt+Del) Pin
Yosh_9-Jul-08 2:08
professionalYosh_9-Jul-08 2:08 
GeneralRe: disable keypress (Alt+F4, Ctrl+Alt+Del) Pin
User 66589-Jul-08 2:12
User 66589-Jul-08 2:12 
AnswerRe: disable keypress (Alt+F4, Ctrl+Alt+Del) Pin
leppie9-Jul-08 1:57
leppie9-Jul-08 1:57 
AnswerRe: disable keypress (Alt+F4, Ctrl+Alt+Del) Pin
PIEBALDconsult9-Jul-08 15:13
mvePIEBALDconsult9-Jul-08 15:13 
As to Alt-F4:that has been asked a couple of times already this year and this time I don't feel like looking for the other posts,
and I forget who here pointed me in the right direction, so...

private const System.Int32 SC_CLOSE   = 0xF060 ;
private const System.Int32 MF_ENABLED = 0x0000 ;
private const System.Int32 MF_GRAYED  = 0x0001 ;

/* http://msdn2.microsoft.com/en-us/library/ms647985(VS.85).aspx */
[
    System.Runtime.InteropServices.DllImportAttribute
    (
        "User32"
    ,
        SetLastError=true
    ,
        EntryPoint="GetSystemMenu"
    )
]
private static extern System.IntPtr
API_GetSystemMenu
(
    System.IntPtr  hWnd
,
    System.Boolean bRevert
) ;

/* http://msdn2.microsoft.com/en-us/library/ms647636.aspx */
[
    System.Runtime.InteropServices.DllImportAttribute
    (
        "User32"
    ,
        SetLastError=true
    ,
        EntryPoint="EnableMenuItem"
    )
]
private static extern System.Int32
API_EnableMenuItem
(
    System.IntPtr hMenu
,
    System.UInt32 uIDEnableItem
,
    System.UInt32 uEnable
) ;


public static bool
DisableSystemMenuClose
(
    System.Windows.Forms.Form Target
)
{
    return ( API_EnableMenuItem
    (
        API_GetSystemMenu
        (
            Target.Handle
        ,
            false
        )
    ,
        SC_CLOSE
    ,
        MF_GRAYED
    ) != -1 ) ;
}

public static bool
EnableSystemMenuClose
(
    System.Windows.Forms.Form Target
)
{
    return ( API_EnableMenuItem
    (
        API_GetSystemMenu
        (
            Target.Handle
        ,
            false
        )
    ,
        SC_CLOSE
    ,
        MF_ENABLED
    ) != -1 ) ;
}

Questionabout the linked subreport parameter in c#2005 Pin
mctramp1689-Jul-08 1:34
mctramp1689-Jul-08 1:34 
AnswerRe: about the linked subreport parameter in c#2005 Pin
mctramp1689-Jul-08 14:29
mctramp1689-Jul-08 14:29 
AnswerRe: about the linked subreport parameter in c#2005 Pin
mctramp16810-Jul-08 14:37
mctramp16810-Jul-08 14:37 
QuestionMaster to content Pin
Agweet9-Jul-08 1:33
Agweet9-Jul-08 1:33 
AnswerRe: Master to content Pin
leppie9-Jul-08 1:55
leppie9-Jul-08 1:55 
GeneralRe: Master to content Pin
Agweet9-Jul-08 2:04
Agweet9-Jul-08 2:04 
QuestionDynamic rows Pin
karthave9-Jul-08 1:25
karthave9-Jul-08 1:25 
AnswerRe: Dynamic rows Pin
Christian Graus9-Jul-08 1:27
protectorChristian Graus9-Jul-08 1:27 
QuestionRegarding textboxes editibility Pin
tasumisra9-Jul-08 1:17
tasumisra9-Jul-08 1:17 
AnswerRe: Regarding textboxes editibility Pin
tasumisra9-Jul-08 1:25
tasumisra9-Jul-08 1:25 
AnswerRe: Regarding textboxes editibility Pin
Christian Graus9-Jul-08 1:26
protectorChristian Graus9-Jul-08 1:26 
QuestionMergeing On-Click events in Code-Behind Pin
imnotso#9-Jul-08 0:50
imnotso#9-Jul-08 0:50 
AnswerRe: Mergeing On-Click events in Code-Behind Pin
Christian Graus9-Jul-08 1:27
protectorChristian Graus9-Jul-08 1:27 
GeneralRe: Mergeing On-Click events in Code-Behind Pin
imnotso#9-Jul-08 3:10
imnotso#9-Jul-08 3:10 
QuestionGetting machinename and their IP of a Lan [modified] Pin
Mogaambo9-Jul-08 0:34
Mogaambo9-Jul-08 0:34 
AnswerRe: Getting machinename and their IP of a Lan Pin
leppie9-Jul-08 2:00
leppie9-Jul-08 2:00 
GeneralRe: Getting machinename and their IP of a Lan Pin
Mogaambo9-Jul-08 2:47
Mogaambo9-Jul-08 2:47 

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.