Re: Right Justify Textbox
- From: Supra <supra@xxxxxxxxxxxxxx>
- Date: Sun, 14 Aug 2005 06:14:16 -0400
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
Dim frm As Control = Me.FindControl("Form1")
Dim ctl As Control
For Each ctl In frm.Controls
If TypeOf ctl Is TextBox Then
DirectCast(ctl, TextBox).Style("TEXT-ALIGN") = "right"
End If
End Sub
u can changed left, center. regards,
Leonard wrote:
How do I right justify input data in a textbox? I have some textboxes that are used to input numbers, and I would like to right justify them.
.
- Follow-Ups:
- Re: Right Justify Textbox
- From: Leonard
- Re: Right Justify Textbox
- References:
- Right Justify Textbox
- From: Leonard
- Right Justify Textbox
- Prev by Date: Re: Too funny MS ad in Visual Studio Magazine...
- Next by Date: Re: Right Justify Textbox
- Previous by thread: RE: Right Justify Textbox
- Next by thread: Re: Right Justify Textbox
- Index(es):
Relevant Pages
|