🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.winforms.general
Article #28

is it possible to get values in mainform?

#28
From: gara
Date: Tue, 03 Aug 2004 06:41
17 lines
1410 bytes
Hi could you help me ?

I need to read values from mainform when i am in second form
(form2). i can read values from main form but i have to create 
mainform second time. if i create mainform second time then i 
can not get the values which where entered after creation. So i 
need to get reference to existing mainform. Could you show me i
 can i get the reference to existing mainform. 

ex : 
1-mainForm is open application is running 
2-entering some text to textbox1 
3-Button click opening second form(form2).
4-On second form(form2) Button click to get value in textbox1 on mainform.

how can i do it , could you help me !
Technical Details
Message-ID: <410f33b3$1@newsgroups.borland.com>
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

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efeb1,1c50af366a0a5c27,start
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: is it possible to get values in mainform?
Newsgroups: borland.public.csharpbuilder.winforms.general
X-User-Info: 81.214.1.255     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <410f33b3$1@newsgroups.borland.com>
Date: 2 Aug 2004 23:41:55 -0700
X-Trace: newsgroups.borland.com 1091515315 207.105.83.66 (2 Aug 2004 23:41:55 -0700)
Lines: 17
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