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

C#

 
GeneralRe: How to Replicate 2 Databases using C#? Pin
oykica7-Jun-05 6:27
oykica7-Jun-05 6:27 
GeneralMDI Behaviour Pin
Maqsood Ahmed5-Jun-05 22:03
Maqsood Ahmed5-Jun-05 22:03 
GeneralRe: MDI Behaviour Pin
Ashok Dhamija5-Jun-05 22:24
Ashok Dhamija5-Jun-05 22:24 
GeneralRe: MDI Behaviour Pin
Maqsood Ahmed5-Jun-05 22:31
Maqsood Ahmed5-Jun-05 22:31 
GeneralRe: MDI Behaviour Pin
Ashok Dhamija5-Jun-05 23:18
Ashok Dhamija5-Jun-05 23:18 
GeneralRe: MDI Behaviour Pin
Rizwan Bashir6-Jun-05 3:40
Rizwan Bashir6-Jun-05 3:40 
GeneralStupid WinForms Pin
Christian Graus5-Jun-05 21:32
protectorChristian Graus5-Jun-05 21:32 
GeneralRe: Stupid WinForms Pin
Ashok Dhamija5-Jun-05 22:13
Ashok Dhamija5-Jun-05 22:13 
Please check whether you have put the this.Close() method call in the first form (i.e., parent form itself)instead of putting it in the click handler of the second form. If this is so, please put that code in the click handler of the button in the second form.

In fact, I tried to test it using a chain of three forms, Form1 calling Form2, and Form2 calling Form3. I have also put this.Close() in both Form2 and Form3 click handlers for the respective buttons. But I get the correct and expected behaviour and the parent form is not closed. Apparently, your problem is because of this.Close() being called from within a method in the parent form itself.
GeneralRe: Stupid WinForms Pin
Christian Graus6-Jun-05 12:20
protectorChristian Graus6-Jun-05 12:20 
GeneralRe: Stupid WinForms Pin
Ashok Dhamija6-Jun-05 18:54
Ashok Dhamija6-Jun-05 18:54 
GeneralRe: Stupid WinForms Pin
Christian Graus6-Jun-05 18:58
protectorChristian Graus6-Jun-05 18:58 
GeneralRe: Stupid WinForms Pin
Maqsood Ahmed5-Jun-05 22:16
Maqsood Ahmed5-Jun-05 22:16 
GeneralRe: Stupid WinForms Pin
Christian Graus6-Jun-05 12:20
protectorChristian Graus6-Jun-05 12:20 
GeneralRe: Stupid WinForms Pin
S. Senthil Kumar6-Jun-05 0:42
S. Senthil Kumar6-Jun-05 0:42 
GeneralRe: Stupid WinForms Pin
Christian Graus6-Jun-05 12:21
protectorChristian Graus6-Jun-05 12:21 
Generalsql stored preocedure Pin
Mohammad Daba'an5-Jun-05 20:08
Mohammad Daba'an5-Jun-05 20:08 
GeneralRe: sql stored preocedure Pin
Colin Angus Mackay5-Jun-05 20:51
Colin Angus Mackay5-Jun-05 20:51 
GeneralRe: sql stored preocedure Pin
Mohammad Daba'an5-Jun-05 22:51
Mohammad Daba'an5-Jun-05 22:51 
GeneralRe: sql stored preocedure Pin
Colin Angus Mackay6-Jun-05 0:28
Colin Angus Mackay6-Jun-05 0:28 
GeneralRe: sql stored preocedure Pin
Mohammad Daba'an6-Jun-05 0:44
Mohammad Daba'an6-Jun-05 0:44 
GeneralFriend Assembly Help needed... Pin
chettu5-Jun-05 19:15
chettu5-Jun-05 19:15 
GeneralRe: Friend Assembly Help needed... Pin
oykica6-Jun-05 6:57
oykica6-Jun-05 6:57 
GeneralRe: Friend Assembly Help needed... Pin
pavel.drtil26-May-10 1:18
pavel.drtil26-May-10 1:18 
GeneralMy own little lexer/parser (trouble even getting started) Pin
Insolence5-Jun-05 18:50
Insolence5-Jun-05 18:50 
QuestionHow to save Images in Mysql DataBase Through C# Pin
monica2k5-Jun-05 18:37
monica2k5-Jun-05 18:37 

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.