🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.pl.comp.lang.csharp
Article #460

Re: Problem w wieloma formami

#460
From: Adam S.
Date: Mon, 02 Feb 2004 22:35
23 lines
1425 bytes
Jest tak:

FormGl wywoluje Form1, kt�ry wywoluje Form2.

Na formatce Form2 jest button, kt�ry j� zamyka.
W Properties'ach buttona mo�na ustawi� jego DialogResult na np. OK

pod kodem, kt�ry wywoluje Form2:

if (Form2.DialogResult == DialogResult.OK)
   Close();

a w zdarzeniu Closing Form1:

if (Form2.DialogResult == DialogResult.OK)
   Close();
 else
   MessageBox ...... co� tam

Co my�lisz o tym rozwi�zaniu.

pozdrawiam
Adam S.
Technical Details
Message-ID: <bvmjdm$aas$1@news.onet.pl>
Path: mbox-mo1.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mail
References: <ab29e2104c73cd8866e9eabe994bacd3@total.eclipse>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mail
From: "Adam S." <stoj...@poczta.onet.pl>
Newsgroups: alt.pl.comp.lang.csharp
Subject: Re: Problem w wieloma formami
Date: Mon, 2 Feb 2004 23:35:51 +0100
Organization: news.onet.pl
Lines: 25
Sender: stojan_a@poczta.onet.pl@pc166.oswiecim.sdi.tpnet.pl
Message-ID: <bvmjdm$aas$1@news.onet.pl>
References: <ab29e2104c73cd8866e9eabe994bacd3@total.eclipse>
NNTP-Posting-Host: pc166.oswiecim.sdi.tpnet.pl
X-Trace: news.onet.pl 1075761398 10588 217.99.130.166 (2 Feb 2004 22:36:38 GMT)
X-Complaints-To: ab...@onet.pl
NNTP-Posting-Date: 2 Feb 2004 22:36:38 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit