Microsoft .NET

9 posts

Windows 8 Development – Installing Visual Studio

In the previous video on Windows 8 development, we demonstrated how to set up a Windows 8 Oracle VirtualBox VM, and in this video we will take that process to completion. Installing the Visual Studio environment and SDK is an easy, one-step process that will allow developers to get up and running very quickly. A new part of that process, however, is obtaining a Windows Store developer license. It is also fairly intuitive to obtain as it is integrated into Visual Studio itself, and is free. In this video, I will show you how to install Windows 8, and Visual Studio 2012 express including Blend, and the Windows 8 SDK.

Windows 8 Development – Getting Started

The next version of the Windows operating system, Windows 8, will be releasing near the end of October. It represents a more fundamental change in the OS UI than from Vista to Windows 7. In addition to that, there is an even more fundamental change from the traditional .NET application development process that has become familiar to most developers using Windows 7. Windows 8 application run on the Windows Runtime, or WinRT application architecture, which is essentially a COM API. Developers proficient in .NET, however, can rest assured that their skillset can be applied to developing on Windows 8.

ASP.NET – Integrating File Assets

In our last video, we looked at the Model directive in Razor, and how it improves over the Inherits directive. Now, another common scenario is in which an application is being worked on by more than one person, or possible more than one team. Integration can be sped up by having view pages being dropped into a shared location, and the main developers then taking those pages and integrating them with the pre-existing Visual Studio project. In this video, I will show you how to take pre-existing views, integrate them into your ASP.NET application, and verify the results.

.NET 2.0/C# Deploying A Windows Service, Command-Line Method

In a previous lesson, we looked at the creation of a simple Windows service. Now, we need to 'deploy' it to the machine that we want it to run on. This process can be done many ways, and some are better than others. One available method is via the command-line service control utility, sc.exe. This utility is quite handy in that it allows us to perform many operations on services, and will take care of registry key creation / deletion so we don't have to worry about manipulating registry keys. In this video, I will show you how to deploy a previously built service using the sc utility.

.NET 2.0/C# – Creating A Windows Service

Windows introduced the concept of a 'service' some time ago, building on the concepts of Linux cron jobs and Windows scheduled tasks. A service is essentially a background application that is always running, and contains a standard framework for handling application logic. Services are often used as a part of distributed applications. There are pre-existing templates for services in Visual Studio, but it still may be daunting for new programmers in terms of creating a Windows service for the first time. In this video, I will show you how to build a simple windows service using a pre-existing Visual Studio template.

.NET/C# – Using Statement For Handling Unmanaged Resources

C# is well known as a garbage collected language much like Java. What may not be known to new C# programmers is that garbage collection in C# is non-deterministic, meaning the exact time of garbage collection is unknown. C# is also known as a 'managed' language, meaning all resources are automatically garbage collected, leaving the programmer free of implementing dynamic resource management. These managed C# applications do, however, have to sometimes interact with unmanaged resources.

.NET 3.5/WPF Creating A Splash Screen

Most users are familiar with the concept of a ‘splash screen’, a graphic that displays while the program is still loading, and goes away when the loading is complete. It was previously quite complicated to add a splash screen to a .NET application, but luckily .NET 3.5 and above introduce […]

.NET 2.0/Winforms Multithreading with GUI Elements

Multi-threading is a fairly simple concept, but takes a lot of skill to implement well in practice. An issue that often comes up with multithreading (and in a lot of interviews) is the access to GUI elements. Not everyone may know that UI elements can only be changed on the main thread, and this can lead to some considerable frustration when attempting to debug a program that throws cross-thread exceptions. In this video, I will show you how to write a simple multi-threaded Winforms application, and the challenges that exist in integrating those threads with altering a Label control at runtime.