Showing results for 
Search instead for 
Did you mean: 

Reading TextBox.TextScale property -> AppCrash

Valued Contributor
Valued Contributor



@the moment i am stuck on a really annoying problem.

I am trying to read the TextScale Property of a TextBox-Object.

Everything works fine until i close the application.

This will lead to a SE appcrash-dialog.

The reason why i need to read the property and write it back later is that writing via api into the textbox.Text property, storing the document, and reloading it, its textscale is reset.

Will say the TextScale, changed by user is not kept.


Here some SampleCode, written in VB.Net.


[b]for each txb as SolidEdgeFrameworkSupport.TextBox in SolidEdgeDraft.Sheet.GetTextBoxes

dim txtScale = txb.TextScale ' This will lead to appcrash

' Do something more.

txb.TextScale = txtScale



Strangely any value can be written to the TextScale property but as soon as a read is done the application reports an error when exciting.


I do release com-objects properly.


I appreciate any help on this issue.


Thank you.


Posted by: Mike Dunker
Post date: 7/10/2013 3:29:13 AM