Visual Studio and C#

Hans-Petter Halvorsen

Visual Studio

Microsoft Visual Studio is an integrated development environment (IDE) from Microsoft. It can be used to develop console and graphical user interface applications along with Windows Forms applications, web sites, web applications, and web services in both native code together with managed code for all platforms supported by Microsoft Windows.

Latest version of Visual Studio is Visual Studio 2019.

Visual Studio Web Site


Download Software:

Download Visual Studio Community Edition (free)

Download Visual Studio Enterprise Edition from Microsoft Azure Dev Tools for Teaching (free for staff and students at the university)


Working on a Mac?

Download Visual Studio for Mac

or need a Cross-platform Editor?

Download Visual Studio Code - Visual Studio Code is a source code editor developed by Microsoft for Windows, Linux and macOS.


Getting Started with C#

C# is a modern Object-oriented programming language. C# is the main programming language in Visual Studio.

Video: Simulation and Control with C# and WinForms: The video below goes through the creation of a basic Visual Studio/C# Application:

PowerPoint (PDF)



Introduction to Visual Studio and C# (PDF)


See also .NET and C# In-Browser Tutorial


SQL Server Communication with C#

Topics: SQL Server, ADO.NET, C# WinForms, Structured Query Language (SQL), Saving Data to SQL Server and Retrieving Data from SQL Server.

SQL Server with C# Windows Forms App (YouTube) + PowerPoint (PDF)


Data Acquisition with C#

What is Data Acquisition? Data Acquisition (DAQ) is the process of collection data from different sensors into a computer.

A DAQ System consists of 4 parts: Physical input/output signals, sensors DAQ device/hardware Driver software Your software application (Application software).

Data Acquisition in Visual Studio and C# using USB-6008 as an example:

PowerPoint used in the Video

This video is also available from my official YouTube Channel:


Here is my main web page for DAQ Applications in C#:



Additional Resources:

More Information about USB-6008


Introduction to Data Acqquisition in Visual Studio and C# (PDF)

Code Examples:

C# DAQ Examples


Datalogging and Monitoring with C#

Introduction to Datalogging and Monitoring:



Cloud-based to Datalogging, Monitoring and Analysis:



Web Programming with ASP.NET

ASP.NET is a Web Framework for creating Web Pages. ASP.NET is built on top of the .NET Framework

Introduction to ASP NET Web Programming:



ASP.NET Application with Database Communication Example


ASP.NET Example with Database Communication  (Step-by Step Tutorial)

ASP.NET Example with Database Communication - Source Code


See my ASP.NET web site for more information and resources


Azure DevOps

Introduction to Azure DevOps (formerly known as Visual Studio Team Services):



Unit Testing with Visual Studio

Introduction to Unit Testing with Visual Studio:


PowerPoint used in the Video


OPC Communication in C#

OPC Communication with C# using Measurement Studio:


PowerPoint used in the Video


Additional Tutorials and Examples

Database Communication in Visual Studio/C# using Web Services + Database Example

Creating 3-tier Architecture in Visual Studio + Database Example


Programming Resources

Below you will find more interesting Programming resources


Learn LabVIEW Programming


Learn MATLAB Programming

Visual Studio Team Services

Visual Studio Team Services (VSTS) Resources

Database Systems

Learn Database Systems and Structured Query Language (SQL)


Programming Resources

Technology Videos

Lots of Videos within different Applications and Areas