This message contains graphics. If you do not see the graphics: Graphic Version.
 
www.textcontrolASP.com launched, Encapsulate TX .NET in DLL

See TX Text Control ActiveX Server running live on WWW server

We have set up a new web site that is primarily intended to showcase TX Text Control ActiveX Server. Currently, it offers seven demonstration applications in which TX Text Control ActiveX is called to perform various word processing tasks and to create dynamic PDF files server-side. Take a look at:

http://www.textcontrolASP.com

If you would like to test TX Text Control ActiveX Sever on your own Microsoft Internet Information Server, please apply for a beta version. The beta version is the full retail version, not an evaluation version. To request the beta, please fill out the following form, print and fax it back to us. We will then dispatch the beta version to you immediately.

http://www.textcontrolASP.com/demos/advanced/license/index.asp?intro=1

How to encapsulate TX Text Control .NET for Windows Forms in a DLL

When working on large software projects, you often wish to encapsulate parts of your project. For example, if your application requires a text editor, it would be a good idea to encapsulate all word processing functionality into a separate DLL. Doing so can assist you in building modular, structured software.

In this newsletter, we are going to show you how to include TX Text Control in a .NET DLL.

Visual Basic 6.0 has an automatic technique which transfers the license from the EXE to the UserControl or DLL. Visual Studio .NET does not have this functionality and thus the license of the used .NET component should be included in the EXE itself. For this reason, we include the following information in the "licenses.licx" file of your main application project.

For version 10.1 SP1 you have to insert:

TXTextControl.TextControl, TXTextControl, Version=10.1.200.500, Culture=neutral,_ PublicKeyToken=6b83fe9a75cfb638

Using this information, TX Text Control's license will be included in the EXE of the main application.

When a TX Text Control based class is created from a DLL, the license information from the EXE is passed to the DLL class. Consider again the above code snippet.

The secret in our sample is to create a very basic DLL project that uses TX Text Control on a form. This sample project has got one public function that creates a form with TX Text Control.

public class Class1 { public Class1() { // // TODO: Add constructor logic here // } public void ShowTXForm() { TXHostForm myForm = new TXHostForm(); myForm.Show(); } }

The main project uses the DLL to display a form containing TX Text Control when ShowTXForm() is called.

private void button1_Click(object sender, System.EventArgs e) { TXHOST.Class1 myDLLClass = new TXHOST.Class1(); myDLLClass.ShowTXForm(); }

Best regards

The Newsletter Team

Text Control GmbH respects your online time and privacy. We only send this newsletter to TX Text Control customers and people who have signed up to receive it. However, if you would prefer not to receive future issues of the newsletter, you may unsubscribe at any time. If you received this newsletter forwarded from a colleague or friend, you may wish to subscribe directly.

Sent to: N/A.

Imprint | Unsubscribe | Subscribe

© 2019 Text Control GmbH. All Rights Reserved.