Article View: borland.public.csharpbuilder.winforms.general
Article #29Re: is it possible to get values in mainform?
From: Marc Rohloff TeamB
Date: Tue, 03 Aug 2004 11:48
Date: Tue, 03 Aug 2004 11:48
18 lines
1476 bytes
1476 bytes
On 2 Aug 2004 23:41:55 -0700, gara wrote: > I need to read values from mainform when i am in second form > (form2). > how can i do it , could you help me ! After the main form has created your second form it should either pass the values the second form needs or a reference to the second form. There are a couple of ways of doing this: - Add them to the seoncd form's constructor (my recommendation) - Create properties on the second form which can be set - Create a function on the second form to take the parameters -- Marc Rohloff [TeamB] marc rohloff at myrealbox dot com
Technical Details
Message-ID:
<1dpd36stdaryr$.dlg@marcrohloff.40tude.net>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<410f33b3$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1efeb1,1c50af366a0a5c27 X-Google-Attributes: gid1efeb1,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Marc Rohloff [TeamB]" <"on request"> Subject: Re: is it possible to get values in mainform? Newsgroups: borland.public.csharpbuilder.winforms.general User-Agent: 40tude_Dialog/2.0.12.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit References: <410f33b3$1@newsgroups.borland.com> Date: Tue, 3 Aug 2004 07:48:19 -0400 Message-ID: <1dpd36stdaryr$.dlg@marcrohloff.40tude.net> NNTP-Posting-Host: 4.131.37.67 X-Trace: newsgroups.borland.com 1091533686 4.131.37.67 (3 Aug 2004 04:48:06 -0700) Lines: 18 X-Authenticated-User: mrohloff Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail