Click here to Skip to main content
15,923,689 members
Home / Discussions / C#
   

C#

 
GeneralFastest way to upload large files Pin
bobbiek6-Apr-04 4:20
bobbiek6-Apr-04 4:20 
GeneralRe: Fastest way to upload large files Pin
Daniel Turini6-Apr-04 4:56
Daniel Turini6-Apr-04 4:56 
GeneralRe: Fastest way to upload large files Pin
bobbiek6-Apr-04 5:12
bobbiek6-Apr-04 5:12 
GeneralRe: Fastest way to upload large files Pin
Heath Stewart6-Apr-04 5:20
protectorHeath Stewart6-Apr-04 5:20 
GeneralRe: Fastest way to upload large files Pin
bobbiek6-Apr-04 5:39
bobbiek6-Apr-04 5:39 
GeneralRe: Fastest way to upload large files Pin
Heath Stewart6-Apr-04 5:49
protectorHeath Stewart6-Apr-04 5:49 
GeneralRe: Fastest way to upload large files Pin
bobbiek6-Apr-04 6:16
bobbiek6-Apr-04 6:16 
GeneralRe: Fastest way to upload large files Pin
Heath Stewart6-Apr-04 6:23
protectorHeath Stewart6-Apr-04 6:23 
GeneralRe: Fastest way to upload large files Pin
bobbiek6-Apr-04 6:49
bobbiek6-Apr-04 6:49 
GeneralRe: Fastest way to upload large files Pin
Heath Stewart6-Apr-04 7:04
protectorHeath Stewart6-Apr-04 7:04 
GeneralRe: Fastest way to upload large files Pin
John Rayner6-Apr-04 13:14
John Rayner6-Apr-04 13:14 
GeneralScan and Compare Pin
Eolus6-Apr-04 4:17
Eolus6-Apr-04 4:17 
GeneralRe: Scan and Compare Pin
Heath Stewart6-Apr-04 5:15
protectorHeath Stewart6-Apr-04 5:15 
GeneralRe: Scan and Compare Pin
Eolus6-Apr-04 21:04
Eolus6-Apr-04 21:04 
GeneralRe: Scan and Compare Pin
Bill Dean7-Apr-04 2:37
Bill Dean7-Apr-04 2:37 
GeneralRe: Scan and Compare Pin
Heath Stewart7-Apr-04 3:12
protectorHeath Stewart7-Apr-04 3:12 
GeneralRe: Scan and Compare Pin
Eolus7-Apr-04 3:32
Eolus7-Apr-04 3:32 
GeneralRe: Scan and Compare Pin
Heath Stewart7-Apr-04 3:37
protectorHeath Stewart7-Apr-04 3:37 
GeneralRe: Scan and Compare Pin
Bill Dean7-Apr-04 7:01
Bill Dean7-Apr-04 7:01 
GeneralTextBox Paste Pin
Simon Wren6-Apr-04 3:00
professionalSimon Wren6-Apr-04 3:00 
GeneralRe: TextBox Paste Pin
Heath Stewart6-Apr-04 3:34
protectorHeath Stewart6-Apr-04 3:34 
GeneralRe: TextBox Paste Pin
Simon Wren6-Apr-04 3:37
professionalSimon Wren6-Apr-04 3:37 
QuestionHow I may safe close my application? Pin
novitzky6-Apr-04 2:59
novitzky6-Apr-04 2:59 
AnswerRe: How I may safe close my application? Pin
Simon Wren6-Apr-04 3:06
professionalSimon Wren6-Apr-04 3:06 
Hi,

If you override the forms "Closing" event then have some code like below this should help you out.

private void Form1_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{
if (MessageBox.Show("Do you wish to close?",
"AppName",
MessageBoxButtons.YesNo) == DialogResult.No)
e.Cancel = true;
}


By changing e.Cancel to true the event will not complete and your form will not close.

Hope this helps

Simon Wren
simon.wren@nesltd.co.uk
Senior Software Architect
National Energy Services Ltd
Visit Us: www.nesltd.co.uk or: www.nher.co.uk
GeneralRe: How I may safe close my application? Pin
Heath Stewart6-Apr-04 3:40
protectorHeath Stewart6-Apr-04 3:40 

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.