Article View: borland.public.csharpbuilder.language.csharp
Article #478Newbe question
From: Lars O. Soderstrom
Date: Fri, 21 Jan 2005 18:12
Date: Fri, 21 Jan 2005 18:12
20 lines
1446 bytes
1446 bytes
How do you refer to the main form?
This is the way I would like to do it:
static void Main()
{
Application.Run(new frmMain());
}
private void button2_Click(object sender, System.EventArgs e)
{
frmMain.Text = "Some text";
}
But that doesn't work. I know that this.Text works, but not from other
forms.
Could anybody be so kind to give me an example on how to do it?
Thanks,
Lars
Technical Details
Message-ID:
<41f145f9@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!fr.ip.ndsoftware.net!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,96ed0e9698357d80,start X-Google-Attributes: gid1efe35,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Lars O. Soderstrom" <elless.prodata@telia.com> From: "Lars O. Soderstrom" <elless.prodata@telia.com> Newsgroups: borland.public.csharpbuilder.language.csharp Subject: Newbe question Date: Fri, 21 Jan 2005 19:12:11 +0100 Lines: 22 Organization: Elless Prodata AB X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 68.56.49.230 Message-ID: <41f145f9@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1106331129 68.56.49.230 (21 Jan 2005 10:12:09 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!fr.ip.ndsoftware.net!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail