| Skype: | TextControlSupport | |
| Orders: | 877-462-4772 |
Creating the Solution |
|
The source code for all steps is contained in the following directories:
Assuming that you have already run the TX Text Control .NET installation program, start Visual Studio .NET and create a new Project. Choose a location that specifies where the project is created. Select either Visual Basic or C# as the language and ASP.NET Web Application as the template. Name the project BrowserWebSite and confirm with OK.
A web based TX Text Control .NET project consists of two parts: The Web Site project and the Windows Control Library container project that contains TX Text Control .NET. From the File menu, choose Add... / New Project... Select the Windows project type in your preferred language. Choose Windows Control Library (VS 2005) or Windows Forms Control Library (VS 2008) and name the project BrowserApplication. Add this project to your solution by confirming with OK.
The Solution Explorer should now look like this:
Select UserControl1.cs or UserControl1.vb from the Solution Explorer and rename it to BrowserAppControl.cs or BrowserAppControl.vb. Visual Studio asks you whether it should perform a rename of all references in the current project. Confirm this message box with Yes. Then use the Tools / Choose Toolbox Items... command to include the controls of the TX Text Control .NET class library in the new project. In the Customize Toolbox dialog box, select the .NET Framework Components tab and sort the list by namespace. Scroll down to the TXTextControl namespace and select the four controls BrowserTextControl, BrowserButtonBar, BrowserStatusBar and BrowserRulerBar. These are the four controls that can be used in browser-based applications. If the TXTextControl namespace is not automatically shown in the dialog box, click the Browse button, navigate to the directory into which TX Text Control has been installed and double-click on the file TXTextControl.dll.
After closing the dialog box, you will see four additional icons appear at the bottom of the toolbox, representing the controls of the TX Text Control class library.
|