Click here to Skip to main content
15,900,725 members
Home / Discussions / C#
   

C#

 
AnswerRe: Easy xml file save question Pin
lsugirljte17-Nov-06 4:19
lsugirljte17-Nov-06 4:19 
GeneralRe: Easy xml file save question Pin
Judah Gabriel Himango17-Nov-06 4:45
sponsorJudah Gabriel Himango17-Nov-06 4:45 
QuestionDataGridView Focus Pin
Drew McGhie16-Nov-06 9:28
Drew McGhie16-Nov-06 9:28 
QuestionProblem with Windows Service Pin
vic0216-Nov-06 9:27
vic0216-Nov-06 9:27 
AnswerRe: Problem with Windows Service Pin
Judah Gabriel Himango16-Nov-06 11:34
sponsorJudah Gabriel Himango16-Nov-06 11:34 
GeneralRe: Problem with Windows Service Pin
vic0217-Nov-06 3:14
vic0217-Nov-06 3:14 
GeneralRe: Problem with Windows Service Pin
Judah Gabriel Himango17-Nov-06 5:37
sponsorJudah Gabriel Himango17-Nov-06 5:37 
GeneralRe: Problem with Windows Service Pin
vic0217-Nov-06 6:56
vic0217-Nov-06 6:56 
GeneralRe: Problem with Windows Service Pin
Judah Gabriel Himango17-Nov-06 7:40
sponsorJudah Gabriel Himango17-Nov-06 7:40 
GeneralRe: Problem with Windows Service Pin
vic0217-Nov-06 10:06
vic0217-Nov-06 10:06 
Questionhow can i capture an image from webcam Pin
apoll16-Nov-06 9:27
apoll16-Nov-06 9:27 
AnswerRe: how can i capture an image from webcam Pin
Judah Gabriel Himango16-Nov-06 11:31
sponsorJudah Gabriel Himango16-Nov-06 11:31 
GeneralRe: how can i capture an image from webcam Pin
apoll16-Nov-06 13:01
apoll16-Nov-06 13:01 
AnswerRe: how can i capture an image from webcam Pin
tgrt16-Nov-06 16:21
tgrt16-Nov-06 16:21 
AnswerRe: how can i capture an image from webcam Pin
Ashish Derhgawen16-Nov-06 21:38
Ashish Derhgawen16-Nov-06 21:38 
AnswerRe: help me please ... Pin
Justin.Jones16-Nov-06 9:14
Justin.Jones16-Nov-06 9:14 
QuestionHow to handel the dialog Result Pin
Iridania16-Nov-06 8:55
Iridania16-Nov-06 8:55 
AnswerRe: How to handel the dialog Result Pin
Judah Gabriel Himango16-Nov-06 9:39
sponsorJudah Gabriel Himango16-Nov-06 9:39 
If you want your form to not close when the No button is clicked, add an event handler to the Closing event instead of the Closed event. Your code would look like this:

Tienda.FormClosinng += new FormClosingEventHandler(Tienda_FormClosed);

...

private void Tienda_FormClosing(object sender, FormClosingEventArgs)
{
   DialogResult result = MessageBox.Show("Seguro desea Cerrar esta ventana?", "Tienda", MessageBoxButtons.YesNo, MessageBoxIcon.Information);
   if(result == DialogResult.No)
   {
      e.Cancel = true; // this will prevent the form from closing.
   }
}


Tech, life, family, faith: Give me a visit.
I'm currently blogging about: God-as-Judge, God-as-Forgiver
The apostle Paul, modernly speaking: Epistles of Paul

Judah Himango


AnswerRe: How to handel the dialog Result Pin
Justin.Jones16-Nov-06 9:39
Justin.Jones16-Nov-06 9:39 
QuestionUse C++ to make database application Pin
jingguangdadao16-Nov-06 7:49
jingguangdadao16-Nov-06 7:49 
AnswerRe: Use C++ to make database application Pin
Judah Gabriel Himango16-Nov-06 8:27
sponsorJudah Gabriel Himango16-Nov-06 8:27 
QuestionTechnical Design Strategy and Architectural Design Strategy for Messenger Pin
Sakrand16-Nov-06 7:43
Sakrand16-Nov-06 7:43 
QuestionError in WebBrowser Pin
maylels16-Nov-06 6:54
maylels16-Nov-06 6:54 
AnswerRe: Error in WebBrowser Pin
Judah Gabriel Himango16-Nov-06 8:54
sponsorJudah Gabriel Himango16-Nov-06 8:54 
GeneralRe: Error in WebBrowser Pin
maylels16-Nov-06 12:27
maylels16-Nov-06 12:27 

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.