عرض مشاركة واحدة
  #2755  
قديم 02-12-2010, 11:34 PM
samaty samaty غير متواجد حالياً
عضو جديد
 
تاريخ التسجيل: Jul 2008
المشاركات: 47
معدل تقييم المستوى: 0
samaty is on a distinguished road
افتراضي

اقتباس:
المشاركة الأصلية كتبت بواسطة shasah مشاهدة المشاركة
شكرا لحضرتك لكنى اختلف معك الاغلاق method وليس حدث مثل form1.close
form1_close
انى ممكن اقوله رساله عند اغلاقها مثلا لكن هو مش اغلاقها نفسها منظره ردك

The Closing event is obsolete in the .NET Framework version 2.0; use the FormClosing event instead.


The Closing event occurs as the form is being closed. When a form is closed, all resources created within the object are released and the form is disposed. If you cancel this event, the form remains opened. To cancel the closure of a form, set the Cancel property of the CancelEventArgs passed to your event handler to true.

When a form is displayed as a modal dialog box, clicking the Close button (the button with an X at the upper-right corner of the form) causes the form to be hidden and the DialogResult property to be set to DialogResult.Cancel. You can override the value assigned to the DialogResult property when the user clicks the Close button by setting the DialogResult property in an event handler for the Closing event of the formا.
السابق هو جزء من V.B.NET 2005 HELP

وهو يشير الى ان FORM.CLOSE هو حدث EVENT وليس سيلة METHOD
ارجو الافادة