This is a migrated thread and some comments may be shown as answers.

Setting a Textbox Top property in VB

1 Answer 10 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bob Bruce
Top achievements
Rank 1
Bob Bruce asked on 21 Jan 2010, 02:10 PM
I want to be able to set (or reset) the Top property of an existing textbox (named TxtPackage) from .3in to 0in.  I want to do it dynamically in VB.  I tried "TxtPackage.Top =", but nothing I used as the result worked.

Your help, as always, is appreciated.

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 21 Jan 2010, 02:21 PM
Hello Bob,

The intellisense of Visual Studio shows that a value of type Telerik.Reporting.Drawing.Unit is required for the Top property i.e.:

Me.TxtPackage.Top = New Telerik.Reporting.Drawing.Unit(0, Telerik.Reporting.Drawing.UnitType.Inch)

If this textbox is available in the report designer (i.e. not created entirely programmatically), then you can control this through the Location --> Y property from the property grid.

Greetings,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Bob Bruce
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or