Developing a TextBox in LightSwitch Using Visual Studio 2012

In this article I am going to describe how to develop a TextBox in LightSwitch using Visual Studio 2012.

Procedure for developing a TextBox in LightSwitch 2012

  • Open the Visual Studio 2012.
  • Go to "File" => "New" => "Project..."
  • In "New Project" => "Installed" => "Template"
  • In "Template" => "LightSwitch"
  • Select "LightSwitch Application (Visual C#)".
  • Enter the Name and choose the location.
  • Click "OK".

lite.jpg 

Step 1

Open the Solution Explorer.

sol ex.jpg

Step 2

In the Solution Explorer, right-click on the data source and choose "Add Table".

add table.jpg

Step 3

The table appears.

Table.jpg

Step 4

Go to the property window of the Description row, uncheck the "display by default" option and also clear out (make empty) the Maximum length TextBox.

Default prop win.jpg

change prop win.jpg

Step 5

In the Solution Explorer, right-click on the Screens and choose "Add Screen".

add src.jpg

Step 6

Select the List and Details Screen from the Screen Template. under Screen Information we provide the Screen Name and Screen Data and then click OK.

list src.jpg

Step 7

The Screen Designer appears.

app des.jpg

Step 8

Go to the property window of the Screen Designer and set the size.

size.jpg

Step 9

In the Screen Designer, right-click on Name. From the drop down list select the Delete Option.

delete.jpg

Step 10

Drag the Description option from the Screen and place it under the Command Bar option.

drag description.jpg

Step 11

Press F5 to run the application.

output.jpg


Similar Articles