Trial Version Issues

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
Sean Miller
Posts: 4
Joined: 01 May 2008, 21:13

Trial Version Issues

Post by Sean Miller » 01 May 2008, 21:26

Maybe it's because I'm using the trial version.
I would like to be able to hide or remove button from the Toolbar from the CADViewerControl, so I go to Toolspanel->Buttons and set Button.Visible = False and it still shows. I have even tried to Delete the button(s) and they still show.
I try to use CadViewerControl.Image.LoadFromFile("C:\some folder\somedwg.dwg") and it generates an exception "Object reference not set to an instance of an object."

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Re: Trial Version Issues

Post by support » 06 May 2008, 09:46

Hi,

Please try the following code:

Code: Select all

	this.cadViewerControl1.ToolsPanel.Buttons[12].Visible = false;
	this.cadViewerControl1.Invalidate();
Sergey.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Sean Miller
Posts: 4
Joined: 01 May 2008, 21:13

Re: Trial Version Issues

Post by Sean Miller » 06 May 2008, 16:12

OK the ToolPanel.Buttons(Index).Visible through code works.
What about the Image.LoadFromFile?

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Re: Trial Version Issues

Post by support » 07 May 2008, 08:56

Hi,

We added those lines in to private void InitParams(). It worked.

Sergey.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Sean Miller
Posts: 4
Joined: 01 May 2008, 21:13

Re: Trial Version Issues

Post by Sean Miller » 07 May 2008, 21:39

private void InitParams()? This is nowhere to be found?

Open your ViewerControlVB sample application.
Change the code in the miOpenFile_Click routine to:

Me.cadViewerControl.Image.LoadFromFile("C:\some folder\somedwg.dwg")

This generates an exception. How or what do I need to do to get around this.
I am getting ready to purchase 3 licenses if I can just get over this last hurdle.

Thanks

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Re: Trial Version Issues

Post by support » 08 May 2008, 10:32

Hello,

We added those lines in to:

Code: Select all

Private Sub InitializeComponent()
it worked.

Sergey.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply