In this recipe, we will be creating a classic Windows application to use the library. We will be creating a UI using the Visual Studio designer, adding code to use the library, and displaying the list of IP addresses picked from the library itself.
Make sure you have the latest version of Visual Studio 2017 and have completed the previous recipe. We will be using the solution we built in the previous recipe.
- Open Visual Studio 2017.
- Now open the solution from the previous recipe. Click
File
|Open
|Open Project/Solution
or press Ctrl + Shift + O and select theChapter7.Networkings
solution. - Press Ctrl + Shift + B for a quick build to check everything is fine.
- Now, click on the
Chapter7.Networking
solution label. ClickFile
|Add
|New Project
. - In the
Add New Project
template dialog box, expand theVisual C#
node in the left pane. - Select
Windows Classic Desktop
and selectWindows FormsApp (.NET Framework)
in...