In this chapter Setting Up a New Windows Project Designing the User Interface Coding Your Program's Actions Running Your Program From Here… You have probably read programming books that walk you step-by-step through the process of creating your first program. Typically, you create some form of the classic "Hello, World!" application. In this extremely simple example, the user is asked to initiate some action such as clicking a button or pressing a key, and the computer responds with a message such as "Hello, World!" A slightly more advanced variation asks for the user's name and responds with a customized greeting like "Hello, Lauren!" Although examples like this might be sufficient for demonstrating that you can indeed use a programming language to create a program, the resulting application isn't very useful. Our approach is to begin with a sample program that not only demonstrates the fundamentals of creating a Visual Basic .NET application, but also can be used in the real world. In this chapter, you'll create a Windows-based Loan Calculator program that calculates the periodic payment needed to repay a loan, based on various factors such as the loan term and interest rate. Your users will be able to input and modify values for these and other variable factors, perform the calculation, and view the results. In addition, they will be able to view an amortization schedule for the entire life of the loan. Note The application you'll be creating was adapted from a shareware program I wrote named "My Amortizer." With proper planning and design, Visual Basic .NET can be used to create commercial-quality software applications. Before you begin, take a look at what the final product will look like. Figure 2.1 shows the Loan Calculator's main screen as it's being used. Figure 2.1. The Loan Calculator program offers the user a variety of options. |