<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Form.Hide() is not hiding the form!' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Form.Hide() is not hiding the form!' posted on the 'VB.NET' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 25 May 2013 13:10:22 -0700</pubDate>
    <lastBuildDate>Sat, 25 May 2013 13:10:22 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Form.Hide() is not hiding the form!</title>
      <link>http://www.programmersheaven.com/mb/VBNET/250933/250933/formhide-is-not-hiding-the-form/</link>
      <description>I'm developing in VS.NET 2003 on WindowsXP Pro.&lt;br /&gt;
&lt;br /&gt;
I'm seeing a strange intermittent bug where I will hide a form (using Me.Hide()), and the form remains visible.  Debugging the form shows that the form properties are being set correctly (Me.Visible = False, yet the form is still visible!).  This behavior happens on XP, and not on win2k.&lt;br /&gt;
&lt;br /&gt;
I've been able to duplicate this issue in the debugger (on XP) by setting a breakpoint on the Me.Hide() line.&lt;br /&gt;
&lt;br /&gt;
When the breakpoint is hit:&lt;br /&gt;
&lt;br /&gt;
1) Focus on the window to be hidden&lt;br /&gt;
2) Drag the window to be hidden a short distance&lt;br /&gt;
3) Step to the next line of code in the debugger (executing Me.Hide())&lt;br /&gt;
4) Watch in amazement as the window does not hide (even though Me.Visible = false).&lt;br /&gt;
&lt;br /&gt;
Any idea what I can do to make sure that a window hides when it's supposed to hide?  I can't destroy this window, as there are ActiveX controls that are required by my main application.&lt;br /&gt;
&lt;br /&gt;
Mike&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/250933/250933/formhide-is-not-hiding-the-form/</guid>
      <pubDate>Thu, 25 Mar 2004 10:03:03 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>Re: Form.Hide() is not hiding the form!</title>
      <link>http://www.programmersheaven.com/mb/VBNET/250933/251600/re-formhide-is-not-hiding-the-form/#251600</link>
      <description>same thing happened to me once.. what i did was i went forward in debug mode all the way till the end..&lt;br /&gt;
turns out, there were some unresolved small errors and some uninitializes stuff after i removed all the SMALL ERRORS and made all my CODE RIGHT, i ran it again and it worked!&lt;br /&gt;
what about u?&lt;br /&gt;
mamanged to get it to work yet?&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: xx-small;"&gt;&lt;span style="color: blue;"&gt;"Rejoice always, pray without ceasing, in everything give thanks; for this is the will of God in Christ Jesus for you."[i]1Thess. 5:16-18[/i]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/250933/251600/re-formhide-is-not-hiding-the-form/#251600</guid>
      <pubDate>Sun, 28 Mar 2004 21:15:02 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>Re: Form.Hide() is not hiding the form!</title>
      <link>http://www.programmersheaven.com/mb/VBNET/250933/260959/re-formhide-is-not-hiding-the-form/#260959</link>
      <description>It's possible that when you break at that line the paint event is not being triggered.  Without seeing your code (why does no one show there's?!?) I would try:&lt;br /&gt;
&lt;br /&gt;
With Me&lt;br /&gt;
    Hide()&lt;br /&gt;
    Invalidate()&lt;br /&gt;
    Update()&lt;br /&gt;
    DoEvents()&lt;br /&gt;
End With&lt;br /&gt;
&lt;br /&gt;
: I'm developing in VS.NET 2003 on WindowsXP Pro.&lt;br /&gt;
: &lt;br /&gt;
: I'm seeing a strange intermittent bug where I will hide a form (using Me.Hide()), and the form remains visible.  Debugging the form shows that the form properties are being set correctly (Me.Visible = False, yet the form is still visible!).  This behavior happens on XP, and not on win2k.&lt;br /&gt;
: &lt;br /&gt;
: I've been able to duplicate this issue in the debugger (on XP) by setting a breakpoint on the Me.Hide() line.&lt;br /&gt;
: &lt;br /&gt;
: When the breakpoint is hit:&lt;br /&gt;
: &lt;br /&gt;
: 1) Focus on the window to be hidden&lt;br /&gt;
: 2) Drag the window to be hidden a short distance&lt;br /&gt;
: 3) Step to the next line of code in the debugger (executing Me.Hide())&lt;br /&gt;
: 4) Watch in amazement as the window does not hide (even though Me.Visible = false).&lt;br /&gt;
: &lt;br /&gt;
: Any idea what I can do to make sure that a window hides when it's supposed to hide?  I can't destroy this window, as there are ActiveX controls that are required by my main application.&lt;br /&gt;
: &lt;br /&gt;
: Mike&lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/250933/260959/re-formhide-is-not-hiding-the-form/#260959</guid>
      <pubDate>Fri, 28 May 2004 13:07:56 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>Re: Form.Hide() is not hiding the form!</title>
      <link>http://www.programmersheaven.com/mb/VBNET/250933/262352/re-formhide-is-not-hiding-the-form/#262352</link>
      <description>I've never been able to solve the problem, so as a work-around, I enabled the control box (minimize/maximize/close) and trapped the Close event to minimize the form instead.&lt;br /&gt;
&lt;br /&gt;
I'm certain that this is a bug in the .NET Framework 1.1, perhaps having something to do with COM interop (I have non-visible ActiveX components on the form in question).  It happens randomly on Windows XP and not on Windows 2000.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBNET/250933/262352/re-formhide-is-not-hiding-the-form/#262352</guid>
      <pubDate>Tue, 08 Jun 2004 09:30:43 -0700</pubDate>
      <category>VB.NET</category>
    </item>
  </channel>
</rss>