document.write('<div class="c" style="font-family: monospace;"><br />');
document.write('<span style="color: #808080; font-style: italic;">// Place the following code into the</span><br />');
document.write('<span style="color: #808080; font-style: italic;">// #region Windows Form Designer generated code</span><br />');
document.write('<br />');
document.write('this.<span style="color: #202020;">txtEnter</span>.<span style="color: #202020;">KeyDown</span> += new KeyEventHandler<span style="color: #66cc66;">&#40;</span>txtEnter_KeyDown<span style="color: #66cc66;">&#41;</span>;<br />');
document.write('<br />');
document.write('<br />');
document.write('<span style="color: #808080; font-style: italic;">// Place the following function where ever the </span><br />');
document.write('<span style="color: #808080; font-style: italic;">// #region Windows Form Designer generated code</span><br />');
document.write('<span style="color: #808080; font-style: italic;">// is located or you can move it elsewhere if you like, </span><br />');
document.write('<span style="color: #808080; font-style: italic;">// but you will then need to make it public.</span><br />');
document.write('<br />');
document.write('private <span style="color: #993333;">void</span> txtEnter_KeyDown<span style="color: #66cc66;">&#40;</span>object sender, System.<span style="color: #202020;">Windows</span>.<span style="color: #202020;">Forms</span>.<span style="color: #202020;">KeyEventArgs</span> e<span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />');
document.write('<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>e.<span style="color: #202020;">KeyCode</span> == Keys.<span style="color: #202020;">Enter</span><span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">// Your code here.</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />');
document.write('&nbsp;</div>');
document.write('<br />&nbsp;<br /><div style="font-size: 12px">Brought to you by the community at <a href="http://www.bytemycode.com/snippets/snippet/402/1/" target="_blank">byteMyCode</a>.</div>');
