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.

http://dab.biz/images/screenie/2011-02-04_1316.png

just that.

as have discovered, winforms textboxes not have padding property. since panels expose padding property, 1 technique to:

  1. create panel
  2. set border match textbox (e.g., fixed3d)
  3. set background color match textbox (e.g., white or window)
  4. set padding satisfaction (e.g., 10,3,10,3)
  5. add textbox inside panel
  6. set textbox's border none
  7. 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

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -