473,386 Members | 1,873 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Command line compile error, but compiles in studio.net

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


Nov 21 '05 #1
2 1777
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" <da**@tools.co.uk> escribió en el mensaje news:da*********@nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com...
| 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

Nov 21 '05 #2
Thanks for your advice and help. It works perfectly now.

Dave
--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com
Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: aladdin | last post by:
I use outside .jpg picture files in a Windows Form project. I try to compile use csc.exe at command line. I use resgen.exe to generate a resource file like: resgen.exe Form1.resx...
0
by: edwaldo | last post by:
Hi I have a project in c# that compiles OK in Visual Studio but won't compile from the command line (using csc.exe) The error I get is: ucEdit.ascx.cs - The type or namespace name...
5
by: Genboy | last post by:
My "VIS" Website, which is a C# site created in VS.NET, Framework 1.1, is no longer compiling for me via the command line. As I have done 600 times in the last year and a half, I can compile to...
1
by: George Faraj | last post by:
Hello I have Visual Studio .NET 2003 Professional and I wanted to create a GUI tool which generates code (this part is done already) and then compiles this code and runs it. I would imagine I can do...
1
by: Matt Creely | last post by:
I'm using the vbc.exe to compile a .dll automatically for me. I have all my framework references and imports setup correctly. And it will compile just fine, with a few lines of code commented...
3
by: Gary O | last post by:
I would like to compile a class I have built to a library. I use the following command line: vbc /reference:Microsoft.VisualBasic.dll /t:library...
4
by: billben74 | last post by:
Despite advances in devstudio .NET building large projects can still be difficult. Is there a way, perhaps using EnvDev class or some other class that would allow output of the "command line" that...
5
by: Ron L | last post by:
I have a VB solution which consists of a number of projects. When I put the executable out for QA, it would be nice to be able to run a script that goes into Source Safe and does a Get Latest and...
3
by: Tom Baxter | last post by:
I just set up VS 2008 B2 and did a simple command line compile from the VS command prompt. I received this warning: warning CS1668: Invalid search path 'C:\Program Files\Microsoft...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.