<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Windows Forms on bradleycarey.com</title>
    <link>https://bradleycarey.com/tags/windows-forms/</link>
    <description>Recent content in Windows Forms on bradleycarey.com</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Tue, 05 Dec 2023 14:05:41 -0500</lastBuildDate>
    <atom:link href="https://bradleycarey.com/tags/windows-forms/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Window Minimize / Maximize Event (C# winforms)</title>
      <link>https://bradleycarey.com/posts/2012-08-13-window-minimize-maximize-event-c-winforms/</link>
      <pubDate>Mon, 13 Aug 2012 09:58:34 -0400</pubDate>
      <guid>https://bradleycarey.com/posts/2012-08-13-window-minimize-maximize-event-c-winforms/</guid>
      <description>&lt;p&gt;If you are working in C# winforms and need to respond to window minimize and maximize events, it seems that winforms does not provide native event handlers. Such a feat is still very much possible through hooking into the Windows API.&lt;/p&gt;&#xA;&lt;p&gt;The exact message you need to catch is &lt;a href=&#34;http://msdn.microsoft.com/en-us/library/windows/desktop/ms646360%28v=vs.85%29.aspx&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;WM_SYSCOMMAND&lt;/a&gt; and look for the SC_* messages:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;SC_CLOSE 0xF060&lt;/li&gt;&#xA;&lt;li&gt;SC_MAXIMIZE 0xF030&lt;/li&gt;&#xA;&lt;li&gt;SC_MINIMIZE 0xF020&lt;/li&gt;&#xA;&lt;li&gt;SC_RESTORE 0xF120&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;There are indeed more messages. Check the above link for a full list. Now for some sample code:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Sprite Editor</title>
      <link>https://bradleycarey.com/posts/2012-07-25-sprite-editor/</link>
      <pubDate>Wed, 25 Jul 2012 23:01:56 -0400</pubDate>
      <guid>https://bradleycarey.com/posts/2012-07-25-sprite-editor/</guid>
      <description>&lt;div class=&#34;pull-right&#34;&gt;&#xA;  &lt;a href=&#34;https://bradleycarey.com/images/2015/01/spriteeditor.jpg&#34;&gt;&lt;img src=&#34;https://bradleycarey.com/images/2015/01/spriteeditor-300x157.jpg&#34; alt=&#34;spriteeditor&#34; width=&#34;300&#34; height=&#34;157&#34; class=&#34;alignnone size-medium wp-image-355&#34; srcset=&#34;https://bradleycarey.com/images/2015/01/spriteeditor-300x157.jpg 300w, https://bradleycarey.com/images/2015/01/spriteeditor.jpg 646w&#34; sizes=&#34;(max-width: 300px) 100vw, 300px&#34; /&gt;&lt;/a&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://caustik.com&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Caustik&lt;/a&gt; wrote a neat program that lets &lt;a href=&#34;http://en.wikipedia.org/wiki/Sprite_%28computer_graphics%29&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;sprites&lt;/a&gt; walk around on your desktop and perform all kinds of random interactions with each other. The program is networked as well, so if you throw a sprite off of your screen it actually goes to another user’s desktop.&lt;/p&gt;&#xA;&lt;p&gt;Sprite Editor is what it sounds like – it is basically an editor to streamline creation of sprite *.spr and *.spi files. Create your own custom sprites then submit them on the sprites forums and all the users will be able to see your creations.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
