{"id":4545,"date":"2014-03-30T13:27:48","date_gmt":"2014-03-30T13:27:48","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/relation-between-length-and-font-size-of-a-string-and-width-of-a-textbox-collection-of-common-programming-errors\/"},"modified":"2014-03-30T13:27:48","modified_gmt":"2014-03-30T13:27:48","slug":"relation-between-length-and-font-size-of-a-string-and-width-of-a-textbox-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/relation-between-length-and-font-size-of-a-string-and-width-of-a-textbox-collection-of-common-programming-errors\/","title":{"rendered":"Relation between length and font-size of a string and width of a textbox-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;ve a field in a database, this field has a maximum length, and I want to set a textbox to the appropriate width. I&#8217;m creating the textboxes in runtime. How can I calculate the value of width property?<\/p>\n<p>For example, if I have a field nvarchar(5) named IDClient, and the font-Size is 13, I want to create a texbox with a width enough to write 5 chars.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve a field in a database, this field has a maximum length, and I want to set a textbox to the appropriate width. I&#8217;m creating the textboxes in runtime. How can I calculate the value of width property? For example, if I have a field nvarchar(5) named IDClient, and the font-Size is 13, I want [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4545","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4545","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4545"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4545\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4545"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4545"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4545"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}