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

C#

 
GeneralRe: upgrading to 2003 - problems with reports Pin
LongRange.Shooter1-Jun-04 6:39
LongRange.Shooter1-Jun-04 6:39 
GeneralRe: upgrading to 2003 - problems with reports Pin
econnor1-Jun-04 8:09
econnor1-Jun-04 8:09 
GeneralSetting Up Update Pin
MrJJKoolJ1-Jun-04 6:13
MrJJKoolJ1-Jun-04 6:13 
GeneralRe: Setting Up Update Pin
flow55551-Jun-04 6:24
flow55551-Jun-04 6:24 
GeneralRe: Setting Up Update Pin
MrJJKoolJ1-Jun-04 8:16
MrJJKoolJ1-Jun-04 8:16 
GeneralRe: Setting Up Update Pin
flow55551-Jun-04 11:22
flow55551-Jun-04 11:22 
QuestionHow to hide a form if the user close it? Pin
Ariadne1-Jun-04 6:07
Ariadne1-Jun-04 6:07 
AnswerRe: How to hide a form if the user close it? Pin
LongRange.Shooter1-Jun-04 6:37
LongRange.Shooter1-Jun-04 6:37 
You want to setup an EventHandler that will handle the ClosingEvent in the form. To be capable of closing the form eventually, you need to manage the state of shutdown. (Was it invoked by me or was it invoked via the X button being clicked?) A [Close] button would handle the actual shutdown and the Closing event handles what to do based on the current state of the form.
So you have something like this:
using System.ComponentModel;
...
this.Closing += new CancelEventHandler(this.ClosingEventHandler);
bool ShutDownInvoked = false;
...
public void CloseRequested_Click(object sender, EventArgs e)
{
    ShutDownInvoked = true;
    this.Close();
}
public void ClosingEventHandler(object sender, CancelEventArgs e)
{
    if (ShutDownInvoked)
       return;
    this.Hide();
    e.Cancel = true;
}


______________________________
The Tao gave birth to machine language.
Machine language gave birth to the assembler.
The assembler gave birth to ten thousand languages.
Each language has its purpose, however humble.
Each language expresses the Yin and Yang of software.
Each language has its place within the Tao.
Beauty exists because we give a name to C#.
Bad exists because we give a name to COBOL.
AnswerRe: How to hide a form if the user close it? Pin
Heath Stewart1-Jun-04 6:45
protectorHeath Stewart1-Jun-04 6:45 
GeneralShorten the String Pin
Adam °Wimsatt1-Jun-04 5:22
Adam °Wimsatt1-Jun-04 5:22 
GeneralRe: Shorten the String Pin
LongRange.Shooter1-Jun-04 8:13
LongRange.Shooter1-Jun-04 8:13 
QuestionHow do compile a dll and load it to the assembly in runtime? Pin
Louis Riel1-Jun-04 5:12
Louis Riel1-Jun-04 5:12 
AnswerRe: How do compile a dll and load it to the assembly in runtime? Pin
Heath Stewart1-Jun-04 6:36
protectorHeath Stewart1-Jun-04 6:36 
GeneralRe: How do compile a dll and load it to the assembly in runtime? Pin
Louis Riel1-Jun-04 9:12
Louis Riel1-Jun-04 9:12 
GeneralRe: How do compile a dll and load it to the assembly in runtime? Pin
Heath Stewart1-Jun-04 9:18
protectorHeath Stewart1-Jun-04 9:18 
GeneralRe: How do compile a dll and load it to the assembly in runtime? Pin
Louis Riel1-Jun-04 9:49
Louis Riel1-Jun-04 9:49 
GeneralRe: The Error Pin
Peter Vertes1-Jun-04 4:15
Peter Vertes1-Jun-04 4:15 
QuestionHow do I get a full list of assemblies and their versions of the GAC?? Pin
IrishSonic1-Jun-04 3:16
IrishSonic1-Jun-04 3:16 
AnswerRe: How do I get a full list of assemblies and their versions of the GAC?? Pin
Dave Kreskowiak1-Jun-04 4:42
mveDave Kreskowiak1-Jun-04 4:42 
Generaltooltip problem Pin
gulucay1-Jun-04 3:13
gulucay1-Jun-04 3:13 
QuestionPlease advice best TreeList controls for .NET ? Pin
vgrigor1-Jun-04 3:09
vgrigor1-Jun-04 3:09 
AnswerRe: Please advice best TreeList controls for .NET ? Pin
Heath Stewart1-Jun-04 6:27
protectorHeath Stewart1-Jun-04 6:27 
GeneralRe: Please advice best TreeList controls for .NET ? Pin
vgrigor1-Jun-04 22:01
vgrigor1-Jun-04 22:01 
GeneralRe: Please advice best TreeList controls for .NET ? Pin
Heath Stewart2-Jun-04 2:43
protectorHeath Stewart2-Jun-04 2:43 
GeneralRe: Please advice best TreeList controls for .NET ? Pin
vgrigor3-Jun-04 4:54
vgrigor3-Jun-04 4: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.