<?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; c#</title>
	<atom:link href="http://www.mystalia.net/tag/c/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>Drumz0r</title>
		<link>http://www.mystalia.net/2009/01/drumz0r/</link>
		<comments>http://www.mystalia.net/2009/01/drumz0r/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 12:20:43 +0000</pubDate>
		<dc:creator>Affix</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[DRUM]]></category>
		<category><![CDATA[ROCKBAND]]></category>
		<category><![CDATA[XNA]]></category>

		<guid isPermaLink="false">http://www.mystalia.net/?p=42</guid>
		<description><![CDATA[What is Drumz0r? Drumz0r is an XNA Application that shows how to control a system using the Harmonix Drumkit provided with Rockband. Is It OpenSource? Absolutely 100%. You can modify the code and Redistribute it But you must give me credit where it is due. Where can I get It? You can Download the Binary [...]]]></description>
			<content:encoded><![CDATA[<p><strong>What is Drumz0r?</strong></p>
<p>Drumz0r is an XNA Application that shows how to control a system using the Harmonix Drumkit provided with Rockband.<br />
<span id="more-42"></span></p>
<p><strong>Is It OpenSource?</strong></p>
<p>Absolutely 100%. You can modify the code and Redistribute it But you must give me credit where it is due.</p>
<p><strong>Where can I get It?</strong></p>
<p>You can Download the Binary Here : <a href="http://Mystalia.net/drumz0r/Drumz0r_BIN.rar">[DOWNLOAD]</a></p>
<p>And The C# Project Here : <a href="http://www.mystalia.net/drumz0r/Drumz0r_SRC.zip">[DOWNLOAD]</a></p>
<p><strong>What do I need To run It?</strong></p>
<p>You need the XNA Framework V 3.0 and the .NET Framework V3.5</p>
<p>Get the XNA Framework Here : <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=6521D889-5414-49B8-AB32-E3FFF05A4C50&amp;displaylang=en" target="_blank">[DOWNLOAD]</a></p>
<p>And the .NET Framework Here : <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=333325fd-ae52-4e35-b531-508d977d32a6&amp;DisplayLang=en" target="_self">[DOWNLOAD]</a></p>
<p><strong>Please note the application only displays a black screen as I am only demonstrating how to use the controller not how to make a GUI.</strong></p>
<p>if you have any questions email affix@fedoraproject.org</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mystalia.net/2009/01/drumz0r/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>
		<item>
		<title>Free and Easy SSH in c#</title>
		<link>http://www.mystalia.net/2008/05/free-and-easy-ssh-in-c/</link>
		<comments>http://www.mystalia.net/2008/05/free-and-easy-ssh-in-c/#comments</comments>
		<pubDate>Sat, 31 May 2008 09:39:26 +0000</pubDate>
		<dc:creator>Mystalia</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[component]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.mystalia.net/?p=13</guid>
		<description><![CDATA[If you&#8217;re looking for an easy way to communicate through ssh without paying rediculous prices for components, then read on. Behold: SharpSSH (Download). It is a free communications component that is great for ssh. Add the binary dll&#8217;s as a reference to your project. The usage is surprisingly simple. Tamir.SharpSsh.SshStream ssh = new Tamir.SharpSsh.SshStream(serverip, username, [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re looking for an easy way to communicate through ssh without paying rediculous prices for components, then read on.</p>
<p>Behold: SharpSSH (<a href="http://sourceforge.net/project/showfiles.php?group_id=190927" target="_blank">Download</a>). It is a free communications component that is great for ssh.</p>
<p>Add the binary dll&#8217;s as a reference to your project.<br />
The usage is surprisingly simple.</p>
<p>Tamir.SharpSsh.<span style="color: #00ccff;">SshStream</span> ssh = new Tamir.SharpSsh.<span style="color: #00ffff;">SshStream</span>(serverip, username, password);</p>
<p>The server ip does not need a port, it uses standard port 22.</p>
<p><span style="color: #0000ff;">string</span> command = <span style="color: #ff0000;">&#8220;killall -u username&#8221;</span>; <span style="color: #339966;">// could be any command</span><br />
ssh.Write(command);<br />
ssh.ReadResponse();</p>
<p>and when you are done&#8230;</p>
<p>ssh.Close();</p>
<p>To overcome issues with root password prompting you must set the server so that a username does not require a password.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mystalia.net/2008/05/free-and-easy-ssh-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Suppress WMP ActiveX Error &#8220;Bad Image&#8221; in C#</title>
		<link>http://www.mystalia.net/2008/05/suppress-wmp-activex-error-bad-image-in-c/</link>
		<comments>http://www.mystalia.net/2008/05/suppress-wmp-activex-error-bad-image-in-c/#comments</comments>
		<pubDate>Mon, 26 May 2008 21:16:28 +0000</pubDate>
		<dc:creator>Mystalia</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[bad image]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[vista]]></category>
		<category><![CDATA[windows media player]]></category>

		<guid isPermaLink="false">http://www.mystalia.net/?p=11</guid>
		<description><![CDATA[For some reason, the Visual Studio debugger suppresses this automatically, but the release does not. It has something to do with DRM signatures, anyway the fix is to open up the entry point in the application (program.cs) and make these changes&#8230; using System; using System.Collections.Generic; using System.Windows.Forms; &#60;span style=&#34;color: #ff0000;&#34;&#62; using System.Runtime.InteropServices;&#60;/span&#62; namespace Program { [...]]]></description>
			<content:encoded><![CDATA[<p>For some reason, the Visual Studio debugger suppresses this automatically, but the release does not.<br />
It has something to do with DRM signatures, anyway the fix is to open up the entry point in the application (program.cs) and make these changes&#8230;</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">using System;<br />
using System.Collections.Generic;<br />
using System.Windows.Forms;<br />
&lt;span style=&quot;color: #ff0000;&quot;&gt; using System.Runtime.InteropServices;&lt;/span&gt;</div></div>
<p>namespace Program<br />
{<br />
<span style="color: #ff0000;"> [Flags]<br />
public enum ErrorModes : uint<br />
{<br />
SYSTEM_DEFAULT = 0&#215;0,<br />
SEM_FAILCRITICALERRORS = 0&#215;0001,<br />
SEM_NOALIGNMENTFAULTEXCEPT = 0&#215;0004,<br />
SEM_NOGPFAULTERRORBOX = 0&#215;0002,<br />
SEM_NOOPENFILEERRORBOX = 0&#215;8000<br />
}</span></p>
<p>static class Program<br />
{<br />
<span style="color: #ff0000;"> // Suppresses &#8220;Bad Image&#8221; error.<br />
[DllImport("kernel32.dll")]<br />
static extern ErrorModes SetErrorMode(ErrorModes uMode);<br />
[DllImport("kernel32.dll")]<br />
static extern ErrorModes GetErrorMode();</span><br />
///<br />
/// The main entry point for the application.<br />
///<br />
[STAThread]<br />
static void Main(string[] Args)<br />
{<br />
<span style="color: #ff0000;"> SetErrorMode(ErrorModes.SEM_FAILCRITICALERRORS);</span><br />
Application.EnableVisualStyles();<br />
Application.SetCompatibleTextRenderingDefault(false);<br />
Application.Run(new Form1(Args));<br />
}<br />
}<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mystalia.net/2008/05/suppress-wmp-activex-error-bad-image-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Human Readable Filesizes in C#</title>
		<link>http://www.mystalia.net/2008/05/human-readable-filesizes-in-c/</link>
		<comments>http://www.mystalia.net/2008/05/human-readable-filesizes-in-c/#comments</comments>
		<pubDate>Mon, 12 May 2008 00:12:32 +0000</pubDate>
		<dc:creator>Mystalia</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[bytes]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[csharp]]></category>
		<category><![CDATA[filesize]]></category>
		<category><![CDATA[human]]></category>
		<category><![CDATA[method]]></category>
		<category><![CDATA[readable]]></category>

		<guid isPermaLink="false">http://www.mystalia.net/?p=5</guid>
		<description><![CDATA[Apparently this proved a challenge for google, so I converted and simplified some PHP code I found. This method will turn any byte into a human readable string, handy when dealing with files. public string ConvertBytes(long Bytes) { &#160; string[] units = new string[] { &#34;Bytes&#34;, &#34;KB&#34;, &#34;MB&#34;, &#34;GB&#34;, &#34;TB&#34;, &#34;PB&#34; }; &#160; int i; [...]]]></description>
			<content:encoded><![CDATA[<p>Apparently this proved a challenge for google, so I converted and simplified some PHP code I found.<br />
This method will turn any byte into a human readable string, handy when dealing with files.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">public string ConvertBytes(long Bytes)<br />
{<br />
&nbsp; string[] units = new string[] { &quot;Bytes&quot;, &quot;KB&quot;, &quot;MB&quot;, &quot;GB&quot;, &quot;TB&quot;, &quot;PB&quot; };<br />
&nbsp; int i;<br />
&nbsp; for (i = 0; Bytes &gt; 1024; i++) { Bytes /= 1024; }<br />
&nbsp; return Bytes.ToString() + &quot; &quot; + units[i];<br />
}</div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.mystalia.net/2008/05/human-readable-filesizes-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
