{"id":91,"date":"2010-03-17T14:11:14","date_gmt":"2010-03-17T14:11:14","guid":{"rendered":"https:\/\/ibex.tech\/visualcpp\/?p=91"},"modified":"2022-02-17T06:24:06","modified_gmt":"2022-02-17T06:24:06","slug":"image-picture","status":"publish","type":"post","link":"https:\/\/ibex.tech\/visualcpp\/images-pictures\/image-picture","title":{"rendered":"Add Image To A Form"},"content":{"rendered":"<p>\nA good format to save images in is .png\n<\/p>\n<p>\nCreate images as 96dpi .png for optimum quality.\n<\/p>\n<p>\nSave the image file to your project directory\n<\/p>\n<p>\nSimply place a PictureBox control on the form where you want it, set the size and set the image filename as the picture to use.\n<\/p>\n<p>\nThere is no need to add the image to the package and deployment of the project &#8211; it is automatically included in the resource file.\n<\/p>\n<h4>\nSetting A Picture Box Image At Runtime<br \/>\n<\/h4>\n<p>\nAdd an ImageList to the form and set the image size. &lt;<set adding=\"\" before=\"\" br=\"\" image=\"\" size=\"\" the=\"\"> Load it with the images you wish to select from.<br \/>\nThen set the image to be displayed like this<\/set>\n<\/p>\n<pre>\r\n<code>\r\n\tMyPictureBox-&gt;Image = MyImageList-&gt;Images[0];<font face=\"Open Sans, Helvetica, Arial, sans-serif\"><span style=\"font-size: 15px; line-height: 24px; white-space: normal;\">\r\n<\/span><\/font><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>A good format to save images in is .png Create images as 96dpi .png for optimum quality. Save the image file to your project directory Simply place a PictureBox control on the form where you want it, set the size and set the image filename as the picture to use. There is no need to [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-91","post","type-post","status-publish","format-standard","hentry","category-images-pictures"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/91","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/comments?post=91"}],"version-history":[{"count":9,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/91\/revisions"}],"predecessor-version":[{"id":1184,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/91\/revisions\/1184"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/media?parent=91"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/categories?post=91"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/tags?post=91"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}