<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Channel 9 Forums - Tech Off - How to hide or make a vb.net form invisible at the load event of the form</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Forums/rss"></atom:link>
	<image>
		<url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url>
		<title>Channel 9 Forums - Tech Off - How to hide or make a vb.net form invisible at the load event of the form</title>
		<link>http://channel9.msdn.com/Forums</link>
	</image>
	<description>Channel 9 keeps you up to date with the latest news and behind the scenes info from Microsoft that developers love to keep up with. From LINQ to SilverLight – Watch videos and hear about all the cool technologies coming and the people behind them.</description>
	<link>http://channel9.msdn.com/Forums</link>
	<language>en</language>
	<pubDate>Mon, 20 May 2013 00:51:02 GMT</pubDate>
	<lastBuildDate>Mon, 20 May 2013 00:51:02 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<c9:totalResults>11</c9:totalResults>
	<c9:pageCount>-11</c9:pageCount>
	<c9:pageSize>-1</c9:pageSize>
	<item>
		<title>Tech Off - How to hide or make a vb.net form invisible at the load event of the form</title>
		<description><![CDATA[<p>Hi,</p><p>My requirement is as soon as my form get load it should get hidden or invisible.The user should not be able to even get the look of the form.I have tried this at load event but its not working.</p><p><pre class="brush: vb"> Private Sub Form_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
me.hide
me.visible=false
End Sub</pre></p><p>I have tried Me.Hide and Me.visible but its not working.Can i do it on load?</p><p>Is there anyother way please suggest.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/How-to-hide-or-make-a-vbnet-form-visible-at-the-load-event-of-the-form/a56213cc782a4a3d83ca9f6500ef54b5#a56213cc782a4a3d83ca9f6500ef54b5</link>
		<pubDate>Wed, 21 Sep 2011 14:31:22 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/How-to-hide-or-make-a-vbnet-form-visible-at-the-load-event-of-the-form/a56213cc782a4a3d83ca9f6500ef54b5#a56213cc782a4a3d83ca9f6500ef54b5</guid>
		<dc:creator>EhteshamSiddiqui</dc:creator>
		<slash:comments>11</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/EhteshamSiddiqui/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - How to hide or make a vb.net form invisible at the load event of the form</title>
		<description><![CDATA[<p>Why would you want to do this?</p><p>This tactic sounds more like spyware/virus than any feasible reason....but hmm</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/How-to-hide-or-make-a-vbnet-form-visible-at-the-load-event-of-the-form/d845a0816332447388029f650104a5e5#d845a0816332447388029f650104a5e5</link>
		<pubDate>Wed, 21 Sep 2011 15:48:59 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/How-to-hide-or-make-a-vbnet-form-visible-at-the-load-event-of-the-form/d845a0816332447388029f650104a5e5#d845a0816332447388029f650104a5e5</guid>
		<dc:creator>Cybermagellan</dc:creator>
		<slash:comments>11</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Cybermagellan/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - How to hide or make a vb.net form invisible at the load event of the form</title>
		<description><![CDATA[<p>@<a href="/Forums/TechOff/How-to-hide-or-make-a-vbnet-form-visible-at-the-load-event-of-the-form#ca56213cc782a4a3d83ca9f6500ef54b5">EhteshamSiddiqui</a>: If the user won't be able to see the form, why make a form at all?</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/How-to-hide-or-make-a-vbnet-form-visible-at-the-load-event-of-the-form/5595ae4155d1488faf4d9f65010fc586#5595ae4155d1488faf4d9f65010fc586</link>
		<pubDate>Wed, 21 Sep 2011 16:29:29 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/How-to-hide-or-make-a-vbnet-form-visible-at-the-load-event-of-the-form/5595ae4155d1488faf4d9f65010fc586#5595ae4155d1488faf4d9f65010fc586</guid>
		<dc:creator>Scott</dc:creator>
		<slash:comments>11</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/spivonious/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - How to hide or make a vb.net form invisible at the load event of the form</title>
		<description><![CDATA[<p>There may be legit reasons to do this if you want to load forms in a non-modal way while hiding the calling form. For example if you had a log-in form you could do something like (untested)</p><p>Dim myForm as New frmMenu() 'go to the menu after logging in<br>Me.Hide() ' temporarily hide the log in form<br>myForm.ShowDialog()<br>Me.Show() &nbsp;' when user closes the menu, show the form again</p><p>&nbsp;</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/How-to-hide-or-make-a-vbnet-form-visible-at-the-load-event-of-the-form/b0249c467f314a8991579f65012595e8#b0249c467f314a8991579f65012595e8</link>
		<pubDate>Wed, 21 Sep 2011 17:48:54 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/How-to-hide-or-make-a-vbnet-form-visible-at-the-load-event-of-the-form/b0249c467f314a8991579f65012595e8#b0249c467f314a8991579f65012595e8</guid>
		<dc:creator>itsnotabug</dc:creator>
		<slash:comments>11</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/itsnotabug/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - How to hide or make a vb.net form invisible at the load event of the form</title>
		<description><![CDATA[<p>nevermind i just reread the op. why not just do a console app?</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/How-to-hide-or-make-a-vbnet-form-visible-at-the-load-event-of-the-form/0378862f5fb54d6b95149f650128d14b#0378862f5fb54d6b95149f650128d14b</link>
		<pubDate>Wed, 21 Sep 2011 18:00:40 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/How-to-hide-or-make-a-vbnet-form-visible-at-the-load-event-of-the-form/0378862f5fb54d6b95149f650128d14b#0378862f5fb54d6b95149f650128d14b</guid>
		<dc:creator>itsnotabug</dc:creator>
		<slash:comments>11</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/itsnotabug/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - How to hide or make a vb.net form invisible at the load event of the form</title>
		<description><![CDATA[<p>There are legitimate reasons to do this - for example you can't create a tray icon without having a HWND to attach it to, but you might want your form to be visible when you click the tray icon and be invisible by default.</p><p>Unfortunately you can't set Visible to false during the constructor or the Load() event, but you can do a couple of things:</p><p>* Create a one shot timer for 100ms - start the timer during the Load() event and have the timer make the form invisble.</p><p>* You can bash the CreateParams() method to make the form invisible by default.</p><p>* You can override the form's WndProc and prevent the form from showing during the WM_CREATE command.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/How-to-hide-or-make-a-vbnet-form-visible-at-the-load-event-of-the-form/7cd075213fb0480da8279f65012d7d73#7cd075213fb0480da8279f65012d7d73</link>
		<pubDate>Wed, 21 Sep 2011 18:17:41 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/How-to-hide-or-make-a-vbnet-form-visible-at-the-load-event-of-the-form/7cd075213fb0480da8279f65012d7d73#7cd075213fb0480da8279f65012d7d73</guid>
		<dc:creator>evildictaitor</dc:creator>
		<slash:comments>11</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/evildictaitor/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - How to hide or make a vb.net form invisible at the load event of the form</title>
		<description><![CDATA[<p>Visual Basic always shows the main form after completing the Load event (unlike C#), which is why your attempts to hide it go unnoticed. There is another event that fires soon after from what I recall which you can use instead, can't remember what it is off the top of my head though and it's far too late to be digging around in VS.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/How-to-hide-or-make-a-vbnet-form-visible-at-the-load-event-of-the-form/47f362118913497782179f6501854a12#47f362118913497782179f6501854a12</link>
		<pubDate>Wed, 21 Sep 2011 23:37:21 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/How-to-hide-or-make-a-vbnet-form-visible-at-the-load-event-of-the-form/47f362118913497782179f6501854a12#47f362118913497782179f6501854a12</guid>
		<dc:creator>AndyC</dc:creator>
		<slash:comments>11</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/AndyC/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - How to hide or make a vb.net form invisible at the load event of the form</title>
		<description><![CDATA[<p>@<a href="/Forums/TechOff/How-to-hide-or-make-a-vbnet-form-visible-at-the-load-event-of-the-form#ca56213cc782a4a3d83ca9f6500ef54b5">EhteshamSiddiqui</a>: This seems odd.&nbsp; Why show the form to begin with if it isn't to be seen.&nbsp; Just create it (i.e. new) but don't show it.&nbsp; If this is the only form in your project add a Sub main and set it as the startup of the project.&nbsp; This way in sub main you can control when the form is created and when it is shown.&nbsp; Beyond that if you really want to hide after showing you could do an addhandler for the onloaded,&nbsp;onactivated, onvisiblechanged, etc.&nbsp;event(s) and rehide depending on the more specifics of just why this scenario came into existence in the first place.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/How-to-hide-or-make-a-vbnet-form-visible-at-the-load-event-of-the-form/27192aa2238c404e86879f660011b43a#27192aa2238c404e86879f660011b43a</link>
		<pubDate>Thu, 22 Sep 2011 01:04:27 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/How-to-hide-or-make-a-vbnet-form-visible-at-the-load-event-of-the-form/27192aa2238c404e86879f660011b43a#27192aa2238c404e86879f660011b43a</guid>
		<dc:creator>Dave Williamson</dc:creator>
		<slash:comments>11</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/davewill/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - How to hide or make a vb.net form invisible at the load event of the form</title>
		<description><![CDATA[<p>I use the me.visible property when I create an application which starts minimized in the system tray.</p><p>A simple way is to put the code in the 'shown' event of the main form.</p><p>Example:<br>Private Sub Form1_Shown(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Shown<br>Me.Visible = False<br>End Sub</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/How-to-hide-or-make-a-vbnet-form-visible-at-the-load-event-of-the-form/3600025e45754948b7179fbe01654497#3600025e45754948b7179fbe01654497</link>
		<pubDate>Mon, 19 Dec 2011 21:40:46 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/How-to-hide-or-make-a-vbnet-form-visible-at-the-load-event-of-the-form/3600025e45754948b7179fbe01654497#3600025e45754948b7179fbe01654497</guid>
		<dc:creator>TonK</dc:creator>
		<slash:comments>11</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/TonK/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - How to hide or make a vb.net form invisible at the load event of the form</title>
		<description><![CDATA[<p>This might help:</p><p>Change the WindowState property to Minimized and ShowInTaskbar property to False.<br>Add Me.Hide() to the Form_Load sub.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/How-to-hide-or-make-a-vbnet-form-visible-at-the-load-event-of-the-form/c31e73050b98407987f09fc5013e8e1e#c31e73050b98407987f09fc5013e8e1e</link>
		<pubDate>Mon, 26 Dec 2011 19:19:49 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/How-to-hide-or-make-a-vbnet-form-visible-at-the-load-event-of-the-form/c31e73050b98407987f09fc5013e8e1e#c31e73050b98407987f09fc5013e8e1e</guid>
		<dc:creator>nCoded</dc:creator>
		<slash:comments>11</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/nCoded/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - How to hide or make a vb.net form invisible at the load event of the form</title>
		<description><![CDATA[<p>Just one more thing that seems to have been overlooked:</p><p>set the location of the form so that even if it's &quot;shown&quot; for a second it's not in the visible area of the screen...&nbsp;&nbsp;&nbsp; like&nbsp; -5000,-5000&nbsp;&nbsp;&nbsp;&nbsp; then later change the location property to a value like 200,200</p><p>just be sure to check the users desktop size and screen count info.... i hate programs that assume all new windows belong inside screen zero when i have two monitors and the app is in screen one.</p><p>if the parent app is in screen one then put new windows in that screen please !!!</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/How-to-hide-or-make-a-vbnet-form-visible-at-the-load-event-of-the-form/076e538dda4d4351a87b9fc600dd93fe#076e538dda4d4351a87b9fc600dd93fe</link>
		<pubDate>Tue, 27 Dec 2011 13:26:44 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/How-to-hide-or-make-a-vbnet-form-visible-at-the-load-event-of-the-form/076e538dda4d4351a87b9fc600dd93fe#076e538dda4d4351a87b9fc600dd93fe</guid>
		<dc:creator>figuerres</dc:creator>
		<slash:comments>11</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/figuerres/Discussions/RSS</wfw:commentRss>
	</item>
</channel>
</rss>