Article View: borland.public.csharpbuilder.language.csharp
Article #407Re: Selecting the main form in the application (D2005)
From: David Clegg
Date: Wed, 28 Sep 2005 20:21
Date: Wed, 28 Sep 2005 20:21
29 lines
1985 bytes
1985 bytes
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());
}
--
Cheers,
David Clegg
dclegg@gmail.com
Vote 1 http://cc.borland.com/codecentral/ccweb.exe/listing?id=21489 :-)
Now supports Google Groups searching with Dyna-extend(tm) technology!
QualityCentral. The best way to bug Borland about bugs.
http://qc.borland.com
"Note to self. Stop doing anything." - Homer Simpson
Technical Details
Message-ID:
<xn0e7tce2123276002@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!newsfeed.inode.at!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mailReferences:
<433ac676@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
From: "David Clegg" <dclegg@gmail.com>
Subject: Re: Selecting the main form in the application (D2005)
Newsgroups: borland.public.csharpbuilder.language.csharp
References: <433ac676@newsgroups.borland.com>
Organization: eBet Limited
User-Agent: XanaNews/1.17.6.4
X-Face: d0!4zUWIBj<CO5m0`=Vu"m.2)(~|1-4:I]5n5<OE<hv+kK)Z:n<h&MnW9t_{}>cw&gbV#f>mHS4h1mcw[cz:R#J,T;)w/($:2Vl5CQnFP(c\wmN0rSvn25.kmVpCmqb]gj7l9ZP+O4+a+P~L#]4s""Tx^zQ/N"#'/?lV?SHpdR\5(iNj.,I_YMfF=/_3.JWAs3
Message-ID: <xn0e7tce2123276002@newsgroups.borland.com>
X-Ref: newsgroups.borland.com ~XNS:00000DB3
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
NNTP-Posting-Host: 210.55.248.220
Date: 28 Sep 2005 13:21:49 -0700
X-Trace: newsgroups.borland.com 1127938909 210.55.248.220 (28 Sep 2005 13:21:49 -0700)
Lines: 29
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed.inode.at!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail