Command line compile error, but compiles in studio.net

D

David Richards

Hi,



I wonder if anyone can help me. I am trying to learn to program in VB.Net
and am having a little difficulty compiling a program using the command
line. I am trying to create a small mdi application with a window menu but
it fails to compile displaying the following error:



G:\Personal\vb.net>vbc mdiapp.vb /r:system.dll,system.windows.forms.dll
/t:winexe



Microsoft (R) Visual Basic .NET Compiler version 7.10.3052.4

for Microsoft (R) .NET Framework version 1.1.4322.573

Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.



G:\Personal\vb.net\mdiapp.vb(63) : error BC30456: 'TitleHorizontal' is not a
mem

ber of 'System.Windows.Forms.MdiLayout'.



LayoutMdi(MdiLayout.TitleHorizontal)

~~~~~~~~~~~~~~~~~~~~~~~~~



G:\Personal\vb.net>



If I create the same app using visual stuio.net it compiles and runs
correctly. can anybody can tell me why TitleHorizontal is not available from
the command line?



Thanks in advance

Dave
 
?

=?Windows-1252?Q?Jos=E9_Manuel_Ag=FCero?=

Hello David,

If that code compiles in Visual Studio, make sure you have Option Explicit On: TitleHorizontal is mispelled, it should be TileHorizontal.

Regards.


"David Richards" <[email protected]> escribió en el mensaje | Hi,
|
|
|
| I wonder if anyone can help me. I am trying to learn to program in VB.Net
| and am having a little difficulty compiling a program using the command
| line. I am trying to create a small mdi application with a window menu but
| it fails to compile displaying the following error:
|
|
|
| G:\Personal\vb.net>vbc mdiapp.vb /r:system.dll,system.windows.forms.dll
| /t:winexe
|
|
|
| Microsoft (R) Visual Basic .NET Compiler version 7.10.3052.4
|
| for Microsoft (R) .NET Framework version 1.1.4322.573
|
| Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.
|
|
|
| G:\Personal\vb.net\mdiapp.vb(63) : error BC30456: 'TitleHorizontal' is not a
| mem
|
| ber of 'System.Windows.Forms.MdiLayout'.
|
|
|
| LayoutMdi(MdiLayout.TitleHorizontal)
|
| ~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
| G:\Personal\vb.net>
|
|
|
| If I create the same app using visual stuio.net it compiles and runs
| correctly. can anybody can tell me why TitleHorizontal is not available from
| the command line?
|
|
|
| Thanks in advance
|
| Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top