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

C#

 
QuestionSwitching a program from foreground to background Pin
WubbleU26-Jun-10 22:53
WubbleU26-Jun-10 22:53 
AnswerRe: Switching a program from foreground to background Pin
DaveAuld26-Jun-10 23:24
professionalDaveAuld26-Jun-10 23:24 
GeneralRe: Switching a program from foreground to background Pin
WubbleU26-Jun-10 23:28
WubbleU26-Jun-10 23:28 
GeneralRe: Switching a program from foreground to background Pin
Trollslayer26-Jun-10 23:38
mentorTrollslayer26-Jun-10 23:38 
GeneralRe: Switching a program from foreground to background Pin
WubbleU26-Jun-10 23:42
WubbleU26-Jun-10 23:42 
GeneralRe: Switching a program from foreground to background Pin
Trollslayer27-Jun-10 0:09
mentorTrollslayer27-Jun-10 0:09 
GeneralRe: Switching a program from foreground to background Pin
Richard MacCutchan27-Jun-10 0:15
mveRichard MacCutchan27-Jun-10 0:15 
AnswerRe: Switching a program from foreground to background Pin
PIEBALDconsult27-Jun-10 4:08
mvePIEBALDconsult27-Jun-10 4:08 
As far as I can tell, you want the project to be a Console project.

Perform your "before" stuff.
(Maybe wait for the user to press RETURN.)
Then call FreeConsole to remove the console window.
Then Run the Form.

[
    System.Runtime.InteropServices.DllImportAttribute
    (
        "Kernel32"
    ,
        SetLastError=true
    ,
        EntryPoint="FreeConsole"
    )
]
private static extern bool
API_FreeConsole() ;

/**
<summary>
    Uses pinvoke to call the Windows FreeConsole method
</summary>
<returns>
    The result of FreeConsole
</returns>
*/
public static bool
FreeConsole
(
)
{
    return ( API_FreeConsole() ) ;
}

GeneralRe: Switching a program from foreground to background Pin
WubbleU1-Jul-10 16:37
WubbleU1-Jul-10 16:37 
GeneralRe: Switching a program from foreground to background Pin
WubbleU3-Jul-10 19:50
WubbleU3-Jul-10 19:50 
QuestionStringBuilder and String [modified] Pin
NetQuestions26-Jun-10 22:28
NetQuestions26-Jun-10 22:28 
AnswerRe: StringBuilder and String Pin
Keith Barrow26-Jun-10 22:49
professionalKeith Barrow26-Jun-10 22:49 
AnswerRe: StringBuilder and String Pin
OriginalGriff26-Jun-10 22:57
mveOriginalGriff26-Jun-10 22:57 
AnswerRe: StringBuilder and String Pin
harold aptroot27-Jun-10 2:34
harold aptroot27-Jun-10 2:34 
GeneralRe: StringBuilder and String Pin
Daniel Grunwald29-Jun-10 0:41
Daniel Grunwald29-Jun-10 0:41 
GeneralRe: StringBuilder and String Pin
harold aptroot29-Jun-10 0:51
harold aptroot29-Jun-10 0:51 
AnswerRe: StringBuilder and String Pin
PIEBALDconsult27-Jun-10 5:36
mvePIEBALDconsult27-Jun-10 5:36 
QuestionDOT MATRIX PRINTING PROBLEM Pin
vishnukamath26-Jun-10 20:03
vishnukamath26-Jun-10 20:03 
AnswerRe: DOT MATRIX PRINTING PROBLEM Pin
DaveAuld26-Jun-10 21:32
professionalDaveAuld26-Jun-10 21:32 
QuestionQuick Watch Pin
Darrall26-Jun-10 10:36
Darrall26-Jun-10 10:36 
AnswerRe: Quick Watch Pin
Pete O'Hanlon26-Jun-10 10:51
mvePete O'Hanlon26-Jun-10 10:51 
GeneralRe: Quick Watch Pin
Darrall26-Jun-10 10:53
Darrall26-Jun-10 10:53 
GeneralRe: Quick Watch Pin
Pete O'Hanlon26-Jun-10 11:01
mvePete O'Hanlon26-Jun-10 11:01 
AnswerRe: Quick Watch Pin
riced26-Jun-10 10:53
riced26-Jun-10 10:53 
GeneralRe: Quick Watch Pin
Darrall26-Jun-10 10:54
Darrall26-Jun-10 10:54 

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.