<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Mystalia Studios &#187; Code</title>
	<atom:link href="http://www.mystalia.net/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mystalia.net</link>
	<description>Coding Studio</description>
	<lastBuildDate>Fri, 19 Mar 2010 01:22:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Useful HTMLParse Class for PHP</title>
		<link>http://www.mystalia.net/2009/04/useful-htmlparse-class-for-php/</link>
		<comments>http://www.mystalia.net/2009/04/useful-htmlparse-class-for-php/#comments</comments>
		<pubDate>Sat, 11 Apr 2009 02:43:52 +0000</pubDate>
		<dc:creator>Mystalia</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[file_get_contents]]></category>
		<category><![CDATA[help]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[htmlparse]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[read]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.mystalia.net/?p=104</guid>
		<description><![CDATA[class HTMLParse &#123; &#160; // the missing InnerHTML function! &#160; function innerHTML&#40;$node&#41;&#123; &#160; &#160; $doc = new DOMDocument&#40;&#41;; &#160; &#160; foreach &#40;$node-&#62;childNodes as $child&#41; &#160; &#160; &#123; &#160; &#160; &#160; $doc-&#62;appendChild&#40;$doc-&#62;importNode&#40;$child, true&#41;&#41;; &#160; &#160; &#125; &#160; &#160; $result = $doc-&#62;saveHTML&#40;&#41;; &#160; &#160; return $result; &#160; &#125; &#160; // Get the inner html of all elements [...]]]></description>
			<content:encoded><![CDATA[<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">class</span> HTMLParse<br />
<span style="color: #009900;">&#123;</span><br />
&nbsp; <span style="color: #666666; font-style: italic;">// the missing InnerHTML function!</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">function</span> innerHTML<span style="color: #009900;">&#40;</span><span style="color: #000088;">$node</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$doc</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> DOMDocument<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$node</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">childNodes</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$child</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #000088;">$doc</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">appendChild</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$doc</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">importNode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$child</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$doc</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">saveHTML</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #000088;">$result</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; <span style="color: #666666; font-style: italic;">// Get the inner html of all elements inside tag from the source (input).</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">function</span> GetInnerArray<span style="color: #009900;">&#40;</span><span style="color: #000088;">$tag</span><span style="color: #339933;">,</span> <span style="color: #000088;">$input</span><span style="color: #009900;">&#41;</span><br />
&nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$doc</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> DOMDocument<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #339933;">@</span><span style="color: #000088;">$doc</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">loadHTML</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$input</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$dataset</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$doc</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getElementsByTagName</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tag</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$stringarr</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$dataset</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$row</span> <span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; <a href="http://www.php.net/array_push"><span style="color: #990000;">array_push</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$stringarr</span><span style="color: #339933;">,</span> <a href="http://www.php.net/trim"><span style="color: #990000;">trim</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">innerHTML</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #000088;">$stringarr</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; <span style="color: #666666; font-style: italic;">// Get the inner html of all elements inside tag where an attribute exists with the value.</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">function</span> GetInnerArrayFilter<span style="color: #009900;">&#40;</span><span style="color: #000088;">$input</span><span style="color: #339933;">,</span> <span style="color: #000088;">$tag</span><span style="color: #339933;">,</span> <span style="color: #000088;">$attribute</span><span style="color: #339933;">,</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#41;</span><br />
&nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$doc</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> DOMDocument<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #339933;">@</span><span style="color: #000088;">$doc</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">loadHTML</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$input</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$dataset</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$doc</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getElementsByTagName</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tag</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$stringarr</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$dataset</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$row</span> <span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getAttribute</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$attribute</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/array_push"><span style="color: #990000;">array_push</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$stringarr</span><span style="color: #339933;">,</span> <a href="http://www.php.net/trim"><span style="color: #990000;">trim</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">innerHTML</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #000088;">$stringarr</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; <span style="color: #666666; font-style: italic;">// Get attribute of tags.</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">function</span> GetTagAttribute<span style="color: #009900;">&#40;</span><span style="color: #000088;">$input</span><span style="color: #339933;">,</span> <span style="color: #000088;">$tag</span><span style="color: #339933;">,</span> <span style="color: #000088;">$attribute</span><span style="color: #009900;">&#41;</span><br />
&nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$doc</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> DOMDocument<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #339933;">@</span><span style="color: #000088;">$doc</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">loadHTML</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$input</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$dataset</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$doc</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getElementsByTagName</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tag</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$stringarr</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$dataset</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$row</span> <span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/array_push"><span style="color: #990000;">array_push</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$stringarr</span><span style="color: #339933;">,</span> <span style="color: #000088;">$row</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getAttribute</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$attribute</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #000088;">$stringarr</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; <span style="color: #666666; font-style: italic;">// Get attribute of tags where the tag attrib has the value.</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">function</span> GetTagAttributeFilter<span style="color: #009900;">&#40;</span><span style="color: #000088;">$input</span><span style="color: #339933;">,</span> <span style="color: #000088;">$tag</span><span style="color: #339933;">,</span> <span style="color: #000088;">$attribute</span><span style="color: #339933;">,</span> <span style="color: #000088;">$qattrib</span><span style="color: #339933;">,</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#41;</span><br />
&nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$doc</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> DOMDocument<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #339933;">@</span><span style="color: #000088;">$doc</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">loadHTML</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$input</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$dataset</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$doc</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getElementsByTagName</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tag</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$stringarr</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$dataset</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$row</span> <span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getAttribute</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$qattrib</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/array_push"><span style="color: #990000;">array_push</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$stringarr</span><span style="color: #339933;">,</span> <span style="color: #000088;">$row</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getAttribute</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$attribute</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #000088;">$stringarr</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
<p>Mostly written by me.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mystalia.net/2009/04/useful-htmlparse-class-for-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to restore the Show Desktop Icon to QuickLaunch.</title>
		<link>http://www.mystalia.net/2009/04/how-to-restore-the-show-desktop-icon-to-quicklaunch/</link>
		<comments>http://www.mystalia.net/2009/04/how-to-restore-the-show-desktop-icon-to-quicklaunch/#comments</comments>
		<pubDate>Sat, 04 Apr 2009 18:44:55 +0000</pubDate>
		<dc:creator>Mystalia</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[help]]></category>
		<category><![CDATA[icon]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[quicklaunch]]></category>
		<category><![CDATA[restore]]></category>
		<category><![CDATA[showdesktop]]></category>
		<category><![CDATA[troubleshoot]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.mystalia.net/?p=97</guid>
		<description><![CDATA[Run This Batch File and it will automatically place the icon in the QuickLaunch bar, remember if you don&#8217;t see it even after running the tool, it&#8217;s likely you need to click the double arrows on the right of the bar as it can only show 3. Just drag and drop it onto the 3 [...]]]></description>
			<content:encoded><![CDATA[<p>Run <a href="http://www.mystalia.net/wp-content/uploads/2009/04/restoreshowdesktopicon.bat"></a><a href="http://www.mystalia.net/wp-content/uploads/2009/04/restoreshowdesktopicon.zip">This Batch File</a> and it will automatically place the icon in the QuickLaunch bar, remember if you don&#8217;t see it even after running the tool, it&#8217;s likely you need to click the double arrows on the right of the bar as it can only show 3. Just drag and drop it onto the 3 there.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mystalia.net/2009/04/how-to-restore-the-show-desktop-icon-to-quicklaunch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual Studio Custom Skins (Without Paying)</title>
		<link>http://www.mystalia.net/2009/03/visual-studio-custom-skins-without-paying/</link>
		<comments>http://www.mystalia.net/2009/03/visual-studio-custom-skins-without-paying/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 02:48:39 +0000</pubDate>
		<dc:creator>Mystalia</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Learn C#]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[skincrafter]]></category>
		<category><![CDATA[skinning]]></category>
		<category><![CDATA[skins]]></category>
		<category><![CDATA[style]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[uskin]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://www.mystalia.net/?p=89</guid>
		<description><![CDATA[It’s a nightmare to get custom skins without paying an arm and a leg for such a simple part of your program. Some companys ask for hundreds of dollars for simple .NET classes, it’s crazy, anyway, here’s a workaround that is 100% legal and 100% free. This screenshot is VERY easy to achieve, no fancy [...]]]></description>
			<content:encoded><![CDATA[<p>It’s a nightmare to get custom skins without paying an arm and a leg for such a simple part of your program. Some companys ask for hundreds of dollars for simple .NET classes, it’s crazy, anyway, here’s a workaround that is 100% legal and 100% free.</p>
<p><img src="http://i43.tinypic.com/2s8ffbo.jpg" border="0" alt="" /></p>
<p>This screenshot is VERY easy to achieve, no fancy software just 1 class, one dll, one msstyle and a few lines of code.</p>
<p>Below are the class file and dll, and i’ve thrown in a couple of msstyles to get you going, theres plenty more on the internet, theres a few on <a href="http://www.skinbase.org/Skins/msstyles/135" target="_blank">SkinBase.org</a>. We are using USkin (<a href="http://www.neemedia.com/newsite/index.php?entry=entry081110-153248" target="_blank">Homepage</a>) its the classes that do all the work, the documentation and examples are terrible but after trial and error I have figured it out and will explain in this article.</p>
<p><a href="http://www.mystalia.net/USkin.zip" target="_blank"></a><a href="http://www.mystalia.net/wp-content/uploads/2009/03/uskin.zip">Download Uskin easy pack here</a></p>
<p>Right click the solution explorer, add an existing item (&#8220;USkinSDK.cs&#8221; and &#8220;USkin.dll&#8221;).<br />
Make sure the dll properties are set to &#8220;Content&#8221; and &#8220;Copy Always&#8221;.<br />
Make sure the class properties are set to &#8220;Compile&#8221; and &#8220;Never Copy&#8221;.</p>
<p>The code is simple.</p>
<div class="codecolorer-container csharp default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="csharp codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">USkin</span><span style="color: #008000;">;</span> <span style="color: #008080; font-style: italic;">// declare it.</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #6666cc; font-weight: bold;">void</span> Form1_Load<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">object</span> sender, EventArgs e<span style="color: #008000;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Size presize <span style="color: #008000;">=</span> <span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Size</span><span style="color: #008000;">;</span> <span style="color: #008080; font-style: italic;">// Get the correct form size before the GUI mucks it up.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; USkinSDK<span style="color: #008000;">.</span><span style="color: #0000FF;">USkinInit</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;&quot;</span>, <span style="color: #666666;">&quot;&quot;</span>, <span style="color: #666666;">&quot;GUI.msstyles&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span> <span style="color: #008080; font-style: italic;">// Replace the text accordingly with your msstyles file.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; USkinSDK<span style="color: #008000;">.</span><span style="color: #0000FF;">USkinLoadSkin</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;GUI.msstyles&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span> <span style="color: #008080; font-style: italic;">// And again here.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Size</span> <span style="color: #008000;">=</span> presize<span style="color: #008000;">;</span> <span style="color: #008080; font-style: italic;">// Re-establish the form size.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span></div></div>
<p>Simple and effective to make your applications look more professional. I will note however that you should get prior permission from the skin creator before using your application commercially, or just create your own, that&#8217;s easy too.</p>
<p>Hope this helps!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mystalia.net/2009/03/visual-studio-custom-skins-without-paying/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Basic C#.NET Syntax</title>
		<link>http://www.mystalia.net/2009/03/basic-cnet-syntax/</link>
		<comments>http://www.mystalia.net/2009/03/basic-cnet-syntax/#comments</comments>
		<pubDate>Sun, 15 Mar 2009 00:47:21 +0000</pubDate>
		<dc:creator>Mystalia</dc:creator>
				<category><![CDATA[Learn C#]]></category>

		<guid isPermaLink="false">http://www.mystalia.net/?p=81</guid>
		<description><![CDATA[Start a new windows form application like in the previous tutorial. Drag a new button in the middle and set the text to “Off”. Now over in the Solution explorer, right click “Form1.cs” and click View Code. You will see a bunch of Statements, and these are lines of code. Each statement as you can [...]]]></description>
			<content:encoded><![CDATA[<p>Start a new windows form application like in the <a href="http://www.mystalia.net/?p=79" target="_blank">previous tutorial</a>.</p>
<p>Drag a new button in the middle and set the text to “<em>Off</em>”.<br />
Now over in the Solution explorer, right click “<em>Form1.cs</em>” and click View <em>Code.</em></p>
<p>You will see a bunch of Statements, and these are lines of code. Each statement as you can see, finish with a semi-colon (;).<br />
The code is organised into .NET Libraries, namespaces, classes and methods or functions.</p>
<p>The using statements at the top are .net libraries that are included, for this tutorial we won’t need any more then this, but later on we can go into special libraries to include.</p>
<p>A namespace is a collection of classes.<br />
A class is a collection of methods and functions.<br />
A method or function simply completes a task.</p>
<p>The advantage of being a visual studio is that we don’t have to program any user interface, we can just paint it on. At the top there are tabs (Form1.cs, start page, Form1.cs [Design]). Click the Design tab to return to the design view for this application.</p>
<p>Double click the button you made earlier and notice it automatically creates a new function for this button.</p>
<p>private means that the code can only be accessed in the current class.<br />
void means the code will not return anything but only complete a task.<br />
button1_Click is just a name given to associate the button to that task.</p>
<p>Inside the <strong>brackets</strong> below ({ and }) we will perform a task when the user clicks the button. Type “<em>button1</em>” and then press put a full stop, notice a window appears giving you suggested options for the button. Type “<em>Text</em>” (case sensative) and then press <em>Space</em>. We will now <strong>set </strong>the button text to something else by pressing the <em>Equals</em> button and then in <strong>quote marks</strong> type “<em>Goodbye</em>” and finish the statement with a semi-colon.</p>
<p><span style="font-size: x-small;"></span></p>
<div class="codecolorer-container csharp default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="csharp codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">button1<span style="color: #008000;">.</span><span style="color: #0000FF;">Text</span> <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;Goodbye&quot;</span><span style="color: #008000;">;</span></div></div>
<p><span style="font-size: x-small;"></span></p>
<p><span style="font-size: x-small;">Now click the test button and then your new button and see what happens!</span></p>
<p><span style="font-size: x-small;">In the next tutorial we will see how statements can contain other statements.</span></p>
<div class="bjtags">Tags:  <a rel="tag" href="http://technorati.com/tag/statements">statements</a>, <a rel="tag" href="http://technorati.com/tag/beginner">beginner</a>, <a rel="tag" href="http://technorati.com/tag/c#">c#</a>, <a rel="tag" href="http://technorati.com/tag/hello+world">hello+world</a>, <a rel="tag" href="http://technorati.com/tag/button">button</a>, <a rel="tag" href="http://technorati.com/tag/text">text</a>, <a rel="tag" href="http://technorati.com/tag/class">class</a>, <a rel="tag" href="http://technorati.com/tag/namespace">namespace</a>, <a rel="tag" href="http://technorati.com/tag/method">method</a>, <a rel="tag" href="http://technorati.com/tag/function">function</a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.mystalia.net/2009/03/basic-cnet-syntax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual C#.NET &#8211; Setting Yourself Up!</title>
		<link>http://www.mystalia.net/2009/03/visual-cnet-setting-yourself-up/</link>
		<comments>http://www.mystalia.net/2009/03/visual-cnet-setting-yourself-up/#comments</comments>
		<pubDate>Sun, 15 Mar 2009 00:25:22 +0000</pubDate>
		<dc:creator>Mystalia</dc:creator>
				<category><![CDATA[Learn C#]]></category>

		<guid isPermaLink="false">http://www.mystalia.net/?p=79</guid>
		<description><![CDATA[This is a tutorial for those who know a little about the concepts of programming and want to design windows applications in C#. In this tutorial we will: Learn about what the .NET framework is and why C# is worth the effort. Download and Setup the software needed to make C# applications. Get used to [...]]]></description>
			<content:encoded><![CDATA[<p>This is a tutorial for those who know a little about the concepts of programming and want to design windows applications in C#.</p>
<p>In this tutorial we will:</p>
<ol>
<li>Learn about what the .NET framework is and why C# is worth the effort.</li>
<li>Download and Setup the software needed to make C# applications.</li>
<li>Get used to the Interface.</li>
</ol>
<p><strong>.NET Framework</strong><br />The <a title="Detailed information on the .NET Framework" href="http://en.wikipedia.org/wiki/.NET_Framework" target="_blank">.NET Framework</a>&nbsp;is needed to run any C#.NET application, fortunately anyone with vista should already have it installed. Some xp systems don&rsquo;t have it and it can be downloaded and installed <a title=".NET Framework 2.0 Redistributable" href="http://www.microsoft.com/downloads/details.aspx?familyid=0856eacb-4362-4b0d-8edd-aab15c5e04f5&amp;displaylang=en" target="_blank">here</a>. It is basically a library of code that exists so you don&rsquo;t have to manually write it all yourself.</p>
<p><strong>C#.NET</strong><br />C#.net is comparable to PHP in style, if you know PHP then you will get on well with C#. If you want to program games, C# is a really easy way to go about it because of microsofts <a title="XNA Framework" href="http://www.microsoft.com/Downloads/details.aspx?FamilyID=a7da4763-6807-4bd5-8d18-18c60c437f93&amp;displaylang=en" target="_blank">XNA Framework</a>, which is a library full of game related code. C# is great to learn and you can get results quickly without too much effort.</p>
<p><strong>Visual Studio 2008 Express Edition<br /></strong>This version of visual studio is absolutely free and downloadable from <a title="Download Visual Studio 2008 Express Edition" href="http://www.microsoft.com/express/download/" target="_blank">here</a>. There are different types, so make sure you get Visual C#.NET 2008. You will also obviously need the <a title="Detailed information on the .NET Framework" href="http://en.wikipedia.org/wiki/.NET_Framework" target="_blank">.NET Framework</a>&nbsp;installed if you don&rsquo;t have it already.</p>
<p><strong>The Interface<br /></strong><img style="WIDTH: 246px; HEIGHT: 186px" height="191" alt="" src="http://imag.malavida.com/mvimgbig/download/visual-studio-express-4337-1.jpg" width="250" align="right" border="0" />When you start up Visual C# 2008 express you will be greeted with the start page from which you can start a new project or continue one that you already have on the go. If it is your first time, go to <em>File -&gt; New Project</em>. Select <em>Windows Forms Application</em> and name it <em>Test</em>, then click <em>OK</em>.</p>
<p>After it has loaded up, you will see a blank windows form and a bunch of tools down the left hand side. Over on the right you have the solution explorer and the properties menu. At the bottom there should be an error list (for debugging).&nbsp;Don&rsquo;t worry about any of this right now, they will be covered later on.</p>
<p>Click the <em>Button</em> control in the Toolbox and click and drag a button on the windows form. Notice the Properties menu is now full of options. Change the <em>Text</em> option to &ldquo;<em>Hello</em>&rdquo; and then press <em>Enter</em>. Notice the text on the button has changed!</p>
<p>At the top there is a Green Triangle on its side, like a play button. Click this and test the application. Pretty easy right? Play with other controls and options and read the tooltips that appear when you hover your mouse over options and tools etc.</p>
<p>The next tutorial will cover some basic C# Syntax.</p>
<div class="bjtags">Tags:  <a rel="tag" href="http://technorati.com/tag/c#.net">c#.net</a>, <a rel="tag" href="http://technorati.com/tag/beginners">beginners</a>, <a rel="tag" href="http://technorati.com/tag/guide">guide</a>, <a rel="tag" href="http://technorati.com/tag/microsoft">microsoft</a>, <a rel="tag" href="http://technorati.com/tag/visual">visual</a>, <a rel="tag" href="http://technorati.com/tag/studio">studio</a>, <a rel="tag" href="http://technorati.com/tag/2008">2008</a>, <a rel="tag" href="http://technorati.com/tag/csharp">csharp</a>, <a rel="tag" href="http://technorati.com/tag/tutorials">tutorials</a>, <a rel="tag" href="http://technorati.com/tag/help">help</a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.mystalia.net/2009/03/visual-cnet-setting-yourself-up/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Floating Image or HTML over an iframe using CSS.</title>
		<link>http://www.mystalia.net/2009/03/floating-image-or-html-over-an-iframe-using-css/</link>
		<comments>http://www.mystalia.net/2009/03/floating-image-or-html-over-an-iframe-using-css/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 03:17:34 +0000</pubDate>
		<dc:creator>Mystalia</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[floating]]></category>
		<category><![CDATA[frame]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[iframe]]></category>

		<guid isPermaLink="false">http://www.mystalia.net/?p=62</guid>
		<description><![CDATA[You can see on http://fileblip.com/4fb26ed7! after clicking the continue button they have a floating panel over the top of an iFrame. Take a look at the code here they use, the trick is simply to use position: absolute and then toy with the left and top values until it is positioned correctly. You must also [...]]]></description>
			<content:encoded><![CDATA[<pre>You can see on <a title="FileBlip Test Link" href="http://fileblip.com/4fb26ed7!">http://fileblip.com/4fb26ed7!</a> after clicking the continue button they have a floating
panel over the top of an iFrame.
Take a look at the code here they use, the trick is simply to use position: absolute and
then toy with the left and top values until it is positioned correctly. You must also make
sure the object is floating left or right, but you may have issues on the right.
<div class="codecolorer-container css default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #6666ff;">.fltmsg</span> <span style="color: #00AA00;">&#123;</span><br />
<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span><br />
<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span><br />
<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span><br />
<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span><br />
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#ff0000</span><span style="color: #00AA00;">;</span><br />
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;">;</span><br />
<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> arial<span style="color: #00AA00;">;</span><br />
<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span><br />
<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span><br />
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span><span style="color: #00AA00;">;</span><br />
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">300px</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span></div></div>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.mystalia.net/2009/03/floating-image-or-html-over-an-iframe-using-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Useful PHP class for parsing HTML</title>
		<link>http://www.mystalia.net/2009/03/useful-php-class-for-parsing-html/</link>
		<comments>http://www.mystalia.net/2009/03/useful-php-class-for-parsing-html/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 03:00:51 +0000</pubDate>
		<dc:creator>Mystalia</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[domdocument]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[htmlparse]]></category>
		<category><![CDATA[parse]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.mystalia.net/?p=58</guid>
		<description><![CDATA[I&#8217;m hoping this is commented well enough. GeSHi Error: GeSHi could not find the language phplines (using path /home1/mystalia/public_html/wp-content/plugins/codecolorer/lib/geshi/) (code 2) If you would like help with this class, please comment! If you have an idea to improve this class, please comment!]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m hoping this is commented well enough.</p>
<div class="codecolorer-container php[lines] default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><br /><strong>GeSHi Error:</strong> GeSHi could not find the language phplines (using path /home1/mystalia/public_html/wp-content/plugins/codecolorer/lib/geshi/) (code 2)<br /></div>
<p>If you would like help with this class, please comment!<br />
If you have an idea to improve this class, please comment!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mystalia.net/2009/03/useful-php-class-for-parsing-html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C# Draggable Borderless Forms. Solved!</title>
		<link>http://www.mystalia.net/2008/10/c-draggable-borderless-forms-solved/</link>
		<comments>http://www.mystalia.net/2008/10/c-draggable-borderless-forms-solved/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 22:18:50 +0000</pubDate>
		<dc:creator>Mystalia</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.mystalia.net/?p=24</guid>
		<description><![CDATA[Ever wonder why a windows form without any FormBorders is not able to be dragged around by the mouse? You’d have thought common sense would dictate that a developer would wan’t his app to be fully functional frames or not, but I guess programming on and for windows means that you have to deal with [...]]]></description>
			<content:encoded><![CDATA[<p>Ever wonder why a windows form without any FormBorders is not able to be dragged around by the mouse? You’d have thought common sense would dictate that a developer would wan’t his app to be fully functional frames or not, but I guess programming on and for windows means that you have to deal with little annoyances like this with a workaround.</p>
<p>Whack this at the top of the class.</p>
<div class="codecolorer-container csharp default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="csharp codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #008080; font-style: italic;">// Form moving</span><br />
<span style="color: #008080;">#region</span><br />
<span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">const</span> <span style="color: #6666cc; font-weight: bold;">int</span> WM_NCLBUTTONDOWN <span style="color: #008000;">=</span> 0xA1<span style="color: #008000;">;</span><br />
<span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">const</span> <span style="color: #6666cc; font-weight: bold;">int</span> HTCAPTION <span style="color: #008000;">=</span> 0x2<span style="color: #008000;">;</span><br />
<span style="color: #008000;">&#91;</span>DllImportAttribute<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;user32.dll&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#93;</span><br />
<span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #0600FF; font-weight: bold;">extern</span> <span style="color: #6666cc; font-weight: bold;">bool</span> ReleaseCapture<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
<span style="color: #008000;">&#91;</span>DllImportAttribute<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;user32.dll&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#93;</span><br />
<span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #0600FF; font-weight: bold;">extern</span> <span style="color: #6666cc; font-weight: bold;">int</span> SendMessage<span style="color: #008000;">&#40;</span>IntPtr hWnd, <span style="color: #6666cc; font-weight: bold;">int</span> Msg, <span style="color: #6666cc; font-weight: bold;">int</span> wParam, <span style="color: #6666cc; font-weight: bold;">int</span> lParam<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
<span style="color: #008080;">#endregion</span><br />
<br />
<span style="color: #008080; font-style: italic;">// Create a new Form1.MouseDown Event in the form designer and put this into it.</span><br />
<span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>e<span style="color: #008000;">.</span><span style="color: #0000FF;">Button</span> <span style="color: #008000;">==</span> MouseButtons<span style="color: #008000;">.</span><span style="color: #0000FF;">Left</span><span style="color: #008000;">&#41;</span><br />
<span style="color: #008000;">&#123;</span><br />
ReleaseCapture<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
SendMessage<span style="color: #008000;">&#40;</span>Handle, WM_NCLBUTTONDOWN, HTCAPTION, <span style="color: #FF0000;">0</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
<span style="color: #008000;">&#125;</span></div></div>
<p>This is presuming you want the form background to be the dragging object, but it can be anything really.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mystalia.net/2008/10/c-draggable-borderless-forms-solved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C# Textbox and AutoCompleteMode Conflicts with KeyPress.</title>
		<link>http://www.mystalia.net/2008/07/c-textbox-and-autocompletemode-conflicts-with-keypress/</link>
		<comments>http://www.mystalia.net/2008/07/c-textbox-and-autocompletemode-conflicts-with-keypress/#comments</comments>
		<pubDate>Fri, 11 Jul 2008 14:07:13 +0000</pubDate>
		<dc:creator>Mystalia</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[autocomplete]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[keydown]]></category>
		<category><![CDATA[keypress]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[textbox]]></category>

		<guid isPermaLink="false">http://www.mystalia.net/?p=20</guid>
		<description><![CDATA[Ok, personally I was using a textbox and when you pressed &#8220;Enter&#8221; it would complete a task, BUT I also wanted the textbox to be autocompletive (if that&#8217;s a valid term). When I actually went to test it all out I found that instead of running the Keypress event, it just highlighted the text and [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, personally I was using a textbox and when you pressed &#8220;Enter&#8221; it would complete a task, BUT I also wanted the textbox to be autocompletive (if that&#8217;s a valid term).</p>
<p>When I actually went to test it all out I found that instead of running the Keypress event, it just highlighted the text and did nothing else&#8230; Googled to find there is no valid reason why, but there is a work around, and it&#8217;s simple.</p>
<p>Abandon KeyPress and use the KeyDown function, setup your keydown event correctly, and it will work.</p>
<div class="codecolorer-container csharp default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="csharp codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #6666cc; font-weight: bold;">void</span> textBox1_KeyDown<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">object</span> sender, KeyEventArgs e<span style="color: #008000;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>e<span style="color: #008000;">.</span><span style="color: #0000FF;">KeyCode</span> <span style="color: #008000;">==</span> Keys<span style="color: #008000;">.</span><span style="color: #0000FF;">Enter</span><span style="color: #008000;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #008000;">&#125;</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.mystalia.net/2008/07/c-textbox-and-autocompletemode-conflicts-with-keypress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Opening a WebPage in the Default Browser (C# .net)</title>
		<link>http://www.mystalia.net/2008/06/opening-a-webpage-in-the-default-browser-c-net/</link>
		<comments>http://www.mystalia.net/2008/06/opening-a-webpage-in-the-default-browser-c-net/#comments</comments>
		<pubDate>Sat, 28 Jun 2008 13:33:35 +0000</pubDate>
		<dc:creator>Mystalia</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[default browser]]></category>
		<category><![CDATA[framework.]]></category>
		<category><![CDATA[internet]]></category>

		<guid isPermaLink="false">http://www.mystalia.net/?p=18</guid>
		<description><![CDATA[When you just want to open a webpage in the systems default browser there are many complicated methods to do it, like going through the registry and finding out what the default browser is&#8230; blah blah&#8230; SO! Why not just hand the task over to windows&#8230; &#160; &#160; using System.Diagnostics; &#160; &#160; // In one [...]]]></description>
			<content:encoded><![CDATA[<p>When you just want to open a webpage in the systems default browser there are many complicated methods to do it, like going through the registry and finding out what the default browser is&#8230; blah blah&#8230;</p>
<p>SO! Why not just hand the task over to windows&#8230;</p>
<div class="codecolorer-container csharp default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="csharp codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Diagnostics</span><span style="color: #008000;">;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// In one line of code look...</span><br />
&nbsp; &nbsp; Process<span style="color: #008000;">.</span><span style="color: #0000FF;">Start</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;http://www.google.com&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></div>
<p>And there you go, windows will handle the url as if you had just clicked a shortcut on the desktop and open it with the default browser.</p>
<p>Easy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mystalia.net/2008/06/opening-a-webpage-in-the-default-browser-c-net/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
