Click here to Skip to main content
15,890,336 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# XmlDocument Encoding [modified] Pin
Samb198517-Jun-09 0:00
Samb198517-Jun-09 0:00 
AnswerRe: C# XmlDocument Encoding Pin
PIEBALDconsult17-Jun-09 9:03
mvePIEBALDconsult17-Jun-09 9:03 
GeneralRe: C# XmlDocument Encoding Pin
Samb198517-Jun-09 9:19
Samb198517-Jun-09 9:19 
GeneralRe: C# XmlDocument Encoding Pin
PIEBALDconsult17-Jun-09 12:00
mvePIEBALDconsult17-Jun-09 12:00 
QuestionAbstract Class, constructors Pin
dwadasi16-Jun-09 21:41
dwadasi16-Jun-09 21:41 
AnswerRe: Abstract Class, constructors [modified] Pin
DaveyM6916-Jun-09 21:58
professionalDaveyM6916-Jun-09 21:58 
AnswerRe: Abstract Class, constructors Pin
PIEBALDconsult17-Jun-09 8:59
mvePIEBALDconsult17-Jun-09 8:59 
Questionproblem with registering flormclosing event with button click event Pin
prasadbuddhika16-Jun-09 21:31
prasadbuddhika16-Jun-09 21:31 
i'm try to register a formclosing event with a button click event but i get the error saying "Cannot assign to 'button1_Click' because it is a 'method group'"

this is the code i'm using

private void Form1_FormClosing(object sender,EventArgs e)
        {
            DialogResult ds = MessageBox.Show("exit?", "exit", MessageBoxButtons.YesNo);

            FormClosingEventArgs ee = (FormClosingEventArgs)e;

            if (ds == DialogResult.Yes)
            {
                ee.Cancel = false;
            }
            else
            {
                ee.Cancel = true;
            }
        }


 private void Form1_Load(object sender, EventArgs e)
        {
            button1_Click+= Form1_FormClosing;
        }



what might be the problem here ? Smile | :)
AnswerRe: problem with registering flormclosing event with button click event Pin
musefan16-Jun-09 21:59
musefan16-Jun-09 21:59 
AnswerRe: problem with registering flormclosing event with button click event Pin
DaveyM6916-Jun-09 22:04
professionalDaveyM6916-Jun-09 22:04 
GeneralRe: problem with registering flormclosing event with button click event Pin
prasadbuddhika16-Jun-09 22:29
prasadbuddhika16-Jun-09 22:29 
GeneralRe: problem with registering flormclosing event with button click event Pin
prasadbuddhika16-Jun-09 23:58
prasadbuddhika16-Jun-09 23:58 
AnswerRe: problem with registering flormclosing event with button click event [modified] Pin
Alan N17-Jun-09 0:10
Alan N17-Jun-09 0:10 
GeneralRe: problem with registering flormclosing event with button click event Pin
DaveyM6917-Jun-09 0:10
professionalDaveyM6917-Jun-09 0:10 
GeneralRe: problem with registering flormclosing event with button click event Pin
OriginalGriff17-Jun-09 0:12
mveOriginalGriff17-Jun-09 0:12 
QuestionHelp me iam getting stack overflow exeception , while my solution build successfully , but it threw the stack overflow error Pin
radhikasharma16-Jun-09 21:08
radhikasharma16-Jun-09 21:08 
AnswerRe: Help me iam getting stack overflow exeception , while my solution build successfully , but it threw the stack overflow error Pin
Thomas Krojer16-Jun-09 21:32
Thomas Krojer16-Jun-09 21:32 
GeneralRe: Help me iam getting stack overflow exeception , while my solution build successfully , but it threw the stack overflow error Pin
Mirko198016-Jun-09 21:43
Mirko198016-Jun-09 21:43 
GeneralRe: Help me iam getting stack overflow exeception , while my solution build successfully , but it threw the stack overflow error Pin
radhikasharma16-Jun-09 22:08
radhikasharma16-Jun-09 22:08 
GeneralRe: Help me iam getting stack overflow exeception , while my solution build successfully , but it threw the stack overflow error Pin
radhikasharma16-Jun-09 22:06
radhikasharma16-Jun-09 22:06 
GeneralRe: Help me iam getting stack overflow exeception , while my solution build successfully , but it threw the stack overflow error Pin
Thomas Krojer16-Jun-09 22:13
Thomas Krojer16-Jun-09 22:13 
GeneralRe: Help me iam getting stack overflow exeception , while my solution build successfully , but it threw the stack overflow error Pin
radhikasharma17-Jun-09 0:21
radhikasharma17-Jun-09 0:21 
GeneralRe: Help me iam getting stack overflow exeception , while my solution build successfully , but it threw the stack overflow error Pin
DaveyM6917-Jun-09 0:37
professionalDaveyM6917-Jun-09 0:37 
GeneralRe: Help me iam getting stack overflow exeception , while my solution build successfully , but it threw the stack overflow error Pin
OriginalGriff16-Jun-09 22:39
mveOriginalGriff16-Jun-09 22:39 
AnswerRe: Help me iam getting stack overflow exeception , while my solution build successfully , but it threw the stack overflow error Pin
DaveyM6916-Jun-09 22:50
professionalDaveyM6916-Jun-09 22:50 

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.