<?xml version="1.0" encoding="utf-8"?>
<feed xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:lang="en-us" xmlns="http://www.w3.org/2005/Atom">
  <title>Pocket PC Controls.com web log</title>
  <link rel="alternate" type="text/html" href="http://blog.pocketpccontrols.com/" />
  <link rel="self" href="http://blog.pocketpccontrols.com/SyndicationService.asmx/GetAtom" />
  <icon>favicon.ico</icon>
  <updated>2008-04-11T13:53:52.191625+10:00</updated>
  <author>
    <name>Pocket PC Controls.com</name>
  </author>
  <subtitle>Paul Olsen's experiences developing for the Compact Framework</subtitle>
  <id>http://blog.pocketpccontrols.com/</id>
  <generator uri="http://www.dasblog.net" version="1.9.6264.0">DasBlog</generator>
  <entry>
    <title>Visual Studio 2008 Compatibility</title>
    <link rel="alternate" type="text/html" href="http://blog.pocketpccontrols.com/PermaLink,guid,53c7e137-339e-4b91-abca-44046c251725.aspx" />
    <id>http://blog.pocketpccontrols.com/PermaLink,guid,53c7e137-339e-4b91-abca-44046c251725.aspx</id>
    <published>2008-04-11T13:53:02.191+10:00</published>
    <updated>2008-04-11T13:53:52.191625+10:00</updated>
    <category term="Technical" label="Technical" scheme="http://blog.pocketpccontrols.com/CategoryView,category,Technical.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">There have been a few enquiries about the
compatibility of the controls and Visual Studio 2008 (especially the <a href="http://www.pocketpccontrols.com/controls/colortab/">ColorTab
Control</a>).<br /><br />
With the developer demo and the purchased controls there is a Visual Studio 2005 and
a Visual Studio 2008 install.<br /><br />
The controls in the Visual Studio 2005 install are to be used in Visual Studio 2005
targeting the .NET Compact Framework 2.0<br />
The controls in the Visual Studio 2008 install are to be used in Visual Studio 2008
targeting the .NET Compact Framework 3.5<br /><br />
So, when upgrading your project to Visual Studio 2008, you must right click on the
project in the solution using the Pocket PC Controls.com control and upgrade it to
target .NET Compact Framework 3.5, then remove the reference to the old Pocket PC
Controls.com control (targeting .NET 2.0) and add the control targeting Visual Studio
2008 and targeting .NET Compact Framework 3.5. The projects are not automatically
updated to target .NET CF 3.5 when upgrading the solution to Visual Studio 2008<br /><br /><br /><p></p><img width="0" height="0" src="http://blog.pocketpccontrols.com/aggbug.ashx?id=53c7e137-339e-4b91-abca-44046c251725" /></div>
    </content>
  </entry>
  <entry>
    <title>Controls Updated to Support Visual Studio 2008 (.NET 3.5)</title>
    <link rel="alternate" type="text/html" href="http://blog.pocketpccontrols.com/PermaLink,guid,b889bbfd-7895-4f48-8a0a-cf3427b051fe.aspx" />
    <id>http://blog.pocketpccontrols.com/PermaLink,guid,b889bbfd-7895-4f48-8a0a-cf3427b051fe.aspx</id>
    <published>2008-03-19T10:47:28.047+10:00</published>
    <updated>2008-03-19T10:49:07.001+10:00</updated>
    <category term="Technical" label="Technical" scheme="http://blog.pocketpccontrols.com/CategoryView,category,Technical.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">We have updated the demo control &amp; deliverables
available to include installs for Visual Studio 2008 &amp; .NET 3.5.<br />
All has been tested and is running well.<br /><br />
The process involved:<br />
- Update the solutions using the Visual Studio conversion wizard from Visual Studio
2005 to Visual Studio 2008<br />
- Upgrade each of the projects from .NET 2.0 to target the .NET 3.5 platform using
the right click menu on the projects themselves.<br /><br /><br /><p></p><img width="0" height="0" src="http://blog.pocketpccontrols.com/aggbug.ashx?id=b889bbfd-7895-4f48-8a0a-cf3427b051fe" /></div>
    </content>
  </entry>
  <entry>
    <title>Vista &amp; XP gradient styles added to .NET ColorTab control v1.6</title>
    <link rel="alternate" type="text/html" href="http://blog.pocketpccontrols.com/PermaLink,guid,55a50db8-2c7f-47c0-9cd1-81d7334f28d0.aspx" />
    <id>http://blog.pocketpccontrols.com/PermaLink,guid,55a50db8-2c7f-47c0-9cd1-81d7334f28d0.aspx</id>
    <published>2008-01-03T16:17:39.09+10:00</published>
    <updated>2008-01-03T16:26:49.933875+10:00</updated>
    <category term="Color Tab" label="Color Tab" scheme="http://blog.pocketpccontrols.com/CategoryView,category,Color%2BTab.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">After quite a bite of work and extending
the existing gradient class in the ColorTab control, we are now able to offer a .NET
tab control that supports the desktop, Windows Mobile, Smart Phone &amp; tablet platforms
AND offers Vista &amp; XP gradient styles!<br /><br />
The great thing about how the gradient class has been constructed is that all gradients
are drawn at runtime. 
<br />
With this in mind, you are able apply *<b>ANY</b>* color scheme you like to the ColorTab
with this sort of effect:<br /><br /><p></p><img src="http://blog.pocketpccontrols.com/content/binary/14.gif" border="0" /><br />
Flat tabs<br /><br /><img src="http://blog.pocketpccontrols.com/content/binary/15.gif" border="0" /><br />
Standard Gradient<br /><br /><img src="http://blog.pocketpccontrols.com/content/binary/16.gif" border="0" /><br />
Office Gradient<br /><br /><img src="http://blog.pocketpccontrols.com/content/binary/17.gif" border="0" /><br />
Vista Gradient<br /><br /><img src="http://blog.pocketpccontrols.com/content/binary/18.gif" border="0" /><br />
XP Gradient<br /><br />
You can have a closer look at the ColorTab v1.6 control by downloading and implementing
the <a href="http://www.pocketpccontrols.com/controls/colorTab/">developer demo<br /></a><br /><img width="0" height="0" src="http://blog.pocketpccontrols.com/aggbug.ashx?id=55a50db8-2c7f-47c0-9cd1-81d7334f28d0" /></div>
    </content>
  </entry>
  <entry>
    <title>Color Tab - Tab Stop for Smartphone</title>
    <link rel="alternate" type="text/html" href="http://blog.pocketpccontrols.com/PermaLink,guid,c719331f-16d4-4845-95ca-e1cde5d42385.aspx" />
    <id>http://blog.pocketpccontrols.com/PermaLink,guid,c719331f-16d4-4845-95ca-e1cde5d42385.aspx</id>
    <published>2007-11-01T13:59:58.538+10:00</published>
    <updated>2007-11-01T13:59:58.538+10:00</updated>
    <category term="Color Tab" label="Color Tab" scheme="http://blog.pocketpccontrols.com/CategoryView,category,Color%2BTab.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">Due to the limited nature of the Smartphone
interface, here are some notes on how we have organised tab stops for the Smartphone
interface.<br /><br />
Within the ColorTab control, it is the tab pages that hold focus. With this in mind,
when a tab page has focus, the left and right keys are used to switch between tabs. 
<br /><br />
All but the Smartphone OS have some way of the user entering the tab page contents
(either by mouse, or stylus), we have therefore made the enter key on the Smartphone
the trigger for the first control within the currently selected tab page to gain focus.
After the tab control pages loose control of focus, it is up to the developer to nagivate
between existing controls within the tab pages and to give focus back to the tab control
when the user is done.<br /><br />
If there are brighter ideas than this out there, we would be gratefull to hear them.<br /><br />
Here is the code used within the KeyUp event on the tab page for reference:<br /><p><span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">protected</span><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">override</span><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">void</span> OnKeyUp(KeyEventArgs
e)<br />
{<br />
  <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">base</span>.OnKeyUp(e);<br /><br />
  <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">if</span> (Parent.Equals(<span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">null</span>))<br />
   <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">return</span>;<br /><br />
  <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">switch</span> (e.KeyData)<br />
  {<br />
   <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">case</span> Keys.Right:<br />
    ((ColorTab)Parent).SelectedIndex++; 
<br />
    <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">break</span>;<br /><br />
   <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">case</span> Keys.Left:<br />
    ((ColorTab)Parent).SelectedIndex--; 
<br />
    <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">break</span>; 
<br /><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">#if</span> Smartphone<br />
   <span style="color: Green; background-color: transparent; font-family: Courier New; font-size: 11px;">//
enter into the tab page</span><br />
   <span style="color: Green; background-color: transparent; font-family: Courier New; font-size: 11px;">//
the developer is going to have to set focus from here on in</span><br />
   <span style="color: Green; background-color: transparent; font-family: Courier New; font-size: 11px;">//
due to the limitations of the Smartphone</span><br />
   <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">case</span> Keys.Enter:<br />
    <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">if</span> (<span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">base</span>.Controls.Count
&gt; 0 &amp;&amp; <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">base</span>.Focused) 
<br />
     SelectNextControl(<span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">this</span>, <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">true</span>, <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">true</span>, <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">true</span>, <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">true</span>); 
<br /><br />
   <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">break</span>;<br /><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">#endif</span><br />
  }<br />
}</span></p><br /><p></p><img width="0" height="0" src="http://blog.pocketpccontrols.com/aggbug.ashx?id=c719331f-16d4-4845-95ca-e1cde5d42385" /></div>
    </content>
  </entry>
  <entry>
    <title>Helpful tools</title>
    <link rel="alternate" type="text/html" href="http://blog.pocketpccontrols.com/PermaLink,guid,e8885824-c4b8-4f31-a411-3ddeb11c7f94.aspx" />
    <id>http://blog.pocketpccontrols.com/PermaLink,guid,e8885824-c4b8-4f31-a411-3ddeb11c7f94.aspx</id>
    <published>2007-07-27T14:55:36.044+10:00</published>
    <updated>2007-07-27T15:01:00.669625+10:00</updated>
    <category term="Technical" label="Technical" scheme="http://blog.pocketpccontrols.com/CategoryView,category,Technical.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">FREE 'HANDY AS HELL' TOOLS...<br /><br />
This is not so much technical... more helpful.<br /><br />
I just wanted to share a couple of tools that I find very handy for day to day use:<br /><br /><b>1: Sync Toy </b>- Microsoft have a free tool for, well I use it for backing up
in Echo mode to an external drive. I am not too fussed with the backup system for
Vista... I keep all my gear in one directory and this is all I want backed up. As
you are not able to backup one directory, Sync Toy is the answer for me, you can find
it here:   <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=E0FC1154-C975-4814-9649-CCE41AF06EB7&amp;displaylang=en">http://www.microsoft.com/downloads/details.aspx?FamilyId=E0FC1154-C975-4814-9649-CCE41AF06EB7&amp;displaylang=en</a><br /><br /><b>2: Microsoft GIF Creator </b>- For ages, I was looking for FREE animated GIF creator
and couldn't find one that I liked, the other week, I came across the Microsoft contribution
and although it has been around for ages.. it is really good! If you need to create
animated GIF's, you can find it here: <a href="http://www.versiontracker.com/dyn/moreinfo/win/13212">http://www.versiontracker.com/dyn/moreinfo/win/13212</a>..
just MAGIC!!!<br /><br /><p></p><img width="0" height="0" src="http://blog.pocketpccontrols.com/aggbug.ashx?id=e8885824-c4b8-4f31-a411-3ddeb11c7f94" /></div>
    </content>
  </entry>
  <entry>
    <title>ILMerge GUI Source Code &amp; Application</title>
    <link rel="alternate" type="text/html" href="http://blog.pocketpccontrols.com/PermaLink,guid,30c0a727-3f3d-4ba1-944f-44d15cda9fae.aspx" />
    <id>http://blog.pocketpccontrols.com/PermaLink,guid,30c0a727-3f3d-4ba1-944f-44d15cda9fae.aspx</id>
    <published>2007-06-20T16:06:18.953+10:00</published>
    <updated>2007-06-21T19:58:51.578125+10:00</updated>
    <category term="Technical" label="Technical" scheme="http://blog.pocketpccontrols.com/CategoryView,category,Technical.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">Well, I have tried to find an ILMerge GUI
out there that will run on my machine and have had no luck, so I finally took it upon
my self to create my own (although basic) GUI for the ILMerge utility for combining
IL libraries.<br /><br />
Download Links:<br /><a href="http://blog.pocketpccontrols.com/content/binary/ILMergeGUI.zip">ILMerge GUI
Executable</a><br /><a href="http://blog.pocketpccontrols.com/content/binary/ILMergeGUISource.zip">ILMerge
GUI Source Code (VS 2005)</a><br /><br />
You will need the ILMerge application also, you can download it <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=22914587-B4AD-4EAE-87CF-B14AE6A939B0&amp;displaylang=en">here</a><br />
There is also the version history of the software <a href="http://research.microsoft.com/%7Embarnett/ILMerge.aspx">here</a><br /><br />
I use this for wrapping up the different controls into one demo executable file which
saves me having to collect source code from different places and compile manually.<br /><br /><img src="http://blog.pocketpccontrols.com/content/binary/ILMergeGUI.gif" /><br /><br />
As I add to the app, I will update the site. 
<br />
If you would like to add to the app, add comment with your changes and I will update
the source &amp; app.<br /><br /><p></p><img width="0" height="0" src="http://blog.pocketpccontrols.com/aggbug.ashx?id=30c0a727-3f3d-4ba1-944f-44d15cda9fae" /></div>
    </content>
  </entry>
  <entry>
    <title>Custom Control Design Time Attributes</title>
    <link rel="alternate" type="text/html" href="http://blog.pocketpccontrols.com/PermaLink,guid,c1de61e4-108e-4174-8aa1-9dcbb19b4581.aspx" />
    <id>http://blog.pocketpccontrols.com/PermaLink,guid,c1de61e4-108e-4174-8aa1-9dcbb19b4581.aspx</id>
    <published>2007-06-01T20:01:07.997+10:00</published>
    <updated>2007-06-20T08:42:36.609375+10:00</updated>
    <category term="Color Button" label="Color Button" scheme="http://blog.pocketpccontrols.com/CategoryView,category,Color%2BButton.aspx" />
    <category term="Technical" label="Technical" scheme="http://blog.pocketpccontrols.com/CategoryView,category,Technical.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">I was just asked a question by a recent
ColorButton Source code customer about how the design time .dll (ColorButton.PocketPC.asmmeta.dll)
is created for the ColorButton Control and seeing how it is not obvious in code (there
is not a seperate project), I thought I had better explain what is going on.<br /><br />
Within the ColorButton source, there is a file called '<a href="http://blog.pocketpccontrols.com/content/binary/DTAColorButton.zip">DTAColorButton.xmta</a>'.
The DTA part is an abbreviation for Design Time Attributes, by no means a naming convention
standard, but something that I have become comfortable with.<br /><br />
The .xmta file simply contains an .xml format definition of the public properties
within the ColorButton class. The compiler (magic really) recognises the existance
of the .xmta file and creates the ColorButton.PocketPC.asmmeta.dll file, or one appropriate
for the project target.<br /><br />
Further, the ColorButton solution shares the one set of source code across all projects
in the solution:<br />
ColorButton.Desktop<br />
ColorButton.PocketPC<br />
ColorButton.Smartphone<br />
ColorButton.WindowsCE<br /><br />
Apart from the Desktop compile which has alot of #'s in the code which takes care
of the desktop design time attributes:<br /><p><span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">#if</span> Desktop<br />
  [Description(<span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;">"Gets
or sets the position information for button content"</span>), Category(<span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;">"Appearance"</span>)]<br /><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">#endif</span><br /></span></p>
The rest of the projects compile an asmmeta.dll to suit the device:<br />
ColorButton.PocketPC.asmmeta.dll<br />
ColorButton.WindowsCE.asmmeta.dll<br />
ColorButton.Smartphone.asmmeta.dll<br /><br />
I hope this explains a bit about the source provided by Pocket PC Controls.com and
may even give you some insight into creating your own controls.<br /><br />
If you need more info, feel free to add comment.<br /><br /><p></p><img width="0" height="0" src="http://blog.pocketpccontrols.com/aggbug.ashx?id=c1de61e4-108e-4174-8aa1-9dcbb19b4581" /></div>
    </content>
  </entry>
  <entry>
    <title>ColorTab v1.6</title>
    <link rel="alternate" type="text/html" href="http://blog.pocketpccontrols.com/PermaLink,guid,019c797d-a239-47be-9aa5-6dad91084f31.aspx" />
    <id>http://blog.pocketpccontrols.com/PermaLink,guid,019c797d-a239-47be-9aa5-6dad91084f31.aspx</id>
    <published>2007-05-23T17:01:03.274+10:00</published>
    <updated>2007-06-01T20:17:45.294+10:00</updated>
    <category term="Color Tab" label="Color Tab" scheme="http://blog.pocketpccontrols.com/CategoryView,category,Color%2BTab.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">This is the second release of the Color
Tab control this month.. the earlier v1.5 realease saw additional properties added
like:<br /><br /><span class="boldText"></span><span class="stdText"><span class="style1"></span></span><b><span class="boldText"><i>ShowBorderNonSelected</i></span></b><span class="stdText">-
border non-selected tabs</span><span class="stdText"><span class="style1"></span></span><span class="boldText"><br /><i><b>TabStripBackColor</b></i><b></b>- </span><span class="stdText">set color behind
tabs</span><span class="stdText"><span class="style1"></span></span><span class="boldText"><br /><i><b>TabStripShowGradient</b></i><b></b></span><span class="stdText">- Show gradient
behind tabs<span class="style1"></span></span><span class="boldText"><br /><i><b>Spacing</b></i><b></b></span><span class="stdText">- </span><span class="stdText">Set
the </span><span class="stdText">spacing between tabs</span><span class="stdText"><span class="style1"></span></span><span class="boldText"><br /><i><b>Align</b></i><b></b>- </span><span class="stdText">align</span> tab content:
left;center;right<span class="stdText"><span class="style1"></span></span><span class="boldText"><br /><i><b>BackgroundImage</b></i><b></b>- </span><span class="stdText">tab</span> page
background image<span class="stdText"><span class="style1"></span></span><span class="boldText"><br /><i><b>TabImage</b></i></span><b></b>- tab background image<span class="style1"></span><br /><b><i>TabImageSelected</i></b>- selected tab background image<span class="style1"></span><br /><br />
The latest release of the ColorTab control (v1.6) includes much improved keyboard
navigation and a new property 'HotTrack'.<br />
Navigational functionality has been emulated from the standard Tab Control so that
you are now able to tab onto the Color Tab control using the keyboard, then using
the arrow keys navigate your way through the available tabs. With the HotTrack property
set to true the border on the focused tab is highlighted for easy reference to which
tab is focused.<br /><br />
Pressing the tab key, then takes you inside the tab area where you can navigate your
way through controls as you would on the standard Tab Control.<br /><br />
I must say, after having a bit of a look around the net, there doesn't seem to be
another feature rich Tab Control available quite like this one with support for PocketPC,
Smartphone, Desktop, WindowsCE &amp; Tablet.<br /><br />
Please see the help file for a complete list of features: <a href="http://www.pocketpccontrols.com/controls/help/">http://www.pocketpccontrols.com/controls/help/</a><br /><br /><br /><img width="0" height="0" src="http://blog.pocketpccontrols.com/aggbug.ashx?id=019c797d-a239-47be-9aa5-6dad91084f31" /></div>
    </content>
  </entry>
  <entry>
    <title>Using Assembly Resources</title>
    <link rel="alternate" type="text/html" href="http://blog.pocketpccontrols.com/PermaLink,guid,830501d5-e690-45a4-9d03-3301e2ec3ce7.aspx" />
    <id>http://blog.pocketpccontrols.com/PermaLink,guid,830501d5-e690-45a4-9d03-3301e2ec3ce7.aspx</id>
    <published>2007-05-22T19:33:40.336+10:00</published>
    <updated>2007-06-13T14:12:59.067125+10:00</updated>
    <category term="Technical" label="Technical" scheme="http://blog.pocketpccontrols.com/CategoryView,category,Technical.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">In the Pocket PC Controls.com Color Picker
control their is an embedded bitmap called 'palette.bmp' used for the drop down color
selector. Due to the source code being available to clients, it was not acceptable
to hard wire the name of the resource which would include the namespace as the source
code may be inserted into projects with namespaces other than PPCC.<br /><br /><img src="http://blog.pocketpccontrols.com/content/binary/palette.bmp" border="0" /> palette.bmp<br /><br />
The palette.bmp was added to the project inside a project folder called 'resources'
and the build action for that file set as 'Embedded Resource'. When compiled, this
resource is embedded into the assembly saving the need for adiditional external files.<br /><br />
Rather than using the fully qualified name for the image ie: 'PPCC.resources.palette.bmp',
I have simply searched through all available resources to find the 'palette' bitmap.<br /><br /><hr size="2" width="100%" /><span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"></span><p><span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;">System.Reflection.Assembly
asm <span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;">=</span> System.Reflection.Assembly.GetExecutingAssembly(); 
<br /><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">string</span>[]
s <span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;">=</span> asm.GetManifestResourceNames();
// extract names of </span><span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;">all
embedded </span><span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;">resources<br /><br /><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">for</span> (<span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">int</span> i <span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;">=</span> 0;
i &lt;= s.GetUpperBound(0); i++) // wind through all available resources<br />
  <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">if</span> (s[i].IndexOf("palette"<span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;"></span>)
&gt; 0) // if we find the one we want<br />
    _ColorBitmap <span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;">=</span><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">new</span> Bitmap(asm.GetManifestResourceStream(s[i]));
// assign that resource for use into a local variable</span></p><hr size="2" width="100%" /><br />
If you are happy to hard wire the resource name, you could always use ILDASM.exe after
compilation to find the fully qualified name of the embedded resource, simply double
click on the MANIFEST entry. ILDASM.exe is installed with Visual Studio (C:\Program
Files\Microsoft Visual Studio 8\SDK\v2.0\Bin) and is an excellent tool to have a look
at what is going on inside your compiled IL assemblies, it has been a great tool for
me over the years.<br /><br /><br /><img width="0" height="0" src="http://blog.pocketpccontrols.com/aggbug.ashx?id=830501d5-e690-45a4-9d03-3301e2ec3ce7" /></div>
    </content>
  </entry>
  <entry>
    <title>ColorButton Control v1.7</title>
    <link rel="alternate" type="text/html" href="http://blog.pocketpccontrols.com/PermaLink,guid,d9be6779-1a83-4bc7-9032-dcea4a9e4509.aspx" />
    <id>http://blog.pocketpccontrols.com/PermaLink,guid,d9be6779-1a83-4bc7-9032-dcea4a9e4509.aspx</id>
    <published>2007-05-20T16:32:03.461+10:00</published>
    <updated>2007-05-23T16:39:51.227125+10:00</updated>
    <category term="Technical" label="Technical" scheme="http://blog.pocketpccontrols.com/CategoryView,category,Technical.aspx" />
    <category term="Color Button" label="Color Button" scheme="http://blog.pocketpccontrols.com/CategoryView,category,Color%2BButton.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">It was brought to my attention that the
ColorButton control had no way of determining that it had focus!!!<br />
We stuck with the standard button behavior of thickening the border of the button
when focused.<br />
The DrawColorButton method looks like this now:<br /><span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;"><span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;"></span></span><span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;"><p><span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;"><span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">private</span><span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">void</span> DrawColorButton()<br />
{    <br />
  CollectColors();<br /><br />
  <span style="font-size: 11px; color: green; font-family: Courier New; background-color: transparent;">//
draw the button to the screen</span><br />
  <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">switch</span> (_ButtonShape)<br />
  {        <br />
    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">case</span> ButtonShape.Ellipse
:</span></p><p><span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;">   
  <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">if</span> (_ShowGradient)<br />
        Draw.Gradient(_Graphics, <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">this</span>.Bounds,
_BackDownColor, BackColor, (<span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">int</span>)_GradientDirection,
(<span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">int</span>)_ButtonShape);<br />
      <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">else</span><br />
        _Graphics.FillEllipse(_Brush, 0, 0, Width-1,
Height-1);<br />
    <br />
      _Graphics.DrawEllipse(_Pen, 0, 0, Width-1, Height-1);<br /><br />
      <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">if</span> (<span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">base</span>.Focused)<br />
        _Graphics.DrawEllipse(_Pen, 1, 1, Width <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">-</span> 3,
Height <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">-</span> 3);<br /><br />
      <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">break</span>;<br /><br />
    <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">case</span> ButtonShape.Rectangle
:                
<br /></span></p><p><span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;">   
  <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">if</span> (_ShowGradient)<br />
        Draw.Gradient(_Graphics, <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">this</span>.Bounds,
_BackDownColor, BackColor, (<span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">int</span>)_GradientDirection,
(<span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">int</span>)_ButtonShape);<br />
      <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">else</span><br />
        _Graphics.FillRectangle(_Brush, 0, 0, Width,
Height);<br />
                    <br />
      _Graphics.DrawRectangle(_Pen, 0, 0, Width-1, Height-1);<br /><br /><span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">   
  if</span>(<span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">base</span>.Focused)<br />
        _Graphics.DrawRectangle(_Pen, 1, 1, Width <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">-</span> 3,
Height <span style="font-size: 11px; color: red; font-family: Courier New; background-color: transparent;">-</span> 3);<br /><br />
      <span style="font-size: 11px; color: blue; font-family: Courier New; background-color: transparent;">break</span>;<br />
    }<br /><br />
    DrawStringToButton();<br />
    DrawIconToButton();<br /></span></p>
}<br /><br /></span>Those of you who purchased the control in the last 6 months would like the
update please send me an email.<br />
There is still no way of determining if the ColorButton has focus when using images
and we will add this functionality in the near future. If there are any of you who
would like to see a new image property added to cater for the focused state, please
let me know and we can push that along.<br /><br />
You can see here that colorButton2 has focus:<br /><br /><img src="http://blog.pocketpccontrols.com/content/binary/Untitled-1.gif" border="0" /><br /><br /><img width="0" height="0" src="http://blog.pocketpccontrols.com/aggbug.ashx?id=d9be6779-1a83-4bc7-9032-dcea4a9e4509" /></div>
    </content>
  </entry>
  <entry>
    <title>MEDC 2007 Sydney Australia</title>
    <link rel="alternate" type="text/html" href="http://blog.pocketpccontrols.com/PermaLink,guid,54ff2f08-d20b-4a69-8e66-8f2c1330e7d6.aspx" />
    <id>http://blog.pocketpccontrols.com/PermaLink,guid,54ff2f08-d20b-4a69-8e66-8f2c1330e7d6.aspx</id>
    <published>2007-05-20T15:55:11.149+10:00</published>
    <updated>2007-05-20T18:12:50.977125+10:00</updated>
    <category term="Events" label="Events" scheme="http://blog.pocketpccontrols.com/CategoryView,category,Events.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">I attended my first MEDC this week. 
<br />
There were a few streams that you could take... as it happens, I have been into RDA
(Remote Data Access) for a while and thought it would be good to see what the experts
had to say, I would have loved to hear some one talk at me about security for an hour
or so but as it happens there was not <i>that </i>much time, so there was quite a
bit of glossing over subjects. Probably should have taken the Business stream which
talked about the interaction between Windows Mobile and Exchange Server to learn something
new. Oh well, it was a good day out and I got to speak to quite a few interesting
people and I got a nice back pack and jacket. Will try the Tech Ed next year I think.<br /><br /><img width="0" height="0" src="http://blog.pocketpccontrols.com/aggbug.ashx?id=54ff2f08-d20b-4a69-8e66-8f2c1330e7d6" /></div>
    </content>
  </entry>
</feed>
