Article View: borland.public.cppbuilder.nativeapi
Article #5129Re: Comunication beetween 2 forms
From: Remy Lebeau (TeamB)
Date: Wed, 12 Oct 2005 02:28
Date: Wed, 12 Oct 2005 02:28
20 lines
1509 bytes
1509 bytes
"alfred" <alfredo@freemail.it> wrote in message news:434c5288$1@newsgroups.borland.com... > TForm2 *Child = new TForm2(Application); > Child->ParentWindow = Form1->Handle; That is generally not a good idea. If you want to display child windows inside the Main Form, then you should be using MDI instead. > when I try to load from the main form with (example): > Label1->Caption = Child->Label1->Caption; I get > "access violation at address xxxxx" and BCB6 stop in > the last line. Please show a more complete snippet that actually compiles. My guess would be that your Child pointer is invalid. Gambit
Technical Details
Message-ID:
<434c7632$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<434c5288$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,44c755519a14ea21 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <434c5288$1@newsgroups.borland.com> Subject: Re: Comunication beetween 2 forms Date: Tue, 11 Oct 2005 19:28:54 -0700 Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <434c7632$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1129084466 68.69.17.41 (11 Oct 2005 19:34:26 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail