c# - Textbox padding -
i've searched through internet, must using wrong keywords because can't find anything. want create textbox has text starting little far left.
just that.
as have discovered, winforms textboxes not have padding property. since panels expose padding property, 1 technique to:
- create panel
- set border match textbox (e.g., fixed3d)
- set background color match textbox (e.g., white or window)
- set padding satisfaction (e.g., 10,3,10,3)
- add textbox inside panel
- set textbox's border none
- play textbox's dock , anchor properties desired effect
this should started. create custom control same thing mentioned above.
in case talking textboxes in asp.net, use css:
input[type="text"] {padding: 3px 10px}
Comments
Post a Comment