Visual C# 2005 Lesson 1 - Getting Started

Visual C# 2005 Lesson 1 - Getting Started


We now have LiveLessons video products on Java, C# (2008, 2010 and 2012), Android app development, iOS 6 app development, JavaScript, C++ and Visual Basic. You can get the videos from several sources.
Closed Caption:

hello welcome to the 16 lesson video
series that'll help you get started with
Visual C sharp 2005 Express Edition
these lessons in the accompanying
document with supplemental readings
are designed to take someone who was a
complete novice who's never written any
code before or maybe
just read a little coat a while back and
help them be productive in writing
real-world applications within a few
hours now this is crabs you
you're in the right spot if you're
already an experienced developer or an
experienced dotnet developer
quite honestly they're probably better
ways for you to spend your time
if you're looking for videos and
advanced concepts or a new features in
Visual C sharp 2005
Visual Studio 2005 or any the latest
development products from Microsoft
please navigate to WOW
to learn Visual Studio dotnet for
instructional video tutorials
aimed at all skill levels so if you're
just getting started the
aim at the series is to help you become
productive quickly
with that is our goal. please keep in
mind that there are many concepts that
all
either gloss over or just ignore
completely so you may want to use this
resource is a good introduction
however the videos are not intended to
replace reference books or online help
the comes with Visual C sharp 2005
Express Edition
so recommended the ended the series of
lessons also dedicate yourself to other
books
online resources or even my website WWII
in Visual Studio dotnet
for more structural videos to help you
come to more complete knowledge a Visual
C sharp
the C sharp language and application
development
developing software
especially with the language like C
sharp in a software application like
Visual C sharp 2005 Express Edition is a
lot of fun
sure can be a little intimidating at
first but we just take a little bit at a
time
just like everything else in life you'll
start seeing results
now in my mind there's nothing more
gratifying than imagining some software
application that I want to build
and see it begin to come together
working through the problems in the
hurdles
and then finally seen the end result in
letting others use it
I hope after this series of lessons you
get infected by the programming bug
and begin to realize how exciting this
can really be
okay it's time to get started
the lessons are range in the following
way: lessons 133 focuses on the workflow
a building applications
getting comfortable with how to navigate
around the Visual C sharp 2005 interface
lessons four through seven will focus on
the seashore programming language itself
as well as an introduction to the dotnet
framework lessons
8 through 11 will focus on working with
data displaying data from data sources
like a database or an XML file
and handling the heirs that come up in
your application while it's running
and then lessons 12 through 16 will
demonstrate
the creation of an entire application
from beginning to end
involving design development testing
and the deploying your application the
application that will build in last five
lessons will be in RSS reader
now if you're not familiar with the term
RSS that stands for Really Simple
Syndication
as well the latest trends on the
Internet allows web sites
especially those web sites that update
their content frequently like blogs for
example
to publish a short description and new
articles
as they're posted on the website so
users can subscribe to an RSS feed
which is basically a URL that points to
a file on the web
that contains the title of the article a
description of the article a hyperlink
so people can breed
the actual article now to subscribe to a
feed
the user's gonna need a program that
knows how to interpret an RSSP the
special format that's use
than it needs to periodically checked
each news feed
that the user subscribe to so that it
can determine if any of his favor web
sites have new content available
so many popular web sites have these
little orange buttons with the word RSS
are sometimes
XML thus let you know that an RSS feed
is available for that website
now in our application we're gonna allow
the user to subscribe to RSS feeds which
were gonna call channels
their application can be used to monitor
those RSSP two will have some other
are functionality as well like being
able to split
up our feeds into various folders
so we'll be able to add at it and delete
folders
and within a given folder will be able
to add
added and delete channels and then for a
given channel will
update it in order to find all the news
items for that
channel and then we'll be able to click
through as you can see
over here on the left hand side i'm
looking at the titles for the news items
and then on the right hand side a canoe
you the full title to description
the data was posted and then I have
little browser window where I can
look and see all before about that
webpage that its point to an agreement
click this law expands button here
which will pop open a web browser that
allows me to view the page
fullscreen if I like to you
but we have a lot of information the
cover before we get to this point
but I wanted dangle a carrot out front
view so that you stay engaged in a
series of lessons
just about everything we learned the
next ten lessons will build up to
creating that application so make sure
you understand
each concept before moving on
let's get started by talking about the
basic steps to creating applications
and will begin by creating the most
simple application we possibly can
all we want to do is create a Windows
application it's also known as a Windows
Forms application
and on a wall at a single button to the
form that is created by the fall for us
and when the user clicks are little
button we display a popup message that
says hello world
hello world is kinda the universal first
program they always bill regardless the
programming language
or the programming tool because it helps
you see the entire workflow
creating a program without having
introduced too much complexity
so early into the learning process
so let's begin by going to file
new project and the New Project dialog
we're gonna select Windows application
as the template that will
will begin with they're also gonna
change the name for Windows application
one
to hello world and then we'll select the
OK button
and it takes a moment or two but with C
sharp is doing at this point
is creating a template for a Windows
application
so by default after Moamer to
but we'll see is a form that will pop up
with nothing on it
at this point we have a complete Windows
application let me do this just to prove
that point
I'm going to use the mouse cursor go to
this little button
is at the start button this allows us to
run our application was called to both
mode
it allows us to see with the application
will do on
if we were to stop right now and
compile it and give it to a friend let's
go ahead and and hit start
in the program's compiling right now
initial see
what you have is a complete Windows
application admittedly doesn't really do
anything at this point
but you have your form and on the right
hand side you have your typical Windows
control box
and up to minimize to make it full
screen
or to bring it back to its original size
and also to close the application
and have a control box here on the left
hand side that allows you
the typical are Windows commands to
minimizing
maximize a close and so on so stop this
application will disclose
the X button
now the next thing we wanted to do was
push button on our form
and to do that we're going to hover
mouse cursor over the tool box and when
we do notice that it jettisons out from
the left hand side and allows us to
scroll through all the controls that are
available to us now control is typically
a visual element
that allows the user to either interact
with your application
or read information from your
application and
each show the controls are a little bit
different they have different
propensities indifferent
reasons why you'd want to use them a
button for example as we drag it in drop
it
of a toolbox will allow your user to
indicate the application that some
action should be taken
so in this case whenever the user clicks
the button they would expect something
to happen in
in our case a message box that displays
a little world so get let's go to our
start
button runner application and I want you
to notice that we have a
fully working application again
with the button and we can click the
button as many times as we want to make
me wanna hold the button down does that
it'll be great out when I do that
but nothing really happens at this point
because we have been written any code
that reacts to that button click
so that's really our next step
okay so this can be a little bit tricky
the first time you see it so pay close
attention wanna do
is double click this button and when I
do
another file will be open within our
main area
a notice that we have a series of tabs
at the top
is a good time to start talking about
that we can see
the the design view which gives us a
visual representation with the forms
going to look like
but we can also see what's called a code
view in this allows us to write code
that in this case reacts to things that
happen on our form
now when we double click that button it
created was called an event handler
we're gonna talk about event handlers
in less than three so I don't want to
get too far ahead of ourselves here
but notice what that we have a blinking
cursor on the creek line between these
two little curly braces
so you wanna make sure that you type the
following line of code
message box top show use in open print
the sea
quote hello world another quote
close print the sea and then a
semi-colon at the end
now again will take the time to discuss
all the things that you see here
let's not get bogged down in that just
now let's just take it at its face value
in tight this information in
and then what I'm going to do is select
the start button more time
and when I do the sound with a click the
button an orchid
a little box that pops up a message box
that says hello world
and click this many times I want to each
time I do
notice that the code that I wrote will
be executed again
Scott closer application
okay so we successfully created our
first Windows application a whole world
application
the next thing that we wanted you
especially wanna keep this application
for future reference or two worked on it
again in the future
all need to do is save our project those
two ways to do this the first ways to go
to File
save all or we can just use the toolbar
shortcut
per se bol when we do notice that
there's little dialog that pops up that
asks for the name the project
which we already named hello world
whenever we created the application
that ass is the location that we want to
save our project to
now by the father's gun attempt to put
it in your My Documents directory
under a subdirectory called Visual
Studio 2005 slash projects
and will create a new folder called
hello world
so let's go ahead and use the default
there's one good reason why you'd want
to do this as opposed to finding a
different location on your hard drive
and that reason is because a lot of the
backup software that's available today
for Windows XP
looks by default in your My Documents
directory and tries to save it so
if that's the case then your
automatically get the benefit of backing
up all
your source code if you were to follow
this
ball convention a great store
application is now saved
we're gonna come back to their pods to
mobile let's talk about how our projects
organized
first ball there's a lot of code that
can be added to
software application and all the code
that gets compiled into a single program
is called a project so project is an
organizational unit that keeps track
all of the files they will all be
compiled together into
one application usually a dot EXE
program there's also another
organizational unit called the solution
you can see the hierarchy between a
project to and a solution overtures the
right hand side
in the Solution Explorer this shows is
first of all the name of our project a
little world
and then all the files in and other
important information
that makes up our hello world project
over here
below it such as our form one for
example
and then there's other files like a
program dot CS that we didn't have to
modify
that were created automatically for us
whenever we use the Windows application
template
whatever we were creating a new
application
now in our particular project we only
had one for me was very simple but
we could have doesn't the forms
potentially within our application
and so they'd all be listed here within
the Solution Explorer
underneath the main organizational unit
called hello world that's our project
also solution can contain multiple
projects now the reason white want to do
that may not be very clear right now
but once you get into more advanced
software development the
consular the solution might come in
handy sources table that discussion for
right now and focus just on
the main organizational unit being our
projects
and again just put another way the only
purpose a project is to keep track of
all the files
in all the code that belongs to a single
application
now let's take a brief moment and open
up are Windows Explorer
on the list are not happen haven't
pinned here but you may have to navigate
of programs accessories
when is explore in order to view what's
on my hard right now what was placed on
my hard drive
so by default my comes up to my
documents I'm going to find my Visual
Studio 2005 folder
and then I'm going to find a project
subfolder and notice that I have a whole
world folder underneath that
now we have a solution file here we can
put things oversee can see a little bit
more easily
keep in mind that that is the top
organizational unit
so a solution can contain projects
so will happen is there'll be one
project folder
for each project in a solution since we
only have one project
there's only one Supporter call hello
world has been insane
so this is the folder for the project
itself notice first ball that we have
a Visual C sharp project file
so this will keep track of all the files
that belonged to our project
then we also have a few files with the
state's similar names form1
form one-dot CS form one-dot designer CS
the purpose these will become more
obvious in the next lesson soldiers
table
that discussion to for right now but
then we can also see our little program
dot CS and so on
now there's a special folder where are
compiled applications live
once we run the application whatever run
the application there's a
in term bill called a boat build that
allows us to
run the application within also see the
results abroad in the application
by putting break points and things of
that nature which will talk about in
just a moment
but if we wanted a runner application
now we have two places we can run it
from
we can go back to our Visual C sharp
interface and then select the start
button
or we can just go down here
and drill into our bin folder which the
special
folder that was created automatically
for us and then go to the to be
the did to both folder you know sirs a
couple files there but one in particular
that has the typeof application is
are whole world application so we can
double click it
and we can run it just like we were if
we were to run it
a few months ago in Visual C sharp
so we have a complete application and if
somebody had the dotnet framework we
could actually take this
application now and put it on their hard
drive it would run
but there's actually a better way to do
this and that's not the preferred way so
let's just
not do that at the moment as want to let
you know that
a real application has been built it's a
dip but version of the application but I
still
able to run just says if we were to run
it to install it on somebody else's
computer
so this gives us a pretty good overview
what happens on a hard drive whenever we
savor application
also the organizational units a projects
we have
projects which control which contain
files of source code
and then we also have a solution which
contains multiple projects and we've
seen how that structured
on a hard drive someone close Windows
Explorer right now on
bon
so the Solution Explorer has a very
important purpose within
Visual C sharp because it allows us to
manage the files that are within our
project
now let's talk for a moment about some
other things that we can do with the
Solution Explorer
first off if we were to accidentally or
purposely close
any the tabs within our main area bikes
left in a little close button here on
the right hand side
tab with get back to that
former the code view in one of two ways
we can either
select the icon that represents the form
and then select the code View button
or selected an click the View designed
button
or we can just double-click
the icon and the default view the
designer view will open up
additionally in add or remove files from
our project
here as well can right click and select
add
new item which allows us to
select any other possible files that we
can insert
or we might just want to insert a new
with this form
in which case we will select this year
we'll talk about this more
a little bit later whenever we're
developing more intense applications
Scott ignore this for now by clicking
somewhere the white area
to get rid of that context menu
also at some point will probably want to
shut down our computer so we'll need to
know how to close our application
and then reopen it again so want to make
sure that our project is saved
by clicking the Save All button then we
can select
close solution
this will unload the project from Visual
C sharp
or we could just shutdown Visual C sharp
it'll prompt us we have any unsaved
changes
to begin let's go to start Visual C
sharp 2005 Express
and open up a project we can either
select from an existing project
are hello world project is listed here
or we can go to File open project
and then we needed navigate to the
appropriate directory
my computer let's go to our desktop here
are rather our documents
so bob's documents Visual Studio 2005
projects
hello world and then I can select the
solution file
or the project file which ever one is
available to me first
can I select Open and
now I have my project again see it pops
open
up any other forms that I had opened the
last time that I save the application
and we're good start working on our
application again so that's how to shut
down
reopen our applications
finally we're gonna be running a lot of
code so what I wanna do very early on
is introduce the concept of debugging
and when I use the term to bugging what
I really mean is that we want to pause
the execution
of the application so that we can watch
each line of code execute
and look through the code and see if
there's something that catches our eye
now this is
very useful whatever our programs get
much larger where
we need to observe what's going on
behind the scenes because sometimes
our applications may not give us enough
feedback or something is going on it's
hard to pinpoint the exact problem
so will want to do in that case is set a
breakpoint
which will stop the execution over
application while we're in debug mode
your
running our application with this little
start button here
and allow us to step through each line
of code at her own pace
and watch how the application executes
again this is going to be very
impressive
with just one line of code within our
application
but if we were to have more lines a code
like we will on the upcoming lessons
this is a very very important a feature
I love
a development environment to allow us
this rich functionality to watch the
code execute
so to create a break point where I wanna
do is get back to my could be you
so let's select our form one and then
select
you code and what I want to do is put a
breakpoint
on the line of code that we wrote the
message box that show hello world
so true create a break point there's
actually number ways the easiest way
it's just go to the left hand side that
line of code in the slow gray area
we want click it and when we do notice
that a little red button appears
and then our text is highlighted in red
this tells us that the application will
stop executing it this line of code and
I'll wait for us to take over
so now let's run our application by
clicking the Start button
our application is executing just fine
but whenever I click
button1 notice that that red line of
code now turns to yellow
this tells me that that's the next line
occurred that will be executed
now to walk through this line of code
what I can do is simply use one of these
buttons that have been added to
our development environment because
we're in debug mode Sona click the
either the stepped in to buy nor f11 but
I could just as easily select the step
over
or step out and we'll talk about those
much later in the series of lessons for
our purposes right now let's just click
the step into button
and when I do notice that executed that
line of code
to display a message box don't click
okay
go back to are could be %um notes that
the next line of code is this
and OVR little met that hurdle curly
brace
so we can just either select to step
into one more time
or arms gonna select to continue
executing the application
and now we're running the run the app
again
in full speed to skittle tip in mind
we're going to use that throughout the
coming lessons
to watch our code executes a specially
in Lesson
a number four in five
so few thousand a lot of information for
the first lesson
I hope you enjoyed it and if there's
something that didn't make sense
please watch it again orders continue on
in
some the questions you might have in
your mind might be answered in upcoming
lessons
so this would also be a good time to
read through the first two or three
lessons
in the accompanying document that are
provided
if you enjoyed this video please visit
www.initialunderwriting.org net
to download and watch over 400 videos
just like this one
a bit all skill levels on many different
topics related to see sharp Visual Basic
dotnet
ASP dotnet in more thank you

Video Length: 24:57
Uploaded By: Suzanne Hunter
View Count: 189

Related Software Products
LEARN VISUAL C# 2005
LEARN VISUAL C# 2005

Published By:
KIDware

Description:
LEARN VISUAL C# 2005 is a eleven week course covering object-oriented programming concepts, the Visual C# 2005 integrated development environment, building and distributing Windows applications, exception handling, sequential file access, graphics, multimedia, advanced topics such as web access, printing, and HTML help system authoring. The course also introduces database applications (using ADO .NET) and migrating applications to the web (using ASP .NET). BRBR LEARN VISUAL C# 2005 is ...


Related Videos
Visual C# 2005 Express  Video Tutorial - 2 - Movie Collectio
Visual C# 2005 Express Video Tutorial - 2 - Movie Collectio

http://idealprogrammer.com - Brief 9-minute tutorial demonstrates using Amazon Web-Enabled Movie Collection Starter Kit. You can view over 700 video tutorials on programming at http://idealprogrammer.com hr / bClosed Caption:/b this is the way to hurry with search see sure part 2 movie collection starter kit would lose some rethinks in this tutorial will use the this time template this included with the seashore to get the ...
Video Length: 09:02
Uploaded By: Wade Harvey
View Count: 46,746

Visual C# 2005 Express  Video Tutorial - Part 1 - Installing
Visual C# 2005 Express Video Tutorial - Part 1 - Installing

http://idealprogrammer.com - Brief 4-minute tutorial demonstrates installing Visual C# Express 2005. You can view over 700 video tutorials on programming at http://idealprogrammer.com hr / bClosed Caption:/b 2k today the go look at how to install visual see sharper 2000 I've Express Edition my name's way to Irvine you can view over 700 programming training videos there ideal programmer don't come first thing we're ...
Video Length: 04:50
Uploaded By: Wade Harvey
View Count: 27,937

Hello World in C# using Visual Studio 2005 tutorial
Hello World in C# using Visual Studio 2005 tutorial

This video teaches you to create a message box using Visual Studio 2005 and C# programming language.
Video Length: 03:15
Uploaded By: Vasi Andrei Varga
View Count: 7,755

Learn C# 1 : install Visual Studio 2005
Learn C# 1 : install Visual Studio 2005

طريقة تركيب الفيجوال ستوديو 2005 على الجهاز لكل العرب من المحيط غلى الخليج من مهندس محمد زكى الى كل مبرمجى العرب الاعزاء
Video Length: 07:13
Uploaded By: saadzaky1977
View Count: 6,845

advanced c# Delegates in visual c# 2005
advanced c# Delegates in visual c# 2005

advanced c# Delegates in visual c# 2005 hr / bClosed Caption:/b hi you can you lead your former money explaining been worth the cost many games in drugs shop 2005 careful with that I created it's Tom Bell into something I have been a simple class from than a good want and in this class I haven't clothing popped and string function delegate with this signature doing s okay I Cooper now ...
Video Length: 07:25
Uploaded By: Noam Rachmany
View Count: 5,358

Copyright © 2025, Ivertech. All rights reserved.