Click here to Skip to main content
15,895,538 members
Home / Discussions / C#
   

C#

 
GeneralRe: Time Validation Pin
Colin Angus Mackay5-Jul-04 1:22
Colin Angus Mackay5-Jul-04 1:22 
GeneralRe: Time Validation Pin
dabuskol5-Jul-04 1:56
dabuskol5-Jul-04 1:56 
GeneralRe: Time Validation Pin
Colin Angus Mackay5-Jul-04 2:15
Colin Angus Mackay5-Jul-04 2:15 
Questionhow can i take lively image from a webcam? Pin
turgaytr4-Jul-04 21:21
turgaytr4-Jul-04 21:21 
AnswerRe: how can i take lively image from a webcam? Pin
Ivan Lee (CN)4-Jul-04 22:47
Ivan Lee (CN)4-Jul-04 22:47 
GeneralRe: how can i take lively image from a webcam? Pin
leppie5-Jul-04 7:20
leppie5-Jul-04 7:20 
Generalcontrol box Pin
sreejith ss nair4-Jul-04 17:26
sreejith ss nair4-Jul-04 17:26 
GeneralRe: control box Pin
Nick Parker4-Jul-04 17:41
protectorNick Parker4-Jul-04 17:41 
sreejith ss nair wrote:
any idea

Yep, you need to override the OnClosing event and capture the DialogResult from your user. Based upon the users response, change the Cancel property of the CancelEventArgs and pass it to OnClosing of the base class. Here is a quick example:

protected override void OnClosing(CancelEventArgs e)
{
    DialogResult r;
    r = MessageBox.Show("Do you want to quit?", "Quiting",
        MessageBoxButtons.YesNo, MessageBoxIcon.Information);
    if(r == DialogResult.No)
        e.Cancel = true;
    base.OnClosing (e);
}


- Nick Parker
My Blog | My Articles

GeneralRe: control box Pin
sreejith ss nair4-Jul-04 18:25
sreejith ss nair4-Jul-04 18:25 
QuestionHow can I get the size of the string in pixel ?? Pin
MarkSender4-Jul-04 16:56
MarkSender4-Jul-04 16:56 
AnswerRe: How can I get the size of the string in pixel ?? Pin
Nick Parker4-Jul-04 17:24
protectorNick Parker4-Jul-04 17:24 
Generalclearing console screen Pin
insurgentpyro4-Jul-04 16:42
insurgentpyro4-Jul-04 16:42 
GeneralRe: clearing console screen Pin
Nick Parker4-Jul-04 17:28
protectorNick Parker4-Jul-04 17:28 
GeneralRe: clearing console screen Pin
insurgentpyro4-Jul-04 17:44
insurgentpyro4-Jul-04 17:44 
GeneralRe: clearing console screen Pin
Nick Parker4-Jul-04 18:05
protectorNick Parker4-Jul-04 18:05 
GeneralRe: clearing console screen Pin
insurgentpyro4-Jul-04 18:18
insurgentpyro4-Jul-04 18:18 
GeneralRe: clearing console screen Pin
Nick Parker4-Jul-04 18:25
protectorNick Parker4-Jul-04 18:25 
GeneralRe: clearing console screen Pin
insurgentpyro4-Jul-04 18:35
insurgentpyro4-Jul-04 18:35 
GeneralDrawImage - resize proportionately Pin
myNameIsRon4-Jul-04 16:10
myNameIsRon4-Jul-04 16:10 
GeneralRe: DrawImage - resize proportionately Pin
Nick Parker4-Jul-04 18:17
protectorNick Parker4-Jul-04 18:17 
QuestionHow can I find activeskin skins Pin
Ahmed Gaser4-Jul-04 14:00
Ahmed Gaser4-Jul-04 14:00 
AnswerRe: How can I find activeskin skins Pin
Heath Stewart5-Jul-04 5:45
protectorHeath Stewart5-Jul-04 5:45 
GeneralRe: How can I find activeskin skins Pin
Ahmed Gaser5-Jul-04 11:18
Ahmed Gaser5-Jul-04 11:18 
GeneralSpace in table name problem Pin
benglish724-Jul-04 13:56
benglish724-Jul-04 13:56 
GeneralRe: Space in table name problem Pin
Christian Graus4-Jul-04 14:08
protectorChristian Graus4-Jul-04 14:08 

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.