Click here to Skip to main content
15,915,513 members
Home / Discussions / C#
   

C#

 
Questiondispaly non english from DB Pin
TAREQ F ABUZUHRI20-Dec-05 9:18
TAREQ F ABUZUHRI20-Dec-05 9:18 
AnswerRe: dispaly non english from DB Pin
Santosh Satalkar20-Dec-05 17:55
Santosh Satalkar20-Dec-05 17:55 
GeneralRe: dispaly non english from DB Pin
TAREQ F ABUZUHRI21-Dec-05 2:55
TAREQ F ABUZUHRI21-Dec-05 2:55 
QuestionWrite WebForm Variables to Word Pin
Dstayton20-Dec-05 7:47
Dstayton20-Dec-05 7:47 
QuestionTo Create Circular Directx Surface. Pin
ShettyRitheesh20-Dec-05 7:47
ShettyRitheesh20-Dec-05 7:47 
QuestionC# Question... Pin
QzRz20-Dec-05 5:56
QzRz20-Dec-05 5:56 
AnswerRe: C# Question... Pin
Guffa20-Dec-05 6:31
Guffa20-Dec-05 6:31 
AnswerNotification of form closing Pin
Sean Michael Murphy20-Dec-05 7:33
Sean Michael Murphy20-Dec-05 7:33 
QzRz wrote:
Can someone help me how to get notifed when Form2 close?


Just wire up one of the existing Form events. Wire up Closed if you only care that the form has gone away, or Closing if you want to prevent the close from occuring for some reason:
C#
Form2 fm2 = new Form2();
fm2.Closing += new CancelEventHandler(fm2_Closing);
fm2.Show();
 
private void fm2_Closing(object sender, CancelEventArgs e) {
   // Do something now that the form is closed.
   // Set e.Cancel = true to stop it from closing.
}

Share and enjoy.

Sean
GeneralRe: Notification of form closing Pin
QzRz20-Dec-05 7:38
QzRz20-Dec-05 7:38 
GeneralRe: Notification of form closing Pin
Sean Michael Murphy20-Dec-05 7:55
Sean Michael Murphy20-Dec-05 7:55 
GeneralRe: Notification of form closing Pin
QzRz23-Dec-05 8:47
QzRz23-Dec-05 8:47 
QuestionCasting an object to a double[] Pin
smurfy3420-Dec-05 5:54
smurfy3420-Dec-05 5:54 
AnswerRe: Casting an object to a double[] Pin
Judah Gabriel Himango20-Dec-05 7:19
sponsorJudah Gabriel Himango20-Dec-05 7:19 
GeneralRe: Casting an object to a double[] Pin
smurfy3420-Dec-05 7:45
smurfy3420-Dec-05 7:45 
GeneralRe: Casting an object to a double[] Pin
Judah Gabriel Himango20-Dec-05 8:20
sponsorJudah Gabriel Himango20-Dec-05 8:20 
GeneralRe: Casting an object to a double[] Pin
smurfy3420-Dec-05 16:43
smurfy3420-Dec-05 16:43 
QuestionCrystal Report - FIlter results Pin
chinky singh20-Dec-05 5:36
chinky singh20-Dec-05 5:36 
QuestionRetrieve Monitor Serial Number with wmi Pin
WetRivrRat20-Dec-05 5:33
WetRivrRat20-Dec-05 5:33 
QuestionMain menu docking Pin
VPMahank20-Dec-05 4:50
VPMahank20-Dec-05 4:50 
AnswerRe: Main menu docking Pin
Dan Neely20-Dec-05 5:48
Dan Neely20-Dec-05 5:48 
AnswerRe: Main menu docking Pin
Judah Gabriel Himango20-Dec-05 7:20
sponsorJudah Gabriel Himango20-Dec-05 7:20 
GeneralRe: Main menu docking Pin
VPMahank20-Dec-05 7:49
VPMahank20-Dec-05 7:49 
GeneralRe: Main menu docking Pin
Judah Gabriel Himango20-Dec-05 8:18
sponsorJudah Gabriel Himango20-Dec-05 8:18 
QuestionCut forms and buttons! Urgent please!! Pin
eyej20-Dec-05 4:27
eyej20-Dec-05 4:27 
AnswerRe: Cut forms and buttons! Urgent please!! Pin
albCode20-Dec-05 4:36
albCode20-Dec-05 4:36 

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.