{"id":232,"date":"2010-04-29T17:24:09","date_gmt":"2010-04-29T17:24:09","guid":{"rendered":"https:\/\/ibex.tech\/visualcpp\/?p=232"},"modified":"2022-02-17T06:24:05","modified_gmt":"2022-02-17T06:24:05","slug":"calling-a-form-control-event","status":"publish","type":"post","link":"https:\/\/ibex.tech\/visualcpp\/forms\/calling-a-form-control-event","title":{"rendered":"Calling A Form Control Event"},"content":{"rendered":"<p>\nThe maximum value of a scrollbar can only be reached programmatically. The value of a scroll bar cannot reach its maximum value through user interaction at run time. The maximum value that can be reached through user interaction is equal to 1 plus the Maximum property value minus the LargeChange property value. If necessary, you can set the Maximum property to the size of the object -1 to account for the term of 1.\n<\/p>\n<h4>\nWhen you need to pass sender and e to the function (e.g. a form control event)<br \/>\n<\/h4>\n<pre>\r\n<code>\r\n\tfrmMain_Load(this, gcnew EventArgs());\r\n\r\n\t\/\/or this\r\n\tEventArgs ^MyArgs = gcnew EventArgs();\r\n\tfrmMain_Load(this, MyArgs);\r\n<\/code><\/pre>\n<h4>\nOr you could do this if you wanted to specify a different object for some reason:<br \/>\n<\/h4>\n<pre>\r\n<code>\r\n\tObject ^MySender = gcnew Object();\r\n\tEventArgs ^MyArgs = gcnew EventArgs();\r\n\tfrmMain_Load(MySender, MyArgs);<font face=\"Century Gothic, Arial, Helvetica, sans-serif\"><span style=\"font-size: 6px; white-space: normal;\">\r\n<\/span><\/font><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The maximum value of a scrollbar can only be reached programmatically. The value of a scroll bar cannot reach its maximum value through user interaction at run time. The maximum value that can be reached through user interaction is equal to 1 plus the Maximum property value minus the LargeChange property value. If necessary, you [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-232","post","type-post","status-publish","format-standard","hentry","category-forms"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/232","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=232"}],"version-history":[{"count":4,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/232\/revisions"}],"predecessor-version":[{"id":952,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/232\/revisions\/952"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/media?parent=232"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/categories?post=232"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/tags?post=232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}