PDA

View Full Version : .NET server and VS2005


JonathanS1
February 20, 2006, 10:28:41
Hi, hopefully someone can help with this.

I have just bought .NET server version of TXTextControl. I uninstalled the existing .NET copy, installed the server version, opened my web project in VS2005, created the licence file as per Bjorn's forum post made sure the ServerTextControl item was ticked in the Choose Toolbox Items dialog of VS2005, BUT...

The ServerTextControl item is greyed out in the WebParts section of the VS2005 toolbox and cannot be selected.

I have completely ininstalled and reinstalled the component and reset the toolbox but this makes no difference. The ServerTextControl item only appears in the Toolbox when Show All is selected from the toolbox context menu and the component is disabled, meaning it cannot be selected and therefore cannot be added to a webform.

In VS2003 (also installed on my PC), the ServerTextControl component appears as expected and can be selected.

Where am I going wrong with VS2005?

Jonathan

Björn Meyer
February 20, 2006, 13:39:07
Jonathan

This is a known issue of Visual Studio 2005: It does not show components inherited from Controls. Please initialize TX Text Control .NET Server in code like this:

serverTextControl1 = new TXTextControl.ServerTextControl();
serverTextControl1.Create();

More about this at:

http://www.textcontrol.com/support/documentation/html/dotnet/n_aspnet_intro.htm

JonathanS1
February 20, 2006, 13:49:41
Many thanks Bjorn. Everything is now working fine.

Jonathan