{"id":279,"date":"2009-06-12T23:30:30","date_gmt":"2009-06-12T18:00:30","guid":{"rendered":"http:\/\/techtwaddle.net\/?p=279"},"modified":"2011-04-12T23:30:48","modified_gmt":"2011-04-12T18:00:48","slug":"why-would-the-controls-not-show-up","status":"publish","type":"post","link":"https:\/\/techtwaddle.co.in\/blog\/2009\/06\/12\/why-would-the-controls-not-show-up\/","title":{"rendered":"Why would the controls not show up!"},"content":{"rendered":"<div style=\"text-align: justify;\"><span style=\"font-family: Comic Sans MS;\">A colleague of mine had a strange problem today. He had written a small UI application for a Windows Mobile Professional device with many controls. The controls contained several check boxes, text boxes, labels and buttons. When he ran the dialog using the &quot;Run Dialog&quot; option in Visual Studio, it showed up correctly and when the program ran on the device a strange thing happened. Some of the controls would show up and others would not.<\/p>\n<p>It wasn&#8217;t random, the same set of controls showed up every time and others didn&#8217;t. The UI was divided into three sections each contained within a group box. I could imagine how strange he must have thought it to be. But it had already happened to me before. And when he asked me for help, I couldn&#8217;t help a smile (: If you had read <\/span><a style=\"font-family: Comic Sans MS;\" href=\"http:\/\/geekswithblogs.net\/TechTwaddle\/archive\/2009\/05\/24\/applications-creating-a-simple-ui-application-from-scratch-process-viewer.aspx\">this post<\/a><span style=\"font-family: Comic Sans MS;\"> carefully enough, you would have noticed a small remark on the group box that I had made. <span style=\"font-style: italic; color: rgb(0, 51, 0);\">&quot;Add these three static controls into a group box, name the group box &quot;Process Info&quot;. Remember to create the three static text controls before creating the group box. I was trying the other way around, by creating the group box first, the text controls would not show up, they were hidden behind the group box.&quot;<\/span><span style=\"color: rgb(0, 51, 0);\"> <\/span>And that was the exact problem in this case too. He had added controls to the UI in a particular order, or rather, in no particular order. So all the controls added before the group box showed up correctly and others didn&#8217;t.<\/span><\/p>\n<p><br style=\"font-family: Comic Sans MS;\" \/><br \/>\n<span style=\"font-family: Comic Sans MS; font-weight: bold;\">Update:<\/span><br style=\"font-family: Comic Sans MS;\" \/><br \/>\n<span style=\"font-family: Comic Sans MS;\">As Gato pointed out, this problem occurs because of the Tab order (also called z-order) of the individual controls. See the &#8216;Comments&#8217; section below.<\/span><\/div>\n","protected":false},"excerpt":{"rendered":"<p>A colleague of mine had a strange problem today. He had written a small UI application for a Windows Mobile Professional device with many controls. The controls contained several check boxes, text boxes, labels and buttons. When he ran the dialog using the &quot;Run Dialog&quot; option in Visual Studio, it showed up correctly and when &hellip; <a href=\"https:\/\/techtwaddle.co.in\/blog\/2009\/06\/12\/why-would-the-controls-not-show-up\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Why would the controls not show up!<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[1],"tags":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p1ktFF-4v","_links":{"self":[{"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/posts\/279"}],"collection":[{"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/comments?post=279"}],"version-history":[{"count":1,"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/posts\/279\/revisions"}],"predecessor-version":[{"id":280,"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/posts\/279\/revisions\/280"}],"wp:attachment":[{"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/media?parent=279"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/categories?post=279"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/tags?post=279"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}