Article View: borland.public.csharpbuilder.language.csharp
Article #406Selecting the main form in the application (D2005)
From: Terentius Neo
Date: Wed, 28 Sep 2005 16:38
Date: Wed, 28 Sep 2005 16:38
12 lines
1288 bytes
1288 bytes
How do you designate a form as the main form in the application? If I
move the Main-procedure (below) to a new form I get an error message:
[STAThread]
static void Main()
{
Application.Run(new MDIMainForm());
}
[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?)
Technical Details
Message-ID:
<433ac676@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,4e5d784f96d1bad5,start X-Google-Attributes: gid1efe35,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Wed, 28 Sep 2005 19:38:19 +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: Selecting the main form in the application (D2005) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 80.221.179.198 Message-ID: <433ac676@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1127925366 80.221.179.198 (28 Sep 2005 09:36:06 -0700) Lines: 12 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail