"Hello World!" help :)

Talk about "WhatEVER !"..
Post Reply
Message
Author
spt60
Junior Member
Junior Member
Posts: 250
Joined: Thu Feb 08, 2007 8:59 am
Location: OH

"Hello World!" help :)

#1 Post by spt60 » Sun Aug 17, 2008 6:16 pm

How do I write a simple app. (a .exe file) that when I run it will open a window on desktop with window titles "Hello Window" and the content of the window is "Hello World!" using Visual Studio 2k8 with C# ?

Thanks!

wswartzendruber
Junior Member
Junior Member
Posts: 377
Joined: Fri Apr 15, 2005 10:33 am
Location: Idaho, USA

Re: "Hello World!" help :)

#2 Post by wswartzendruber » Sun Aug 17, 2008 8:40 pm

[quote="spt60"]How do I write a simple app. (a .exe file) that when I run it will open a window on desktop with window titles "Hello Window" and the content of the window is "Hello World!" using Visual Studio 2k8 with C# ?

1. Start Visual Studio.
2. Create a new Windows Application.
3. Draw a label in the new, blank form.
4. Double-click the form outside the label.
5. Put in 'label1.Text = "Hello, world";'
6. Punch F5.
Model: Lenovo ThinkPad T400
CPU: Intel Core 2 Duo P8400 (2.26 GHz, 1067 MHz FSB, 3 MB L2 Cache)
RAM: 4 GB PC-8500 (1067 MHz, Dual-channel)
HDD: 500 GB, 54000 RPM
Audio: Conexant CX20561 (192 kHz, 24-bit)
Video: Intel GMA 4500MHD
Wireless: Intel 5300

spt60
Junior Member
Junior Member
Posts: 250
Joined: Thu Feb 08, 2007 8:59 am
Location: OH

#3 Post by spt60 » Sun Aug 17, 2008 9:15 pm

By saying Windows Application, you meant Windows Form Application right? I went to the Workspace Debug folder and found a .exe file there and it ran fine. So everytime we compile/debug it will automatically create a .exe file right? :D

wswartzendruber
Junior Member
Junior Member
Posts: 377
Joined: Fri Apr 15, 2005 10:33 am
Location: Idaho, USA

#4 Post by wswartzendruber » Sun Aug 17, 2008 10:26 pm

spt60 wrote:By saying Windows Application, you meant Windows Form Application right? I went to the Workspace Debug folder and found a .exe file there and it ran fine. So everytime we compile/debug it will automatically create a .exe file right? :D
Yup. It will be in either a "Debug" or "Release" folder.
Model: Lenovo ThinkPad T400
CPU: Intel Core 2 Duo P8400 (2.26 GHz, 1067 MHz FSB, 3 MB L2 Cache)
RAM: 4 GB PC-8500 (1067 MHz, Dual-channel)
HDD: 500 GB, 54000 RPM
Audio: Conexant CX20561 (192 kHz, 24-bit)
Video: Intel GMA 4500MHD
Wireless: Intel 5300

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Off-Topic Stuff”

Who is online

Users browsing this forum: No registered users and 0 guests