Command line compile error, but compiles in studio.net

  • Thread starter Thread starter David Richards
  • Start date Start date
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
 
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
 
Back
Top