This article describes how to add a button to a LightSwitch Application (Visual C#) in Visual Studio 2012.
Here we will see how to add a button to a LightSwitch Application (Visual C#) in Visual Studio 2012.
The following is the procedure for adding a button to a LightSwitch Application in Visual Studio 2012.
Step 1Open the Solution Explorer.Step 2In the Solution Explorer, right-click on the Screens and choose "Add Screen".Step 3The Add New Screen dialog box appears. Select the "New Data Screen" from the Screen Template, under screen information, choose "None" under screen data and provide some name to the Screen and click the "OK" button.Step 4The Screen Designer appears.Step 5Click on "Add". A drop down list will appear and select the "New" button.The Add Button dialog box appears on the screen.Now the screen designer contains a button.Step 6Press F5 to run the application.Step 7You can also set the image for that specific button.For setting up the image go to the property window and click on the "Choose Image" link.A select image dialog box appears on the screen. Click on the "Import" button to add an image.Step 8Press F5 to run the application.
Printing in C# Made Easy