473,320 Members | 1,900 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,320 software developers and data experts.

how to run this program from VS studio 2005

Hi all,

I just start to learn C#.
Can I run this program from VS.net instead of from DOS.

Thanks.

Betty

using System;

/// <summary>
/// A Simple Welcome Program: Welcome.cs
/// </summary>
public class WelcomeCSS
{
static void Main()
{
Console.WriteLine("Welcome to the C# Station Tutorial!");
}
}
--
Betty
Jun 27 '08 #1
2 892
On Jun 7, 2:52 am, c676228 <be...@newsgroup.nospamwrote:
Hi all,

I just start to learn C#.
Can I run this program from VS.net instead of from DOS.

Thanks.

Betty

using System;

/// <summary>
/// A Simple Welcome Program: Welcome.cs
/// </summary>
public class WelcomeCSS
{
static void Main()
{
Console.WriteLine("Welcome to the C# Station Tutorial!");
}

}

--
Betty
Hi Betty

Change your project output type from consol application to windows
application

for this select your project and right click and select properties
from bottom of the menu

a project property window will appear ... under application tab you
will find output type dropdown

select consol to windows application

Best of luck

Munna
www.munna.shatkotha.com
www.munna.shatkotha.com/blog
www.shatkotha.com
Jun 27 '08 #2
Hi Betty,

As for the code snippet you provided, it is a typical C# console
application, which will run in a console window(DOS like black command
window). Are you going to develop a winform application which has form GUI
?

If so, you can have a look at the following general reference about windows
form application development:

#Getting Started with Windows Forms
http://msdn.microsoft.com/en-us/library/ms229601.aspx

#Creating a Simple C# GUI Application with Visual Studio
http://www.techotopia.com/index.php/...GUI_Applicatio
n_with_Visual_Studio

welcome to .NET world:)

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: =?Utf-8?B?YzY3NjIyOA==?= <be***@newsgroup.nospam>
Subject: how to run this program from VS studio 2005
Date: Fri, 6 Jun 2008 13:52:01 -0700
>
Hi all,

I just start to learn C#.
Can I run this program from VS.net instead of from DOS.

Thanks.

Betty

using System;

/// <summary>
/// A Simple Welcome Program: Welcome.cs
/// </summary>
public class WelcomeCSS
{
static void Main()
{
Console.WriteLine("Welcome to the C# Station Tutorial!");
}
}
--
Betty
Jun 27 '08 #3

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

Similar topics

7
by: Hardy &&& | last post by:
Please can any body tell me: How can I operate (or deliver) the " Visual C++.NET ", from its mother program " MS Visual Studio 2005"?? A beginner needs Help. Thank you all....
14
by: Ben Voigt | last post by:
Under certain circumstances I get: First-chance exception at 0x7c812a5b (kernel32.dll) in LTMGUI.exe: 0xC0020001: The string binding is invalid. First-chance exception at 0x7c812a5b (kernel32.dll)...
9
by: eclipsme | last post by:
Is it possible to take a VB program and run it from the Web? Any pointers/help would be very appreciated! Thanks, Harvey
10
by: Nicholas Zhou | last post by:
Sorry if this sounds stupid. I am a total newbie.... Can I compile C program in Visual Studio 2005 IDE? I wrote the simple "Hello World" program in it: ------------------------------------ ...
1
by: amir | last post by:
Hello all, I have a db file .mdf in my program. I wander if it saves it everytime values are inserted and if not how can it be done ? furthermore i want to know where can i see the .mdf file after...
4
by: rhivka | last post by:
I'm going to try to keep this question within the student posting guidelines. I've been working on a class file, and I'm not sure I've constructed it correctly. I'm getting several errors concerning...
7
by: Jwe | last post by:
Hi, I've written a program which has both a command line interface and Windows form interface, however it isn't quite working correctly. When run from command line with no arguments it should...
4
by: =?Utf-8?B?Q1IgU3VwcG9ydA==?= | last post by:
Hi experts, We are trying to migrate from Visual Studio 6 (C++ project) on Windows 2000 to Visual Studio 2005 SP1 on Windows Vista but found that the migrated program runs slower in both OS. A...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.