One Close statement closes both forms??

Steve Abaffy <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.winforms
Message-ID <002f01c79d6f$99f88440$cde98cc0$@biz>
Hello,

        Basically here is the pseudo code.

MainForm
        PressMenuItem4
                Form2 F2 = new Form2();
                F2.ShowDialog

Form2
        OpenExelFile
        ProcessRecords
        If (Duprecordfound){
                ShowDupRecordForm SDRF = new
ShowDupRecordForm(PassExeclRecords);
                SDRF.ShowDialog();
                X = SDRF.RecordNumber;
        }

ShowDupRecordForm
        ListOFDupRecords.Item.Add(LoadListwithDupRecords);

        ListSelectChangeIndex()
        {
                Recordnumber = ListofDupRecordsList.SelectedIndex;
                This.Close();
        }
The This.Close command closes the ShowDupRecordForm and Form2 shouldn't it
only close ShowDupRecordForm? And if not how does one do this?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.