Article View: borland.public.csharpbuilder.winforms.general
Article #34Re: reading value from form
From: gara
Date: Tue, 03 Aug 2004 04:35
Date: Tue, 03 Aug 2004 04:35
20 lines
1582 bytes
1582 bytes
thanks ,
I added property but i still can not access from second Form2 to property in mainForm
ex : Application is running and i am clicking button login then
login Form(form2) appears. Now i need read connection string from oraConn which stays in FormMain. to be more exact i need to read components properties or values from MainForm when the
active form is Form2.
thanks for your answers
"Rob Windsor" <rwindsor@NO.MORE.SPAM.bigfoot.com> wrote:
>Add a property to MainForm.
>
>public string ConnectString
>{
> get {return oraConn.ConnectionString;}
>}
>
>
Technical Details
Message-ID:
<410f15fd$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.cambrium.nl!news.cambrium.nl!news.zanker.org!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<410e3788$1@newsgroups.borland.com> <410ecf40$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1efeb1,99fbaa3660387e83 X-Google-Attributes: gid1efeb1,public X-Google-Language: ENGLISH,ASCII-7-bit From: "gara" <mgarayev@gapinsaat.com> Sender: "gara" <mgarayev@gapinsaat.com> Reply-To: "gara" <mgarayev@gapinsaat.com> Subject: Re: reading value from form Newsgroups: borland.public.csharpbuilder.winforms.general X-User-Info: 81.214.1.255 References: <410e3788$1@newsgroups.borland.com> <410ecf40$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <410f15fd$1@newsgroups.borland.com> Date: 2 Aug 2004 21:35:09 -0700 X-Trace: newsgroups.borland.com 1091507709 207.105.83.66 (2 Aug 2004 21:35:09 -0700) Lines: 21 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.cambrium.nl!news.cambrium.nl!news.zanker.org!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail