Value disappear
Roberto Marra
Hi there,I got this problem. First of all let me briefly explain what I want to get.
I got a variable trgetType that take a DBSourceValue field. When this value is 14 I want to put visible a field and increase the size of the field, so I wrote the following code:
If Me.trgetType = "14" Then
txtDocNumNC.Visible = True
txtDocNumNC.Size = New PerpetuumSoft.Framework.Drawing.Vector(3.1,2.0)
End If
Everything works properly until I don't change the size of the textBox, when I do that the value is no more shown
Any idea why?
Thnx in advance
Roberto
Philipp Knecht
Hi RobertoThe engine uses an internal unit.
To convert use:
PerpetuumSoft.Framework.Drawing.Unit.
hth
Roberto Marra
Hi Philipp,can you be more clear pls. What you mean with "convert"?
Can you re-take my example and put it in the correct way pls. Coz I made some test with PerpetuumSoft.Framework.Drawing.Unit but I got back other error.
Thnx
Roberto
Roberto Marra
Hi there,actually I solved in this way:
txtDocNumNC.Size = New PerpetuumSoft.Framework.Drawing.Vector(3.1f, 1.5f).ConvertUnits(PerpetuumSoft.Framework.Drawing.Unit.Centimeter, PerpetuumSoft.Framework.Drawing.Unit.Centimeter)
I don't know if you meant that anyway..
Thx
Roberto
0
Please sign in to leave a comment.
Comments
0 comments