Article View: borland.public.csharpbuilder.language.csharp
Article #408Re: Selecting the main form in the application (D2005)
From: Terentius Neo
Date: Thu, 29 Sep 2005 19:37
Date: Thu, 29 Sep 2005 19:37
26 lines
1825 bytes
1825 bytes
David Clegg wrote:
> Terentius Neo wrote:
>
>
>>[C# Error] MDIMainForm.cs(237): The type or namespace name 'Run' does
>>not exist in the class or namespace 'COM.ISADGBase.Application' (are
>>you missing an assembly reference?)
>
>
> At a guess, the unit containing this code has a reference to a
> COM.ISADGBase namespace which has an Application class. The Application
> class you want is in the System.Windows.Forms namespace. Try this
> instead :-
>
> [STAThread]
> static void Main()
> {
> System.Windows.Forms.Application.Run(new MDIMainForm());
> }
>
Yep, that was it: there was no class called "Application", but the
namepace ended with "Application" and that was enough to make the
compiler confused. Thanks for the help! :-)
TN
Technical Details
Message-ID:
<433c4220@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<433ac676@newsgroups.borland.com> <xn0e7tce2123276002@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,4e5d784f96d1bad5 X-Google-Attributes: gid1efe35,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Thu, 29 Sep 2005 22:37:54 +0300 From: Terentius Neo <unknown@user.domain> User-Agent: Mozilla Thunderbird 1.0.5 (Windows/20050711) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.csharpbuilder.language.csharp Subject: Re: Selecting the main form in the application (D2005) References: <433ac676@newsgroups.borland.com> <xn0e7tce2123276002@newsgroups.borland.com> In-Reply-To: <xn0e7tce2123276002@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 80.221.65.111 Message-ID: <433c4220@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1128022560 80.221.65.111 (29 Sep 2005 12:36:00 -0700) Lines: 26 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail