Now add all the buttons and a text box for your calculator. To move to a new row for buttons, just click to the right of the existing row to put the cursor in the right place and press "Enter" to move to the next row. Put the correct characters in the Text property of the keys and rename them to match the names in the CalcPad code. For example, change the ID of the first button to "key1" and the Text to "1". Put "0" in the Text property of the Textbox control and resize everything to look good. Notice that Visual Studio gives you a "Make Same Size" item under the "Format" menu.
One thing that you might notice is missing right away is that these components don't have a Tag property. That's going to force some coding changes later.
Now, lets see just how well our VB.NET code will actually work in ASP.NET. Copy the entire code block starting with "Private Accum As Double" from the CalcPad page (see above) and paste it directly into the ASP.NET. Paste the block just below the "Web Form Designer Generated Code" region in ASP.NET. When that's done, look for the green wavy underscores that flag errors. If you've done it right, there shouldn't be any! (If you have forgotten something, the most likely thing that you will see is that you have forgotten to rename one of the components to the same name used in the VB.NET CalcPad code.)


