From the course: Visual Basic Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Work with a Windows UI project

Work with a Windows UI project - Visual Basic Tutorial

From the course: Visual Basic Essential Training

Start my 1-month free trial

Work with a Windows UI project

- [Instructor] There are times when having a Windows desktop app for code demonstration is useful. During the course, I'll use desktop projects for some demos, so let's look at how to build a simple interface and where to where to write the code for a WPF application. First, be sure and change the startup project to this simple WPF application, and then, double-click on MainWindow.xaml. That loads a designer into Visual Studio. This is a two-part designer. At the top is a visual designer and on the bottom is an XML editor. The designer lets me preview what the UI will look like before I run the application and I can also use it to create my user interface to my specifications. To do that, I'll need to open the Toolbox and pin it to the side. If you don't see the Toolbox, you can always add it by going to View. First step is to add a button. Find it on the Toolbox and then, drag it over to the designer surface and…

Contents