<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-731722776229922433</id><updated>2012-02-16T14:20:19.988+08:00</updated><category term='contest'/><category term='FizzBuzz'/><category term='TV'/><category term='mysql'/><category term='Technology'/><category term='Office'/><category term='Fizz'/><category term='IT'/><category term='Review'/><category term='VB.NET'/><category term='Tutorial'/><category term='Management'/><category term='VB'/><category term='blog'/><category term='Programming'/><category term='array'/><category term='ASP.NET'/><category term='C#'/><category term='Code'/><category term='SEO'/><category term='Direct Memory Access'/><category term='Organization'/><category term='Generate'/><category term='INI'/><category term='HTML'/><category term='Win32'/><category term='Software'/><category term='Visual C++'/><category term='Buzz'/><category term='c++'/><category term='News'/><category term='Automation'/><title type='text'>The Code Crunchers</title><subtitle type='html'>Welcome Coders!</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://kodekruncher.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://kodekruncher.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>zoul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://i14.tinypic.com/5x4a0kp.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>35</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-731722776229922433.post-6767595640699902710</id><published>2010-01-16T16:54:00.003+08:00</published><updated>2010-01-24T14:11:24.184+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FizzBuzz'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='Buzz'/><category scheme='http://www.blogger.com/atom/ns#' term='Fizz'/><title type='text'>My Fizz Buzz Solution</title><content type='html'>&lt;b&gt;&lt;u&gt;My Fizz Buzz Solution&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Solution 1: Using &lt;b&gt;Ternary&lt;/b&gt; Operator&lt;br /&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color='Blue'&gt;for&lt;/font&gt;&amp;nbsp;(&lt;font color='Blue'&gt;int&lt;/font&gt;&amp;nbsp;i&amp;nbsp;=&amp;nbsp;&lt;font color='Maroon'&gt;1&lt;/font&gt;;&amp;nbsp;i&amp;nbsp;&amp;lt;&amp;nbsp;&lt;font color='Maroon'&gt;101&lt;/font&gt;;&amp;nbsp;i++) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{ &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color='Blue'&gt;string&lt;/font&gt;&amp;nbsp;result&amp;nbsp;=&amp;nbsp;&lt;font color='Maroon'&gt;""&lt;/font&gt;; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;result&amp;nbsp;=&amp;nbsp;i&amp;nbsp;%&amp;nbsp;&lt;font color='Maroon'&gt;3&lt;/font&gt;&amp;nbsp;==&amp;nbsp;&lt;font color='Maroon'&gt;0&lt;/font&gt;&amp;nbsp;?&amp;nbsp;&lt;font color='Maroon'&gt;"Fizz"&lt;/font&gt;&amp;nbsp;:&amp;nbsp;&lt;font color='Maroon'&gt;""&lt;/font&gt;;&amp;nbsp;&lt;font color='Green'&gt;//&amp;nbsp;check&amp;nbsp;if&amp;nbsp;i&amp;nbsp;is&amp;nbsp;divisible&amp;nbsp;by&amp;nbsp;3&lt;/font&gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;result&amp;nbsp;+=&amp;nbsp;i&amp;nbsp;%&amp;nbsp;&lt;font color='Maroon'&gt;5&lt;/font&gt;&amp;nbsp;==&amp;nbsp;&lt;font color='Maroon'&gt;0&lt;/font&gt;&amp;nbsp;?&amp;nbsp;&lt;font color='Maroon'&gt;"Buzz"&lt;/font&gt;&amp;nbsp;:&amp;nbsp;&lt;font color='Maroon'&gt;""&lt;/font&gt;;&lt;font color='Green'&gt;//&amp;nbsp;check&amp;nbsp;if&amp;nbsp;i&amp;nbsp;is&amp;nbsp;divisible&amp;nbsp;by&amp;nbsp;5&lt;/font&gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;font color='Maroon'&gt;"\n"&lt;/font&gt;&amp;nbsp;+&amp;nbsp;i.ToString()&amp;nbsp;+&amp;nbsp;&lt;font color='Maroon'&gt;"&amp;nbsp;-&amp;nbsp;"&lt;/font&gt;&amp;nbsp;+&amp;nbsp;result); &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;br /&gt;Solution 2: Using &lt;b&gt;IF&lt;/b&gt; Operator &lt;br /&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color='Blue'&gt;for&lt;/font&gt;&amp;nbsp;(&lt;font color='Blue'&gt;int&lt;/font&gt;&amp;nbsp;i&amp;nbsp;=&amp;nbsp;&lt;font color='Maroon'&gt;1&lt;/font&gt;;&amp;nbsp;i&amp;nbsp;&amp;lt;&amp;nbsp;&lt;font color='Maroon'&gt;101&lt;/font&gt;;&amp;nbsp;i++) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{ &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color='Blue'&gt;string&lt;/font&gt;&amp;nbsp;result&amp;nbsp;=&amp;nbsp;&lt;font color='Maroon'&gt;""&lt;/font&gt;; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color='Blue'&gt;if&lt;/font&gt;&amp;nbsp;(i&amp;nbsp;%&amp;nbsp;&lt;font color='Maroon'&gt;3&lt;/font&gt;&amp;nbsp;==&amp;nbsp;&lt;font color='Maroon'&gt;0&lt;/font&gt;)&amp;nbsp;&lt;font color='Green'&gt;//&amp;nbsp;check&amp;nbsp;if&amp;nbsp;i&amp;nbsp;is&amp;nbsp;divisible&amp;nbsp;by&amp;nbsp;3&lt;/font&gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{ &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color='Green'&gt;//give&amp;nbsp;result&amp;nbsp;the&amp;nbsp;value&amp;nbsp;fizz&lt;/font&gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;result&amp;nbsp;=&amp;nbsp;&lt;font color='Maroon'&gt;"Fizz"&lt;/font&gt;;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color='Blue'&gt;if&lt;/font&gt;&amp;nbsp;(i&amp;nbsp;%&amp;nbsp;&lt;font color='Maroon'&gt;5&lt;/font&gt;&amp;nbsp;==&amp;nbsp;&lt;font color='Maroon'&gt;0&lt;/font&gt;)&amp;nbsp;&lt;font color='Green'&gt;//&amp;nbsp;check&amp;nbsp;if&amp;nbsp;i&amp;nbsp;is&amp;nbsp;divisible&amp;nbsp;by&amp;nbsp;5&lt;/font&gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{ &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color='Green'&gt;//gets&amp;nbsp;the&amp;nbsp;value&amp;nbsp;of&amp;nbsp;result&amp;nbsp;and&amp;nbsp;add&amp;nbsp;to&amp;nbsp;the&amp;nbsp;buzz&amp;nbsp;value&amp;nbsp;giving&amp;nbsp;an&amp;nbsp;output&amp;nbsp;of&amp;nbsp;fizz&amp;nbsp;or&amp;nbsp;fizzbuzz&lt;/font&gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;result&amp;nbsp;+=&amp;nbsp;&lt;font color='Maroon'&gt;"Buzz"&lt;/font&gt;;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color='Green'&gt;//show&amp;nbsp;result;&lt;/font&gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.Write(&lt;font color='Maroon'&gt;"&amp;nbsp;\n"&lt;/font&gt;&amp;nbsp;+&amp;nbsp;i.ToString()&amp;nbsp;+&amp;nbsp;&lt;font color='Maroon'&gt;"&amp;nbsp;-&amp;nbsp;"&lt;/font&gt;&amp;nbsp;+&amp;nbsp;result); &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;a href="http://www.text-link-ads.com/starter_kit.php?ref=42224"&gt;Earn $100 for just a signup!&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/731722776229922433-6767595640699902710?l=kodekruncher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodekruncher.blogspot.com/feeds/6767595640699902710/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=731722776229922433&amp;postID=6767595640699902710' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/6767595640699902710'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/6767595640699902710'/><link rel='alternate' type='text/html' href='http://kodekruncher.blogspot.com/2010/01/my-fizz-buzz-solution.html' title='My Fizz Buzz Solution'/><author><name>zoul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://i14.tinypic.com/5x4a0kp.jpg'/></author><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-731722776229922433.post-1877238878765800246</id><published>2009-07-19T22:14:00.001+08:00</published><updated>2009-07-19T22:17:00.444+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Fabonacci Function c#</title><content type='html'>&lt;table cellpadding="2" width="100%" border="0" cellspacing="2"&gt;&lt;br /&gt;&lt;tbody&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td style="FONT-FAMILY: tahoma, arial, Helvetica, sans-serif" valign="top"&gt;&lt;br /&gt;&lt;pre style="FONT-FAMILY: Helvetica, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 13px; TEXT-DECORATION: none"&gt;&lt;br /&gt;1.&lt;br /&gt;2.&lt;br /&gt;3.&lt;br /&gt;4.&lt;br /&gt;5.&lt;br /&gt;6.&lt;br /&gt;7.&lt;br /&gt;8.&lt;br /&gt;9.&lt;br /&gt;10.&lt;br /&gt;11.&lt;br /&gt;12.&lt;br /&gt;13.&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;br /&gt;&lt;td width="100%" style="FONT-FAMILY: tahoma, arial, Helvetica, sans-serif" valign="top"&gt;&lt;br /&gt;&lt;pre style="FONT-FAMILY: Helvetica, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 13px; TEXT-DECORATION: none"&gt;&lt;br /&gt;&lt;code&gt;&lt;span style="COLOR: #0000ff"&gt;static&lt;/span&gt; &lt;span style="COLOR: #0000ff"&gt;void&lt;/span&gt; fibonacci(&lt;span style="COLOR: #0000ff"&gt;int&lt;/span&gt; x)&lt;br /&gt;{&lt;br /&gt;        &lt;span style="COLOR: #0000ff"&gt;int&lt;/span&gt; y = 0, z = 1, total;&lt;br /&gt;&lt;br /&gt;        &lt;span style="COLOR: #0000ff"&gt;for&lt;/span&gt; (&lt;span style="COLOR: #0000ff"&gt;int&lt;/span&gt; i = 0; i &amp;lt; x; i++)&lt;br /&gt;        {&lt;br /&gt;                total = y + z;&lt;br /&gt;                Console.WriteLine(total);&lt;br /&gt;                y = z;&lt;br /&gt;                z = total;&lt;br /&gt;&lt;br /&gt;        }&lt;br /&gt;}&lt;/code&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;/tbody&gt;&lt;br /&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;a href="http://www.text-link-ads.com/starter_kit.php?ref=42224"&gt;Earn $100 for just a signup!&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/731722776229922433-1877238878765800246?l=kodekruncher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodekruncher.blogspot.com/feeds/1877238878765800246/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=731722776229922433&amp;postID=1877238878765800246' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/1877238878765800246'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/1877238878765800246'/><link rel='alternate' type='text/html' href='http://kodekruncher.blogspot.com/2009/07/fabonacci-function-c.html' title='Fabonacci Function c#'/><author><name>zoul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://i14.tinypic.com/5x4a0kp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-731722776229922433.post-6620957613792479793</id><published>2009-06-23T00:43:00.000+08:00</published><updated>2009-06-23T00:43:41.984+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Prevent a Class to be inherited C#</title><content type='html'>The &lt;u&gt;&lt;b&gt;sealed&lt;/b&gt;&lt;/u&gt; can be used to prevent a class to be inherited. &lt;br /&gt;&lt;br /&gt;sample:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sealed class FileClass&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sealed FileClass(string filepath)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Filepath = filepath;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private string _filepath;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public string Filepath&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; get { return _filepath;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set { _filepath = Filepath; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;div class="blogger-post-footer"&gt;&lt;a href="http://www.text-link-ads.com/starter_kit.php?ref=42224"&gt;Earn $100 for just a signup!&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/731722776229922433-6620957613792479793?l=kodekruncher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodekruncher.blogspot.com/feeds/6620957613792479793/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=731722776229922433&amp;postID=6620957613792479793' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/6620957613792479793'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/6620957613792479793'/><link rel='alternate' type='text/html' href='http://kodekruncher.blogspot.com/2009/06/prevent-class-to-be-inherited-c.html' title='Prevent a Class to be inherited C#'/><author><name>zoul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://i14.tinypic.com/5x4a0kp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-731722776229922433.post-5173597679523438368</id><published>2009-04-16T23:22:00.001+08:00</published><updated>2009-04-16T23:22:11.839+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Display All Server Files in Server using C# and ASP.NET</title><content type='html'>&lt;p&gt;&lt;span style="FONT-SIZE: 0.75em; COLOR: #2b91af"&gt;&lt;span style="FONT-SIZE: 0.75em; COLOR: #2b91af"&gt;DirectoryInfo&lt;/span&gt;&lt;/span&gt; &lt;span style="FONT-SIZE: 0.75em"&gt;di =&lt;/span&gt; &lt;span style="FONT-SIZE: 0.75em; COLOR: #0000ff"&gt;&lt;span style="FONT-SIZE: 0.75em; COLOR: #0000ff"&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 0.75em; COLOR: #2b91af"&gt;&lt;span style="FONT-SIZE: 0.75em; COLOR: #2b91af"&gt;DirectoryInfo&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 0.75em"&gt;(Server.MapPath(&lt;/span&gt;&lt;span style="FONT-SIZE: 0.75em; COLOR: #a31515"&gt;&lt;span style="FONT-SIZE: 0.75em; COLOR: #a31515"&gt;"/"&lt;/span&gt;&lt;/span&gt;&lt;font size="2"&gt;));&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font color="#2B91AF" size="2"&gt;&lt;font color="#2B91AF" size="2"&gt;FileInfo&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;[] fi = di.GetFiles();&lt;/font&gt;&lt;/p&gt; &lt;p&gt;fi = di.GetFiles(&lt;font color="#A31515" size="2"&gt;&lt;font color="#A31515" size="2"&gt;"*.*"&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font color="#0000FF" size="2"&gt;&lt;font color="#0000FF" size="2"&gt;foreach&lt;/font&gt;&lt;/font&gt; &lt;font size="2"&gt;(&lt;/font&gt;&lt;font color="#2B91AF" size="2"&gt;&lt;font color="#2B91AF" size="2"&gt;FileInfo&lt;/font&gt;&lt;/font&gt; &lt;font size="2"&gt;fi1&lt;/font&gt; &lt;font color="#0000FF" size="2"&gt;&lt;font color="#0000FF" size="2"&gt;in&lt;/font&gt;&lt;/font&gt; &lt;font size="2"&gt;di.GetFiles())&lt;/font&gt;&lt;/p&gt; &lt;p&gt;{&lt;/p&gt; &lt;p&gt;Response.Write( fi1.FullName.ToString());&lt;/p&gt; &lt;p&gt;Response.Write(&lt;font color="#A31515" size="2"&gt;&lt;font color="#A31515" size="2"&gt;"&amp;lt;br /&amp;gt;"&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/p&gt; &lt;p&gt;}&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;a href="http://www.text-link-ads.com/starter_kit.php?ref=42224"&gt;Earn $100 for just a signup!&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/731722776229922433-5173597679523438368?l=kodekruncher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodekruncher.blogspot.com/feeds/5173597679523438368/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=731722776229922433&amp;postID=5173597679523438368' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/5173597679523438368'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/5173597679523438368'/><link rel='alternate' type='text/html' href='http://kodekruncher.blogspot.com/2009/04/display-all-server-files-in-server.html' title='Display All Server Files in Server using C# and ASP.NET'/><author><name>zoul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://i14.tinypic.com/5x4a0kp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-731722776229922433.post-7707883856166087161</id><published>2009-04-08T19:06:00.000+08:00</published><updated>2009-04-08T19:07:06.820+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Cross-Page Posting ASP .NET</title><content type='html'>&lt;p&gt;Make 2 forms name it page1.aspx and page2.aspx&lt;/p&gt; &lt;p&gt;on page1.aspx:&lt;/p&gt; &lt;p&gt;Add a TextBox and Button Control&lt;/p&gt; &lt;p&gt;Go to the Button Control Properties and set the PostbackUrl = "~/page2.aspx"&lt;/p&gt; &lt;p&gt;on Page2.aspx:&lt;/p&gt; &lt;p&gt;Add a Label Control and on the Page_Load Event add this following code.&lt;/p&gt; &lt;blockquote style="MARGIN-RIGHT: 0px" dir="ltr"&gt; &lt;p&gt;&lt;span style="FONT-SIZE: 0.75em; COLOR: #0000ff"&gt;&lt;font color="#0000FF" size="2"&gt;protected&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 0.75em; COLOR: #0000ff"&gt;&lt;font color="#0000FF" size="2"&gt;void&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 0.75em"&gt;Page_Load(&lt;/span&gt;&lt;span style="FONT-SIZE: 0.75em; COLOR: #0000ff"&gt;&lt;font color="#0000FF" size="2"&gt;object&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 0.75em"&gt;sender,&lt;/span&gt; &lt;span style="FONT-SIZE: 0.75em; COLOR: #2b91af"&gt;&lt;font color="#2B91AF" size="2"&gt;EventArgs&lt;/font&gt;&lt;/span&gt; &lt;font size="2"&gt;e)&lt;/font&gt;&lt;/p&gt; &lt;p&gt;{&lt;/p&gt; &lt;p&gt;&lt;font color="#0000FF" size="2"&gt;&lt;font color="#0000FF" size="2"&gt;if&lt;/font&gt;&lt;/font&gt; &lt;font size="2"&gt;(PreviousPage !=&lt;/font&gt; &lt;font color="#0000FF" size="2"&gt;&lt;font color="#0000FF" size="2"&gt;null&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;/p&gt; &lt;p&gt;{&lt;/p&gt; &lt;p&gt;&lt;font color="#0000FF" size="2"&gt;&lt;font color="#0000FF" size="2"&gt;if&lt;/font&gt;&lt;/font&gt; &lt;font size="2"&gt;(PreviousPage.IsCrossPagePostBack ==&lt;/font&gt; &lt;font color="#0000FF" size="2"&gt;&lt;font color="#0000FF" size="2"&gt;true&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;/p&gt; &lt;p&gt;{&lt;/p&gt; &lt;p&gt;Label1.Text = &lt;font color="#A31515" size="2"&gt;&lt;font color="#A31515" size="2"&gt;"Cross-page post."&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font color="#2B91AF" size="2"&gt;&lt;font color="#2B91AF" size="2"&gt;TextBox&lt;/font&gt;&lt;/font&gt; &lt;font size="2"&gt;tb = (&lt;/font&gt;&lt;font color="#2B91AF" size="2"&gt;&lt;font color="#2B91AF" size="2"&gt;TextBox&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)PreviousPage.FindControl(&lt;/font&gt;&lt;font color="#A31515" size="2"&gt;&lt;font color="#A31515" size="2"&gt;"TextBox1"&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font color="#0000FF" size="2"&gt;&lt;font color="#0000FF" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Title = tb.Text;&lt;/font&gt;&lt;/p&gt; &lt;p&gt;}&lt;/p&gt; &lt;p&gt;}&lt;/p&gt; &lt;p&gt;&lt;font color="#0000FF" size="2"&gt;&lt;font color="#0000FF" size="2"&gt;else&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/p&gt; &lt;p&gt;Label1.Text = &lt;font color="#A31515" size="2"&gt;&lt;font color="#A31515" size="2"&gt;"You are not allowed to access this page!"&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/p&gt; &lt;p&gt;}&lt;/p&gt; &lt;p&gt;}&lt;/p&gt; &lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;a href="http://www.text-link-ads.com/starter_kit.php?ref=42224"&gt;Earn $100 for just a signup!&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/731722776229922433-7707883856166087161?l=kodekruncher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodekruncher.blogspot.com/feeds/7707883856166087161/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=731722776229922433&amp;postID=7707883856166087161' title='19 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/7707883856166087161'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/7707883856166087161'/><link rel='alternate' type='text/html' href='http://kodekruncher.blogspot.com/2009/04/cross-page-posting-asp-net.html' title='Cross-Page Posting ASP .NET'/><author><name>zoul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://i14.tinypic.com/5x4a0kp.jpg'/></author><thr:total>19</thr:total></entry><entry><id>tag:blogger.com,1999:blog-731722776229922433.post-6131472488637173924</id><published>2008-11-03T23:40:00.003+08:00</published><updated>2008-11-04T00:03:27.336+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Prevent Multiple Click on Saving in ASP.NET</title><content type='html'>This a very simple task all you have to do is just disable the Save button used in saving the data..&lt;br /&gt;&lt;br /&gt;protected void saveButton_Click(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;//to prevent multiple click disable the button&lt;br /&gt;saveButton.Enabled = false;&lt;br /&gt;//-------------------&lt;br /&gt;//Put code to save data&lt;br /&gt;//------------------&lt;br /&gt;//Data is no save so its now okay to enable the button&lt;br /&gt;saveButton.Enabled = true;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;a href="http://www.text-link-ads.com/starter_kit.php?ref=42224"&gt;Earn $100 for just a signup!&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/731722776229922433-6131472488637173924?l=kodekruncher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodekruncher.blogspot.com/feeds/6131472488637173924/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=731722776229922433&amp;postID=6131472488637173924' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/6131472488637173924'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/6131472488637173924'/><link rel='alternate' type='text/html' href='http://kodekruncher.blogspot.com/2008/11/prevent-multiple-click-on-saving-in.html' title='Prevent Multiple Click on Saving in ASP.NET'/><author><name>zoul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://i14.tinypic.com/5x4a0kp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-731722776229922433.post-4529553862635350037</id><published>2008-10-11T20:57:00.001+08:00</published><updated>2008-10-11T20:57:19.079+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>How to ADD and USE Master Page in ASP.NET</title><content type='html'>&lt;p&gt;Step 1: &lt;br/&gt;&lt;img src="http://lh3.ggpht.com/zoul1380/SPCioCFu0fI/AAAAAAAABUA/zJWd9URpehU/zrclip_003p707129cb.png?imgmax=512" height="333" width="512"/&gt; &lt;br/&gt;Make a new Web Project&lt;/p&gt; &lt;p&gt;Step 2: &lt;br/&gt;&lt;img src="http://lh3.ggpht.com/zoul1380/SPCiotYotsI/AAAAAAAABUE/f1GQ_0UePyw/zrclip_005n652b14da.png?imgmax=288" height="187" width="260"/&gt; &lt;img src="http://lh3.ggpht.com/zoul1380/SPCipV8Bz0I/AAAAAAAABUI/t4cTY8M2pvA/zrclip_006n367da403.png?imgmax=400" height="363" width="334"/&gt; &lt;br/&gt;Click on the Solution Explorer and Add New Item and Select the Master Page&lt;/p&gt; &lt;p&gt;Step 3: &lt;br/&gt;&lt;img src="http://lh5.ggpht.com/zoul1380/SPCiqEhAZdI/AAAAAAAABUM/bn_yF4EbkuQ/zrclip_007nddeaa28.png?imgmax=720" height="330" width="719"/&gt; &lt;br/&gt;Put a content on your Master Page&lt;/p&gt; &lt;p&gt;Step 4: On the script section of the DEFAULT.ASPX put the &lt;span style="FONT-SIZE: 0.75em; COLOR: #ff0000"&gt;&lt;span style="FONT-SIZE: 0.75em; COLOR: #ff0000"&gt;MasterPageFile&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 0.75em; COLOR: #0000ff"&gt;&lt;span style="FONT-SIZE: 0.75em; COLOR: #0000ff"&gt;="~/MasterPage.master"&lt;/span&gt;&lt;/span&gt; tag and delete the html section of the file &lt;br/&gt;&lt;img src="http://lh5.ggpht.com/zoul1380/SPCirRsHTiI/AAAAAAAABUQ/V0c1i41KI6k/zrclip_011na5284dc.png?imgmax=720" height="311" width="684"/&gt;&lt;/p&gt; &lt;p&gt;Now your ready to go...&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;a href="http://www.text-link-ads.com/starter_kit.php?ref=42224"&gt;Earn $100 for just a signup!&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/731722776229922433-4529553862635350037?l=kodekruncher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodekruncher.blogspot.com/feeds/4529553862635350037/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=731722776229922433&amp;postID=4529553862635350037' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/4529553862635350037'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/4529553862635350037'/><link rel='alternate' type='text/html' href='http://kodekruncher.blogspot.com/2008/10/how-to-add-and-use-master-page-in.html' title='How to ADD and USE Master Page in ASP.NET'/><author><name>zoul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://i14.tinypic.com/5x4a0kp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/zoul1380/SPCioCFu0fI/AAAAAAAABUA/zJWd9URpehU/s72-c/zrclip_003p707129cb.png?imgmax=512' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-731722776229922433.post-1089454344369533940</id><published>2008-09-30T20:58:00.001+08:00</published><updated>2008-09-30T20:58:48.649+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='blog'/><category scheme='http://www.blogger.com/atom/ns#' term='contest'/><title type='text'>Calvin's Hub</title><content type='html'>&lt;p style="TEXT-ALIGN: justify"&gt;&lt;img src="http://lh6.ggpht.com/zoul1380/SNuwSafxfhI/AAAAAAAABOU/a0l5uMifiHg/zrclip_001n4e59ae7f.png?imgmax=200" style="DISPLAY: inline; FLOAT: left" height="184" width="200"/&gt;First of all i would like to greet &lt;a href="http://www.calvinshub.com/"&gt;Calvin's Hub&lt;/a&gt; a happy birthday and more traffic to come. In celebration to his first year anniversary Calvin's hub launch it's first contest and it is dubbed as "&lt;a href="http://www.calvinshub.com/2008/09/25/free-domain-name-giveaway-contest/"&gt;Calvin's Hub Domain Name Giveaway Contest&lt;/a&gt;" obviously the winner will get a free domain name and hopefully it comes with a free domain hosting too. :) so if you want to win your own Domain Name join now. oh before i forget please put me as your referral :) ..&lt;/p&gt; &lt;p style="TEXT-ALIGN: justify"&gt;visit : &lt;a href="http://www.calvinshub.com"&gt;www.calvinshub.com&lt;/a&gt;&lt;/p&gt; &lt;p style="TEXT-ALIGN: justify"&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;a href="http://www.text-link-ads.com/starter_kit.php?ref=42224"&gt;Earn $100 for just a signup!&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/731722776229922433-1089454344369533940?l=kodekruncher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodekruncher.blogspot.com/feeds/1089454344369533940/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=731722776229922433&amp;postID=1089454344369533940' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/1089454344369533940'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/1089454344369533940'/><link rel='alternate' type='text/html' href='http://kodekruncher.blogspot.com/2008/09/calvin-hub.html' title='Calvin&amp;#39;s Hub'/><author><name>zoul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://i14.tinypic.com/5x4a0kp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/zoul1380/SNuwSafxfhI/AAAAAAAABOU/a0l5uMifiHg/s72-c/zrclip_001n4e59ae7f.png?imgmax=200' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-731722776229922433.post-9054292153642972336</id><published>2008-06-06T22:51:00.001+08:00</published><updated>2008-06-06T22:51:29.911+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><title type='text'>Backup MySQL Database to a file</title><content type='html'>&lt;p&gt;&lt;strong&gt;Backup MySQL Database to a file&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;img src="http://lh6.ggpht.com/zoul1380/SElO7jO6V8I/AAAAAAAABJw/naZ109hdwsM/zrclip_001p27e5a086.png?imgmax=144" style="DISPLAY: inline; FLOAT: left; MARGIN: 10px; WIDTH: 126px; HEIGHT: 84px" height="84" width="126"/&gt;Backing up your database is a very important system administration task, and should generally be run from a cron job at scheduled intervals. We will use the mysqldump utility included with mysql to dump the contents of the database to a text file that can be easily re-imported.&lt;/p&gt; &lt;p&gt;Syntax:&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;mysqldump -h localhost -u root -pmypassword databasename &amp;gt; dumpfile.sql&lt;/p&gt; &lt;/blockquote&gt; &lt;p&gt;Example:&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;mysqldump -h localhost -u root -p2Uad7as9 database01 &amp;gt; dumpfile.sql&lt;/p&gt; &lt;/blockquote&gt; &lt;p&gt;This will give you a text file containing all the commands required to recreate the database.&lt;/p&gt; &lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;a href="http://www.text-link-ads.com/starter_kit.php?ref=42224"&gt;Earn $100 for just a signup!&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/731722776229922433-9054292153642972336?l=kodekruncher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodekruncher.blogspot.com/feeds/9054292153642972336/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=731722776229922433&amp;postID=9054292153642972336' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/9054292153642972336'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/9054292153642972336'/><link rel='alternate' type='text/html' href='http://kodekruncher.blogspot.com/2008/06/backup-mysql-database-to-file.html' title='Backup MySQL Database to a file'/><author><name>zoul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://i14.tinypic.com/5x4a0kp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/zoul1380/SElO7jO6V8I/AAAAAAAABJw/naZ109hdwsM/s72-c/zrclip_001p27e5a086.png?imgmax=144' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-731722776229922433.post-6166118763198231102</id><published>2008-05-21T02:20:00.001+08:00</published><updated>2008-05-21T02:20:44.587+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SEO'/><title type='text'>Site Keyword Rank</title><content type='html'>&lt;p&gt;&lt;strong&gt;Search Keyword Ranking&lt;/strong&gt; is a SEO Desktop application tool, I made that will automatically check the position of your URL for a specified &lt;strong&gt;Keyword&lt;/strong&gt; on Google.&lt;/p&gt; &lt;p&gt;&lt;img src="http://lh3.ggpht.com/zoul1380/SDMWY7oESvI/AAAAAAAABHk/S38XPxNs6GI/zrclip_008p494b56f1.png?imgmax=512" style="DISPLAY: inline; FLOAT: left; MARGIN: 0px 10px 10px 0px; WIDTH: 291px; HEIGHT: 461px" height="461" width="291"/&gt;&lt;/p&gt; &lt;p&gt;System Requirement:&lt;/p&gt; &lt;p&gt;Windows XP/Vista and .NET Framework 3.5&lt;/p&gt; &lt;p&gt;&lt;a href="http://www.fileden.com/files/2007/5/7/1055718/SKRSetup.zip"&gt;Download Site Keyword Rank&lt;/a&gt; &lt;br/&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;a href="http://www.text-link-ads.com/starter_kit.php?ref=42224"&gt;Earn $100 for just a signup!&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/731722776229922433-6166118763198231102?l=kodekruncher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodekruncher.blogspot.com/feeds/6166118763198231102/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=731722776229922433&amp;postID=6166118763198231102' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/6166118763198231102'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/6166118763198231102'/><link rel='alternate' type='text/html' href='http://kodekruncher.blogspot.com/2008/05/site-keyword-rank.html' title='Site Keyword Rank'/><author><name>zoul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://i14.tinypic.com/5x4a0kp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/zoul1380/SDMWY7oESvI/AAAAAAAABHk/S38XPxNs6GI/s72-c/zrclip_008p494b56f1.png?imgmax=512' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-731722776229922433.post-2747159088731922831</id><published>2008-05-04T22:54:00.002+08:00</published><updated>2008-05-04T22:57:36.178+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Clipboard Monitor + Source</title><content type='html'>&lt;p&gt;Here is a sample program that will monitor your clipboard , as of right now it can only monitor text or images...&lt;/p&gt;Download the Source Code :&lt;a href="http://www.fileden.com/files/2007/5/7/1055718/ClipboardMonitor.rar"&gt;ClipboardMonitor.rar&lt;/a&gt;&lt;br /&gt;&lt;p&gt;Code:&lt;/p&gt;using System;&lt;br /&gt;using System.Collections.Generic;&lt;br /&gt;using System.ComponentModel;&lt;br /&gt;using System.Data;&lt;br /&gt;using System.Drawing;&lt;br /&gt;using System.Linq;&lt;br /&gt;using System.Text;&lt;br /&gt;using System.Windows.Forms;&lt;br /&gt;&lt;br /&gt;namespace WindowsFormsApplication1&lt;br /&gt;{&lt;br /&gt;    public partial class Form1 : Form&lt;br /&gt;    {&lt;br /&gt;       &lt;br /&gt;&lt;br /&gt;        public Form1()&lt;br /&gt;        {&lt;br /&gt;            InitializeComponent();&lt;br /&gt;            timer1.Enabled = true;&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        private void button1_Click(object sender, EventArgs e)&lt;br /&gt;        {&lt;br /&gt;&lt;br /&gt;            this.Close();&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        private void timer1_Tick(object sender, EventArgs e)&lt;br /&gt;        {&lt;br /&gt;            object cbText = "";&lt;br /&gt;            object cbFormat;&lt;br /&gt;            cbFormat = Clipboard.GetDataObject();&lt;br /&gt;             &lt;br /&gt;            if (Clipboard.ContainsText() == true)&lt;br /&gt;            {&lt;br /&gt;                textBox1.Visible = true;&lt;br /&gt;                pictureBox1.Visible = false;&lt;br /&gt;                cbText = Clipboard.GetData(DataFormats.Text);&lt;br /&gt;                textBox1.Text = cbText.ToString();&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            if (Clipboard.ContainsImage() == true)&lt;br /&gt;            {&lt;br /&gt;                Object imgBMP;&lt;br /&gt;                textBox1.Visible = false;&lt;br /&gt;                pictureBox1.Visible = true;&lt;br /&gt;                imgBMP = Clipboard.GetImage();&lt;br /&gt;                pictureBox1.Image =  ( Clipboard.GetImage() );&lt;br /&gt;            }&lt;br /&gt;           &lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;a href="http://www.text-link-ads.com/starter_kit.php?ref=42224"&gt;Earn $100 for just a signup!&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/731722776229922433-2747159088731922831?l=kodekruncher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodekruncher.blogspot.com/feeds/2747159088731922831/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=731722776229922433&amp;postID=2747159088731922831' title='100 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/2747159088731922831'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/2747159088731922831'/><link rel='alternate' type='text/html' href='http://kodekruncher.blogspot.com/2008/05/clipboard-monitor-source.html' title='Clipboard Monitor + Source'/><author><name>zoul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://i14.tinypic.com/5x4a0kp.jpg'/></author><thr:total>100</thr:total></entry><entry><id>tag:blogger.com,1999:blog-731722776229922433.post-7437313295274992984</id><published>2008-04-30T09:46:00.004+08:00</published><updated>2008-04-30T09:54:44.887+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Picture / Image Loader sample in C#</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_47zQs0xAKWc/SBfQhVUGrSI/AAAAAAAAA_c/fPj9kiJ0bTA/s1600-h/pictureViewer.jpg"&gt;&lt;img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer;" src="http://bp0.blogger.com/_47zQs0xAKWc/SBfQhVUGrSI/AAAAAAAAA_c/fPj9kiJ0bTA/s320/pictureViewer.jpg" alt="Screenshot" id="BLOGGER_PHOTO_ID_5194849966270885154" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;[&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;Controls to use&lt;/span&gt;]&lt;br /&gt;PictureBox&lt;br /&gt;Command Button&lt;br /&gt;Dialog Box&lt;br /&gt;Textbox&lt;br /&gt;------------------------------------&lt;br /&gt;[&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;Source Code&lt;/span&gt;]&lt;br /&gt;&lt;br /&gt;using System;&lt;br /&gt;using System.Collections.Generic;&lt;br /&gt;using System.ComponentModel;&lt;br /&gt;using System.Data;&lt;br /&gt;using System.Drawing;&lt;br /&gt;using System.Linq;&lt;br /&gt;using System.Text;&lt;br /&gt;using System.Windows.Forms;&lt;br /&gt;&lt;br /&gt;namespace WindowsFormsApplication1&lt;br /&gt;{&lt;br /&gt;public partial class Form1 : Form&lt;br /&gt;{&lt;br /&gt;   public Form1()&lt;br /&gt;   {&lt;br /&gt;       InitializeComponent();&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   private void button1_Click(object sender, EventArgs e)&lt;br /&gt;   {&lt;br /&gt;&lt;br /&gt;       DialogResult dRslt;&lt;br /&gt;       FileDLG.Filter = "JPEG Picture File(*.JpEg)|*.jpg|Windows Bitmap File(*.BMP)|*.bmp";&lt;br /&gt;       dRslt = FileDLG.ShowDialog();&lt;br /&gt;       textBox1.Text = FileDLG.FileName.ToString ();&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   private void FileDLG_FileOk(object sender, CancelEventArgs e)&lt;br /&gt;   {&lt;br /&gt;       pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;&lt;br /&gt;       pictureBox1.Load(FileDLG.FileName.ToString());&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;a href="http://www.text-link-ads.com/starter_kit.php?ref=42224"&gt;Earn $100 for just a signup!&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/731722776229922433-7437313295274992984?l=kodekruncher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodekruncher.blogspot.com/feeds/7437313295274992984/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=731722776229922433&amp;postID=7437313295274992984' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/7437313295274992984'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/7437313295274992984'/><link rel='alternate' type='text/html' href='http://kodekruncher.blogspot.com/2008/04/picture-image-loader-sample-in-c.html' title='Picture / Image Loader sample in C#'/><author><name>zoul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://i14.tinypic.com/5x4a0kp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp0.blogger.com/_47zQs0xAKWc/SBfQhVUGrSI/AAAAAAAAA_c/fPj9kiJ0bTA/s72-c/pictureViewer.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-731722776229922433.post-8878166816221087179</id><published>2008-04-16T21:05:00.001+08:00</published><updated>2008-04-16T21:15:56.196+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='Automation'/><category scheme='http://www.blogger.com/atom/ns#' term='Office'/><title type='text'>VB.NET Office Automation FAQ</title><content type='html'>&lt;p style="color: rgb(255, 0, 0);"&gt;&lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;I saw this article on a forum, i think it is a very useful article regarding Office Automation&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;This FAQ 101 is a listing of handy links for getting started with .NET Automation/Interoperation of Microsoft Office programs such as Excel, Word, Access or Outlook.&lt;br /&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="font-family:Trebuchet MS;"&gt;The first place to start learning about how to integrate MS Office programs into your .NET application is the tutorial &lt;a href="http://www.xtremevbtalk.com/showthread.php?t=160433" target="_blank"&gt;Automating Office Programs with VB.NET&lt;/a&gt;. It discusses what you need to know to get started, as well as addressing some of the difficulties with .NET Automation such as execution speed and deployment issues. If you are new to .NET Interoperation/Automation, then this link is a good place for you to begin.&lt;br /&gt;&lt;br /&gt;For articles on how to fully utilize the Excel object model, Word, and Outlook please check out the following links:&lt;br /&gt;&lt;br /&gt;(1) &lt;a href="http://msdn2.microsoft.com/en-us/library/aa168292%28office.11%29.aspx" target="_blank"&gt;Understanding the Excel Object Model from a .NET Developer's Perspective&lt;/a&gt;&lt;br /&gt;(2) &lt;a href="http://msdn2.microsoft.com/en-us/library/aa192495%28office.11%29.aspx" target="_blank"&gt;Understanding the Word Object Model from a .NET Developer's Perspective&lt;/a&gt;&lt;br /&gt;(3) &lt;a href="http://www.microeye.com/resources/res_tech_vsnet.htm" target="_blank"&gt;Programming Microsoft Outlook with Visual Studio .NET&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;(We still lack a resource for utilizing the Access object model in .NET, so if someone knows of a good source, please send me a &lt;a href="http://www.xtremevbtalk.com/private.php?do=newpm&amp;amp;userid=50486" target="_blank"&gt;private message&lt;/a&gt; and we will be glad to add it.)&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Some advanced forums on MS Office programming include:&lt;br /&gt;&lt;br /&gt;(1) &lt;a href="http://www.xtremevbtalk.com/forumdisplay.php?f=105" target="_blank"&gt;.NET Office Automation (XVBT)&lt;/a&gt;&lt;br /&gt;(2) &lt;a href="http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=16&amp;amp;SiteID=1" target="_blank"&gt;Visual Studio Tools for Office Forum (MSDN)&lt;/a&gt;&lt;br /&gt;(3) &lt;a href="http://msdn.microsoft.com/newsgroups/default.aspx?dg=microsoft.public.office.developer.com.add_ins&amp;amp;lang=en&amp;amp;cr=US" target="_blank"&gt;COM Add-ins Forum (MSDN)&lt;/a&gt;&lt;br /&gt;(4) &lt;a href="http://www.dotnetforums.net/forumdisplay.php?f=59" target="_blank"&gt;Interoperation / Office Integration (XDNT)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Microsoft Office Programs are still COM ActiveX Servers, so the best help regarding specific commands or techniques can be often found in the VBA Forums. If your question is .NET-specific, please place your question in the &lt;a href="http://www.xtremevbtalk.com/forumdisplay.php?f=105" target="_blank"&gt;.NET Office Automation forum&lt;/a&gt;. But if your question regards the Microsoft Office object model, as called from VBA or Visual Basic 6.0, then the following VBA/VB6 Office Integration forums can be your best bet:&lt;br /&gt;&lt;br /&gt;(1) &lt;a href="http://www.xtremevbtalk.com/forumdisplay.php?f=14" target="_blank"&gt;VBA / Office Integration forum (XVBT)&lt;/a&gt;&lt;br /&gt;(2) &lt;a href="http://www.xtremevbtalk.com/forumdisplay.php?f=78" target="_blank"&gt;Excel VBA forum (XVBT)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;For some general articles regarding MS Office Interoperation from your .NET application, see the following links:&lt;br /&gt;&lt;br /&gt;(1) &lt;a href="http://www.xtremevbtalk.com/showthread.php?t=160433" target="_blank"&gt;Automating Office Programs with VB.NET&lt;/a&gt;&lt;br /&gt;(2) &lt;a href="http://msdn2.microsoft.com/en-us/library/aa201305%28office.11%29.aspx" target="_blank"&gt;Creating Office Managed COM Add-Ins with Visual Studio .NET&lt;/a&gt;&lt;br /&gt;(3) &lt;a href="http://support.microsoft.com/?kbid=306682" target="_blank"&gt;HOWTO: Run Office Macros by Using Automation from Visual Basic&lt;/a&gt;&lt;br /&gt;(4) &lt;a href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;311452" target="_blank"&gt;Develop Microsoft Office Solutions with Visual Studio .NET&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;For articles dealing with execution or deployment issues and problems:&lt;br /&gt;&lt;br /&gt;(1) &lt;a href="http://support.microsoft.com/?kbid=317109" target="_blank"&gt;Office Application Does Not Quit After Automation from VS.NET Client&lt;/a&gt;&lt;br /&gt;(2) &lt;a href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;328912" target="_blank"&gt;Microsoft Office XP PIAs Are Available for Download&lt;/a&gt;&lt;br /&gt;(3) &lt;a href="http://msdn2.microsoft.com/en-us/library/aa163989%28office.10%29.aspx" target="_blank"&gt;Office XP Primary Interop Assemblies Known Issues&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;a href="http://www.text-link-ads.com/starter_kit.php?ref=42224"&gt;Earn $100 for just a signup!&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/731722776229922433-8878166816221087179?l=kodekruncher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodekruncher.blogspot.com/feeds/8878166816221087179/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=731722776229922433&amp;postID=8878166816221087179' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/8878166816221087179'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/8878166816221087179'/><link rel='alternate' type='text/html' href='http://kodekruncher.blogspot.com/2008/04/vbnet-office-automation-faq.html' title='VB.NET Office Automation FAQ'/><author><name>zoul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://i14.tinypic.com/5x4a0kp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-731722776229922433.post-5483571790217878470</id><published>2007-12-09T19:46:00.000+08:00</published><updated>2007-12-09T19:47:10.643+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Code'/><title type='text'>Add Google Search Code on your Website</title><content type='html'>&lt;br /&gt;&lt;p&gt;Add Google Search in your Website&lt;br/&gt;&lt;span style="COLOR: #ff0000"&gt;&lt;span style="FONT-SIZE: small"&gt;&lt;span style="FONT-SIZE: x-small; COLOR: #ff0000"&gt;Just Copy &amp;amp; Paste the code below on your Site&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;textarea style="WIDTH: 402px; HEIGHT: 209px" rows="11" cols="43"&gt;&lt;br /&gt;&amp;lt;!-- Google CSE Search Box Begins  --&amp;gt;&lt;br /&gt;  &amp;lt;form id="searchbox_009710580702655398188:nkjkxwwxopk" action="http://www.google.com/cse"&amp;gt;&lt;br /&gt;    &amp;lt;input value="009710580702655398188:nkjkxwwxopk" name="cx" type="hidden"/&amp;gt;&lt;br /&gt;    &amp;lt;input value="FORID:1" name="cof" type="hidden"/&amp;gt;&lt;br /&gt;    &amp;lt;input name="q" size="45" type="text"/&amp;gt;&lt;br /&gt;    &amp;lt;input value="Search" name="sa" type="submit"/&amp;gt;&lt;br /&gt;  &amp;lt;/form&amp;gt;&lt;br /&gt;  &amp;lt;script src="http://www.google.com/coop/cse/brand?form=searchbox_009710580702655398188%3Ankjkxwwxopk" type="text/javascript"&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;!-- Google CSE Search Box Ends --&amp;gt;&lt;br /&gt;&lt;/textarea&gt;&lt;/p&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;a href="http://www.text-link-ads.com/starter_kit.php?ref=42224"&gt;Earn $100 for just a signup!&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/731722776229922433-5483571790217878470?l=kodekruncher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodekruncher.blogspot.com/feeds/5483571790217878470/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=731722776229922433&amp;postID=5483571790217878470' title='54 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/5483571790217878470'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/5483571790217878470'/><link rel='alternate' type='text/html' href='http://kodekruncher.blogspot.com/2007/12/add-google-search-code-on-your-website.html' title='Add Google Search Code on your Website'/><author><name>zoul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://i14.tinypic.com/5x4a0kp.jpg'/></author><thr:total>54</thr:total></entry><entry><id>tag:blogger.com,1999:blog-731722776229922433.post-3737277756514975562</id><published>2007-12-07T11:11:00.000+08:00</published><updated>2007-12-07T11:12:04.126+08:00</updated><title type='text'>Basic SQL Part 1</title><content type='html'>&lt;p class="mobile-photo"&gt;&lt;a href="http://bp3.blogger.com/_47zQs0xAKWc/R1i6BPr9THI/AAAAAAAAAvU/3EicvQ-VtfI/s1600-h/s-724129.jpg"&gt;&lt;img src="http://bp3.blogger.com/_47zQs0xAKWc/R1i6BPr9THI/AAAAAAAAAvU/3EicvQ-VtfI/s320/s-724129.jpg"  border="0" alt="" id="BLOGGER_PHOTO_ID_5141063505196960882" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;DIV&gt;&lt;FONT face="Trebuchet MS" size=2&gt;&lt;SPAN class=234073702-07122007&gt;&lt;U&gt;Select  Statement&lt;/U&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT face="Trebuchet MS" size=2&gt;&lt;SPAN  class=234073702-07122007&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT face="Trebuchet MS" color=#ff0000 size=1&gt;&lt;SPAN  class=234073702-07122007&gt;Sample Statement&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT face="Trebuchet MS" color=#ff0000 size=1&gt;&lt;SPAN  class=234073702-07122007&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="Trebuchet MS" size=2&gt;&lt;SPAN  class=234073702-07122007&gt;Select&amp;nbsp;* From Receipt&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT face="Trebuchet MS" size=2&gt;&lt;SPAN  class=234073702-07122007&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT face="Trebuchet MS" size=2&gt;&lt;SPAN class=234073702-07122007&gt;* =  Wildcard or to Display all the Field in a Table&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT face="Trebuchet MS" size=2&gt;&lt;SPAN class=234073702-07122007&gt;Receipt =  Name of the Table.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT face="Trebuchet MS" size=2&gt;&lt;SPAN  class=234073702-07122007&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT face="Trebuchet MS" color=#ff0000 size=1&gt;&lt;SPAN  class=234073702-07122007&gt;&lt;SPAN class=234073702-07122007&gt;Sample  OutPut&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT face="Trebuchet MS" color=#ff0000 size=1&gt;&lt;SPAN  class=234073702-07122007&gt;&lt;SPAN class=234073702-07122007&gt;&lt;SPAN  class=234073702-07122007&gt;&lt;IMG alt="" hspace=0 src="cid:234073702@07122007-1C03"  align=baseline border=0&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV&gt; IMPORTANT NOTICE: &lt;BR&gt; The information in this email (and any attachments) is confidential. If you are not the intended recipient, you must not use or disseminate the information. If you have received this email in error, please immediately notify me by &amp;quot;Reply&amp;quot; command and permanently delete the original and any copies or printouts thereof.  Although this email and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by American International Group, Inc. or its subsidiaries or affiliates either jointly or severally, for any loss or damage arising in any way from its use.&lt;BR&gt; &lt;/DIV&gt;&lt;div class="blogger-post-footer"&gt;&lt;a href="http://www.text-link-ads.com/starter_kit.php?ref=42224"&gt;Earn $100 for just a signup!&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/731722776229922433-3737277756514975562?l=kodekruncher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodekruncher.blogspot.com/feeds/3737277756514975562/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=731722776229922433&amp;postID=3737277756514975562' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/3737277756514975562'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/3737277756514975562'/><link rel='alternate' type='text/html' href='http://kodekruncher.blogspot.com/2007/12/basic-sql-part-1_07.html' title='Basic SQL Part 1'/><author><name>zoul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://i14.tinypic.com/5x4a0kp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp3.blogger.com/_47zQs0xAKWc/R1i6BPr9THI/AAAAAAAAAvU/3EicvQ-VtfI/s72-c/s-724129.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-731722776229922433.post-3865217248818183066</id><published>2007-12-07T10:59:00.001+08:00</published><updated>2007-12-07T10:59:36.367+08:00</updated><title type='text'>Basic SQL Part 1</title><content type='html'>&lt;p class="mobile-photo"&gt;&lt;a href="http://bp3.blogger.com/_47zQs0xAKWc/R1i3GPr9TGI/AAAAAAAAAvM/A_6Tjuib92Q/s1600-h/s-776369.jpg"&gt;&lt;img src="http://bp3.blogger.com/_47zQs0xAKWc/R1i3GPr9TGI/AAAAAAAAAvM/A_6Tjuib92Q/s320/s-776369.jpg"  border="0" alt="" id="BLOGGER_PHOTO_ID_5141060292561423458" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;DIV&gt;&lt;FONT face="Trebuchet MS" size=2&gt;&lt;SPAN class=234073702-07122007&gt;&lt;U&gt;Select  Statement&lt;/U&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT face="Trebuchet MS" size=2&gt;&lt;SPAN  class=234073702-07122007&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT face="Trebuchet MS" color=#ff0000 size=1&gt;&lt;SPAN  class=234073702-07122007&gt;Sample Statement&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT face="Trebuchet MS" color=#ff0000 size=1&gt;&lt;SPAN  class=234073702-07122007&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="Trebuchet MS" size=2&gt;&lt;SPAN  class=234073702-07122007&gt;Select&amp;nbsp;* From Receipt&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT face="Trebuchet MS" size=2&gt;&lt;SPAN  class=234073702-07122007&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT face="Trebuchet MS" size=2&gt;&lt;SPAN class=234073702-07122007&gt;* =  Wildcard or to Display all the Field in a Table&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT face="Trebuchet MS" size=2&gt;&lt;SPAN class=234073702-07122007&gt;Receipt =  Name of the Table.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT face="Trebuchet MS" size=2&gt;&lt;SPAN  class=234073702-07122007&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT face="Trebuchet MS" color=#ff0000 size=1&gt;&lt;SPAN  class=234073702-07122007&gt;&lt;SPAN class=234073702-07122007&gt;Sample  OutPut&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV&gt;&lt;FONT face="Trebuchet MS" color=#ff0000 size=1&gt;&lt;SPAN  class=234073702-07122007&gt;&lt;SPAN class=234073702-07122007&gt;&lt;SPAN  class=234073702-07122007&gt;&lt;IMG alt="" hspace=0 src="cid:234073702@07122007-1C03"  align=baseline border=0&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt; &lt;DIV&gt; IMPORTANT NOTICE: &lt;BR&gt; The information in this email (and any attachments) is confidential. If you are not the intended recipient, you must not use or disseminate the information. If you have received this email in error, please immediately notify me by &amp;quot;Reply&amp;quot; command and permanently delete the original and any copies or printouts thereof.  Although this email and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by American International Group, Inc. or its subsidiaries or affiliates either jointly or severally, for any loss or damage arising in any way from its use.&lt;BR&gt; &lt;/DIV&gt;&lt;div class="blogger-post-footer"&gt;&lt;a href="http://www.text-link-ads.com/starter_kit.php?ref=42224"&gt;Earn $100 for just a signup!&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/731722776229922433-3865217248818183066?l=kodekruncher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodekruncher.blogspot.com/feeds/3865217248818183066/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=731722776229922433&amp;postID=3865217248818183066' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/3865217248818183066'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/3865217248818183066'/><link rel='alternate' type='text/html' href='http://kodekruncher.blogspot.com/2007/12/basic-sql-part-1.html' title='Basic SQL Part 1'/><author><name>zoul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://i14.tinypic.com/5x4a0kp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp3.blogger.com/_47zQs0xAKWc/R1i3GPr9TGI/AAAAAAAAAvM/A_6Tjuib92Q/s72-c/s-776369.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-731722776229922433.post-181748690152610141</id><published>2007-12-07T00:57:00.000+08:00</published><updated>2007-12-07T00:58:20.740+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='VB'/><category scheme='http://www.blogger.com/atom/ns#' term='Code'/><title type='text'>XOR Encryption in VB</title><content type='html'>&lt;br /&gt;&lt;p&gt;Public Function XOREncryption(CodeKey As String, DataIn As String) As String&lt;br/&gt;Dim lonDataPtr As Long&lt;br/&gt;Dim strDataOut As String&lt;br/&gt;Dim intXOrValue1 As Integer, intXOrValue2 As Integer&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;br/&gt;For lonDataPtr = 1 To Len(DataIn)&lt;br/&gt;'The first value to be XOr-ed comes from&lt;br/&gt;' the data to be encrypted&lt;br/&gt;intXOrValue1 = Asc(Mid$(DataIn, lonDataPtr, 1))&lt;br/&gt;'The second value comes from the code ke&lt;br/&gt;' y&lt;br/&gt;intXOrValue2 = Asc(Mid$(CodeKey, ((lonDataPtr Mod Len(CodeKey)) + 1), 1))&lt;br/&gt;strDataOut = strDataOut + chr(intXOrValue1 XOr intXOrValue2)&lt;br/&gt;Next lonDataPtr&lt;br/&gt;XOREncryption = strDataOut&lt;br/&gt;End Function&lt;/p&gt;&lt;br /&gt;&lt;p&gt;'USAGE&lt;br/&gt;Private Sub cmdEncryptdecrypt_Click()&lt;br/&gt;Dim strCodeKey As String&lt;br/&gt;strCodeKey = InputBox("Please enter your password", "XOr Encryption")&lt;br/&gt;txtSource.Text = XOREncryption(strCodeKey, txtSource.Text)&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;br/&gt;End Sub&lt;/p&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;a href="http://www.text-link-ads.com/starter_kit.php?ref=42224"&gt;Earn $100 for just a signup!&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/731722776229922433-181748690152610141?l=kodekruncher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodekruncher.blogspot.com/feeds/181748690152610141/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=731722776229922433&amp;postID=181748690152610141' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/181748690152610141'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/181748690152610141'/><link rel='alternate' type='text/html' href='http://kodekruncher.blogspot.com/2007/12/xor-encryption-in-vb.html' title='XOR Encryption in VB'/><author><name>zoul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://i14.tinypic.com/5x4a0kp.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-731722776229922433.post-8002879799703375063</id><published>2007-10-23T09:18:00.000+08:00</published><updated>2007-10-23T09:25:10.715+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='INI'/><category scheme='http://www.blogger.com/atom/ns#' term='VB'/><category scheme='http://www.blogger.com/atom/ns#' term='Code'/><title type='text'>Read INI File in VB ( Visual Basic )</title><content type='html'>&lt;u&gt;&lt;strong&gt;&lt;span style="color:#006600;"&gt;Declare&lt;/span&gt;&lt;/strong&gt;&lt;/u&gt;&lt;br /&gt;Public Declare Function GetPrivateProfileString Lib "kernel32" Alias "GetPrivateProfileStringA" (ByVal lpApplicationName As String, ByVal lpKeyName As Any, ByVal lpDefault As String, ByVal lpReturnedString As String, ByVal nSize As Long, ByVal lpFileName As String) As Long&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;&lt;span style="color:#009900;"&gt;Code Function&lt;/span&gt;&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:85%;"&gt;&lt;span style="color:#000099;"&gt;Private Function&lt;/span&gt; INIRead(iAppName &lt;span style="color:#000099;"&gt;As String&lt;/span&gt;, iKeyName &lt;span style="color:#000099;"&gt;As String&lt;/span&gt;, iFileName &lt;span style="color:#000099;"&gt;As String&lt;/span&gt;)&lt;span style="color:#000099;"&gt; As String&lt;/span&gt;    &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:85%;"&gt;&lt;span style="color:#000099;"&gt;Dim iStr As String&lt;/span&gt;    &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:85%;"&gt;iStr = String(255, Chr(0))    &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:85%;"&gt;INIRead = Left(iStr, GetPrivateProfileString(iAppName, &lt;span style="color:#000099;"&gt;ByVal&lt;/span&gt; iKeyName, "", iStr, Len(iStr), iFileName))&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;End Function&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;a href="http://www.text-link-ads.com/starter_kit.php?ref=42224"&gt;Earn $100 for just a signup!&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/731722776229922433-8002879799703375063?l=kodekruncher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodekruncher.blogspot.com/feeds/8002879799703375063/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=731722776229922433&amp;postID=8002879799703375063' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/8002879799703375063'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/8002879799703375063'/><link rel='alternate' type='text/html' href='http://kodekruncher.blogspot.com/2007/10/read-ini-file-in-vb-visual-basic.html' title='Read INI File in VB ( Visual Basic )'/><author><name>zoul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://i14.tinypic.com/5x4a0kp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-731722776229922433.post-5004913537122503824</id><published>2007-09-16T05:51:00.000+08:00</published><updated>2007-09-16T10:52:11.822+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Generate'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><category scheme='http://www.blogger.com/atom/ns#' term='Code'/><title type='text'>C# Link Generate to HTML Code</title><content type='html'>Here is a sample program where user can generate HTML Link code just by inputing the address and description of the Site.. then the application will automatically generate the code&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;screen shot&lt;/span&gt;&lt;/strong&gt;&lt;a href="http://bp3.blogger.com/_47zQs0xAKWc/RuyS3jl71cI/AAAAAAAAAqI/jNkrgCqJhIo/s1600-h/linkgen.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5110621160303482306" style="FLOAT: left; MARGIN: 0px 10px 10px 0px; CURSOR: hand" alt="" src="http://bp3.blogger.com/_47zQs0xAKWc/RuyS3jl71cI/AAAAAAAAAqI/jNkrgCqJhIo/s400/linkgen.JPG" border="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;&lt;strong&gt;&lt;u&gt;Source Code:&lt;/u&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;using System;&lt;br /&gt;using System.Collections.Generic;&lt;br /&gt;using System.ComponentModel;&lt;br /&gt;using System.Data;&lt;br /&gt;using System.Drawing;&lt;br /&gt;using System.Text;&lt;br /&gt;using System.Windows.Forms;&lt;br /&gt;namespace Link&lt;br /&gt;{&lt;br /&gt;public partial class Form1 : Form&lt;br /&gt;{&lt;br /&gt;public Form1()&lt;br /&gt;{&lt;br /&gt;InitializeComponent();&lt;br /&gt;}&lt;br /&gt;private void button1_Click(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;String linkname = "", linksite = "", linkdesc = "", linkResult;&lt;br /&gt;linkname = textBox1.Text;&lt;br /&gt;linksite = textBox2.Text;&lt;br /&gt;linkdesc = textBox3.Text;&lt;br /&gt;string link = "&lt;a href ="'" alt =" '"&gt;" + linkname + "&lt;/a&gt;";&lt;br /&gt;if (textBox4.Text != "" )&lt;br /&gt;{&lt;br /&gt;textBox4.Text += "&lt;br /&gt;" + link;&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;textBox4.Text = link;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;private void button2_Click(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;textBox4.SelectAll();&lt;br /&gt;textBox4.Copy();&lt;br /&gt;}&lt;br /&gt;private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)&lt;br /&gt;{&lt;br /&gt;WebBrowser web = new WebBrowser();&lt;br /&gt;linkLabel1.Text = SiteAdvertise(1);&lt;br /&gt;web.Navigate("http://zoul1380.blogspot.com","_new");&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;&lt;a href="http://www.fileden.com/files/2007/5/7/1055718/Link-source.rar"&gt;Download Source Code Here.&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;strong&gt;&lt;u&gt;&lt;/u&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;a href="http://www.text-link-ads.com/starter_kit.php?ref=42224"&gt;Earn $100 for just a signup!&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/731722776229922433-5004913537122503824?l=kodekruncher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodekruncher.blogspot.com/feeds/5004913537122503824/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=731722776229922433&amp;postID=5004913537122503824' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/5004913537122503824'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/5004913537122503824'/><link rel='alternate' type='text/html' href='http://kodekruncher.blogspot.com/2007/09/c-link-generate-to-html-code.html' title='C# Link Generate to HTML Code'/><author><name>zoul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://i14.tinypic.com/5x4a0kp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp3.blogger.com/_47zQs0xAKWc/RuyS3jl71cI/AAAAAAAAAqI/jNkrgCqJhIo/s72-c/linkgen.JPG' height='72' width='72'/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-731722776229922433.post-5815517015470104352</id><published>2007-09-03T23:57:00.000+08:00</published><updated>2007-09-04T21:52:20.740+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Programming'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='Code'/><title type='text'>C# Sample Code : Exercise Palindrome</title><content type='html'>Filename: Program.CS&lt;br /&gt;&lt;!-- code formatted by http://manoli.net/csharpformat/ --&gt;&lt;br /&gt;&lt;style type="text/css"&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt; font-size: small;&lt;br /&gt; color: black;&lt;br /&gt; font-family: Consolas, "Courier New", Courier, Monospace;&lt;br /&gt; background-color: #ffffff;&lt;br /&gt; /*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt; background-color: #f4f4f4;&lt;br /&gt; width: 100%;&lt;br /&gt; margin: 0em;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;br /&gt;&lt;/style&gt;&lt;br /&gt;&lt;pre class="csharpcode"&gt;&lt;br /&gt;&lt;span class="kwrd"&gt;using&lt;/span&gt; System;&lt;br /&gt;&lt;span class="kwrd"&gt;using&lt;/span&gt; System.Collections.Generic;&lt;br /&gt;&lt;span class="kwrd"&gt;using&lt;/span&gt; System.Text;&lt;br /&gt;&lt;br /&gt;&lt;span class="kwrd"&gt;namespace&lt;/span&gt; Exercise_02___Palindromes&lt;br /&gt;{&lt;br /&gt;    &lt;span class="kwrd"&gt;class&lt;/span&gt; Program&lt;br /&gt;    {&lt;br /&gt;        &lt;span class="rem"&gt;//string aword;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;        &lt;span class="kwrd"&gt;static&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; Main(&lt;span class="kwrd"&gt;string&lt;/span&gt;[] args)&lt;br /&gt;        {&lt;br /&gt;            &lt;span class="kwrd"&gt;bool&lt;/span&gt; wResult;&lt;br /&gt;&lt;br /&gt;            Console.WriteLine(&lt;span class="str"&gt;"Palindrome Checker"&lt;/span&gt;);&lt;br /&gt;            &lt;br /&gt;&lt;br /&gt;            &lt;span class="kwrd"&gt;for&lt;/span&gt; (&lt;span class="kwrd"&gt;int&lt;/span&gt; x = 0; x &amp;lt; 20; x++)&lt;br /&gt;            {&lt;br /&gt;                Console.Write(&lt;span class="str"&gt;"="&lt;/span&gt;);&lt;br /&gt;            }&lt;br /&gt;            Console.WriteLine();&lt;br /&gt;            Console.Write(&lt;span class="str"&gt;"Input String : "&lt;/span&gt;);&lt;br /&gt;            &lt;span class="kwrd"&gt;string&lt;/span&gt; aword = Console.ReadLine();&lt;br /&gt;&lt;br /&gt;            clsCheckWord CheckWord = &lt;span class="kwrd"&gt;new&lt;/span&gt; clsCheckWord();&lt;br /&gt;&lt;br /&gt;            CheckWord.Givenword = aword;&lt;br /&gt;            &lt;span class="kwrd"&gt;int&lt;/span&gt; ix = CheckWord.isPalindrome();&lt;br /&gt;&lt;br /&gt;            &lt;span class="kwrd"&gt;if&lt;/span&gt; (ix == 1)&lt;br /&gt;            {&lt;br /&gt;                Console.Write(&lt;span class="str"&gt;"Result : A Valid Palindrome"&lt;/span&gt;);&lt;br /&gt;            }&lt;br /&gt;            &lt;span class="kwrd"&gt;else&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                Console.Write(&lt;span class="str"&gt;"Result : Not A Palindrome"&lt;/span&gt;);&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            Console.ReadLine();&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Class Filename : clsCheckWord.cs&lt;br /&gt;&lt;br /&gt;&lt;!-- code formatted by http://manoli.net/csharpformat/ --&gt;&lt;br /&gt;&lt;style type="text/css"&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt; font-size: small;&lt;br /&gt; color: black;&lt;br /&gt; font-family: Consolas, "Courier New", Courier, Monospace;&lt;br /&gt; background-color: #ffffff;&lt;br /&gt; /*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt; background-color: #f4f4f4;&lt;br /&gt; width: 100%;&lt;br /&gt; margin: 0em;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;br /&gt;&lt;/style&gt;&lt;br /&gt;&lt;pre class="csharpcode"&gt;&lt;br /&gt;&lt;span class="kwrd"&gt;using&lt;/span&gt; System;&lt;br /&gt;&lt;span class="kwrd"&gt;using&lt;/span&gt; System.Collections.Generic;&lt;br /&gt;&lt;span class="kwrd"&gt;using&lt;/span&gt; System.Text;&lt;br /&gt;&lt;br /&gt;&lt;span class="kwrd"&gt;namespace&lt;/span&gt; Exercise_02___Palindromes&lt;br /&gt;{&lt;br /&gt;    &lt;span class="kwrd"&gt;class&lt;/span&gt; clsCheckWord&lt;br /&gt;    {&lt;br /&gt;        &lt;span class="kwrd"&gt;public&lt;/span&gt; clsCheckWord(){}&lt;br /&gt;&lt;br /&gt;        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt; givenword=&lt;span class="str"&gt;""&lt;/span&gt;;&lt;br /&gt;&lt;br /&gt;        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt; Givenword&lt;br /&gt;        {&lt;br /&gt;            get { &lt;span class="kwrd"&gt;return&lt;/span&gt; givenword; }&lt;br /&gt;            set { givenword = &lt;span class="kwrd"&gt;value&lt;/span&gt;; }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;int&lt;/span&gt; isPalindrome()&lt;br /&gt;        {&lt;br /&gt;            &lt;span class="kwrd"&gt;string&lt;/span&gt; tmpcomp=&lt;span class="str"&gt;""&lt;/span&gt;;&lt;br /&gt;&lt;br /&gt;            &lt;span class="kwrd"&gt;for&lt;/span&gt; (&lt;span class="kwrd"&gt;int&lt;/span&gt; x = 0; x &amp;lt; givenword.Length; x++)&lt;br /&gt;            {&lt;br /&gt;                tmpcomp = givenword.Substring(x, 1) + tmpcomp;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;span class="kwrd"&gt;if&lt;/span&gt; (tmpcomp == givenword)&lt;br /&gt;            {&lt;br /&gt;                &lt;span class="kwrd"&gt;return&lt;/span&gt; 1;&lt;br /&gt;            }&lt;br /&gt;            &lt;span class="kwrd"&gt;else&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span class="kwrd"&gt;return&lt;/span&gt; 0;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;a href="http://www.text-link-ads.com/starter_kit.php?ref=42224"&gt;Earn $100 for just a signup!&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/731722776229922433-5815517015470104352?l=kodekruncher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodekruncher.blogspot.com/feeds/5815517015470104352/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=731722776229922433&amp;postID=5815517015470104352' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/5815517015470104352'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/5815517015470104352'/><link rel='alternate' type='text/html' href='http://kodekruncher.blogspot.com/2007/09/c-sample-code-exercise-palindrome.html' title='C# Sample Code : Exercise Palindrome'/><author><name>zoul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://i14.tinypic.com/5x4a0kp.jpg'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-731722776229922433.post-3083961506958980898</id><published>2007-05-07T23:05:00.000+08:00</published><updated>2007-05-07T23:18:17.609+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Management'/><category scheme='http://www.blogger.com/atom/ns#' term='IT'/><category scheme='http://www.blogger.com/atom/ns#' term='Organization'/><title type='text'>I.T. Organization &amp; Management</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;div style="text-align: left;"&gt;&lt;b style=""&gt;&lt;span style="font-size: 20pt; font-family: Tahoma;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b style=""&gt;&lt;span style="font-size: 20pt; font-family: Tahoma;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;b style=""&gt;&lt;span style="font-size: 20pt; font-family: Tahoma;"&gt;&lt;br /&gt;April 23, 2007&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;&lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-family: Tahoma;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-family: Tahoma;"&gt;Organizational Behavior&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Tahoma;"&gt;A contemporary field focusing on behavioral perspectives on management.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Tahoma;"&gt;&lt;span style=""&gt;       &lt;/span&gt;- draws on psychology, sociology, eonomics, and medicing -&gt; interdischiplinary&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Tahoma;"&gt;Important topic in organizational behavior research:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;&lt;span style=""&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Tahoma;"&gt;Job satisfaction and job stress&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;&lt;span style=""&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Tahoma;"&gt;Motivation and leadership&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;&lt;span style=""&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Tahoma;"&gt;Group dynamic and organizational politcis&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;&lt;span style=""&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Tahoma;"&gt;Interpersonal conflict&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;&lt;span style=""&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="font-family: Tahoma;"&gt;The structure and design of organiztions&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;a href="http://www.fileden.com/files/2007/5/7/1055718/ITORG_042307.doc"&gt;Click here to Download Full Article &lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;----------------------------------------&lt;br /&gt;&lt;span style="font-family: Tahoma;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;b style=""&gt;&lt;span style="font-size: 20pt; font-family: Magneto; color: red;"&gt;April 25, 2007&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;Something…&lt;/p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;b style=""&gt;Strategic Planning Tools&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;&lt;span style=""&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;SWOT Analysis&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;&lt;span style=""&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Poter’s Generic Strategies regarding&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;o&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Cost&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;o&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Differentation&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;o&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Focus&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;&lt;span style=""&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Porter’s 5 forces&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;&lt;span style=""&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Porter’s value chain model&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;&lt;span style=""&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Strategies based on product life cycle&lt;/p&gt;&lt;p class="MsoNormal"&gt;SWOT = Strenght Weakneses Opportunities Threats&lt;/p&gt; &lt;br /&gt;&lt;a href="http://www.fileden.com/files/2007/5/7/1055718/ITORG_042507.doc"&gt;Click here to download full article&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------&lt;br /&gt; &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 24pt; font-family: &amp;quot;Bradley Hand ITC&amp;quot;; color: aqua;"&gt;April 27, 2007&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;b style=""&gt;INFORMATION TECHNOLOGY&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;&lt;span style=""&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Definition&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in;"&gt;COMPUTER TECHNOLOGY (hardware &amp; software)&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in;"&gt;for PROCESSING &amp; STORING INFORMATION&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;            &lt;/span&gt;as well as&lt;/p&gt;  &lt;p class="MsoNormal" style="text-indent: 0.5in;"&gt;COMMUNICATION TECHNOOGY&lt;/p&gt;  &lt;p class="MsoNormal" style="text-indent: 0.5in;"&gt;For TRANSMITTING INFORMATION&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;b style=""&gt;COMPETING IN AN eWORLD&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;&lt;span style=""&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;NEW WAYS to COMPETE: USING CAPABILITIES&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;o&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Particularly INTERNET&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;o&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;MASS CUSTOMIZATION&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;§&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Manufacturing customized prodcuts in large quantities&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;§&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Eg.&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 2in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Dell&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;o&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Global Reach&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;§&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Being able to market and sell anywhere in the world&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;§&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Eg.&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 2in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Amazon.com&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 2in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Dell&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;o&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;SUPPORT&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;§&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;24/7 on-line support anywhere in the world&lt;/p&gt; &lt;br /&gt;&lt;a href="http://www.fileden.com/files/2007/5/7/1055718/ITORG_042707.doc"&gt;Click here to download full article&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;----------------------------&lt;br /&gt; &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;b style=""&gt;&lt;u&gt;&lt;span style="font-size: 26pt; font-family: CityBlueprint; color: rgb(153, 204, 0);"&gt;May 2, 2007&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;b style=""&gt;Decision Support Systems&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;&lt;span style=""&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;A computer based system, usually interactive, designed to assist managers in is making decisions.&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;&lt;span style=""&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Incorporates both data &amp; model&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;&lt;span style=""&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Intended to assis in the solution of semi- or unstructured problems&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;&lt;span style=""&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Data often extrated from&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;o&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;TPS (Transaction Processing Systems)&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;o&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Data warehose&lt;/p&gt;&lt;a href="http://www.fileden.com/files/2007/5/7/1055718/ITORG_050207.doc"&gt;Click here to download full article&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;----------------------&lt;br /&gt; &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size: 36pt; font-family: &amp;quot;Curlz MT&amp;quot;; color: fuchsia;"&gt;May 4, 2007&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;b style=""&gt;Initiating the Purchasing Process&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;&lt;span style=""&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Business manager makes a formal request to begin an investigation of a possible system purchase&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;o&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Proposed application needs&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;o&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Potential benefits&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;&lt;span style=""&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Project team is established&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;&lt;span style=""&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Project team is established &amp; given the responsibility of acquiring the software&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;o&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;IS analysis &amp; other IS specialists&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;§&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Who can help assess thebenefits and risks from an IT implementation perspective&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;§&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Who will operate and support&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 2in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;The package system&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 2in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style=""&gt;·&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Other packaged system that will interface with this package&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;&lt;span style=""&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Representative from the business unit&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;o&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Who can assess the organizational benefits and risks&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;o&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Who will eventually implement &amp; use the system&lt;/p&gt;&lt;br /&gt;&lt;a href="http://www.fileden.com/files/2007/5/7/1055718/ITORG_050407.doc"&gt;Click here to download full article&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;------------&lt;br /&gt; &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;b style=""&gt;&lt;span style="font-size: 24pt; font-family: &amp;quot;Informal Roman&amp;quot;; color: rgb(0, 51, 102);"&gt;May 7, 2007&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;6. Evaluate Vendor Responses to RFP &amp; Choose the package&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;&lt;span style=""&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Use criteria (mapped out in step 4) as basis for evaluation&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;&lt;span style=""&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Deterine weights&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;&lt;span style=""&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Evaluation criteria 1 – 10 (10 = perfect)&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;&lt;span style=""&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Multiplyevaluation by weights to get weighted evaluation&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;&lt;span style=""&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Add all weighted evaluation to get final scores&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;&lt;span style=""&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Use these scores to discuss strengths and weaknesses of major candidate packages&lt;/p&gt;&lt;a href="http://www.fileden.com/files/2007/5/7/1055718/ITORG_050707.doc"&gt;Click here to download full article&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;a href="http://www.text-link-ads.com/starter_kit.php?ref=42224"&gt;Earn $100 for just a signup!&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/731722776229922433-3083961506958980898?l=kodekruncher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodekruncher.blogspot.com/feeds/3083961506958980898/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=731722776229922433&amp;postID=3083961506958980898' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/3083961506958980898'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/3083961506958980898'/><link rel='alternate' type='text/html' href='http://kodekruncher.blogspot.com/2007/05/it-organization-management.html' title='I.T. Organization &amp; Management'/><author><name>zoul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://i14.tinypic.com/5x4a0kp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-731722776229922433.post-5456410751616364345</id><published>2007-04-28T00:45:00.000+08:00</published><updated>2007-04-28T00:48:22.305+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='Programming'/><category scheme='http://www.blogger.com/atom/ns#' term='Win32'/><category scheme='http://www.blogger.com/atom/ns#' term='Visual C++'/><title type='text'>Learning Visual C++ Win32 Programming</title><content type='html'>I will be trying to learn Visual C++ Win32 Programming Come Join me thrue my journey in learning this programming language.. i will be posting all my Daily experience on this topic hope you can learn with me... and Join me on my Journey.....&lt;div class="blogger-post-footer"&gt;&lt;a href="http://www.text-link-ads.com/starter_kit.php?ref=42224"&gt;Earn $100 for just a signup!&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/731722776229922433-5456410751616364345?l=kodekruncher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodekruncher.blogspot.com/feeds/5456410751616364345/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=731722776229922433&amp;postID=5456410751616364345' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/5456410751616364345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/5456410751616364345'/><link rel='alternate' type='text/html' href='http://kodekruncher.blogspot.com/2007/04/learning-visual-c-win32-programming.html' title='Learning Visual C++ Win32 Programming'/><author><name>zoul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://i14.tinypic.com/5x4a0kp.jpg'/></author><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-731722776229922433.post-6541576975651206611</id><published>2007-04-06T12:19:00.000+08:00</published><updated>2007-04-06T12:23:06.932+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='array'/><title type='text'>Basic array operations in VB.NET</title><content type='html'>&lt;p&gt;The ability to work with arrays is important in any programming language. VB.NET offers a simple way of grouping data into the array structures similarly to other languages. In this article, I will look at array declaration and usage. &lt;/p&gt;  &lt;p&gt;&lt;b&gt;Purpose of the arrays&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;Arrays are generally used for storing similar types of values or objects. They allow grouping variables together and allow referring to them by using an index. Arrays have an upper bound and a lower bound, which simply refer to the starting index and the ending index of a given array structure. Additionally, the data in the array can be sorted. Simple arrays are one-dimensional; however, you can also use multi-dimensional arrays in VB.NET. You can loop through an array to determine and to modify the values stored in the array. &lt;/p&gt;  &lt;p&gt;&lt;b&gt;Declaring and initialising arrays&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;There are two ways of initialising the arrays: to declare and initialise them in one statement, or to declare an array and choose to initialise it later. &lt;/p&gt;  &lt;p&gt;When declaring and initialising arrays in the same statement, you must specify the type of the array elements and the number of the elements the array will hold. In VB.NET, arrays are zero based, which means that the index of the first element is zero. The elements are numbered sequentially. You must specify the number of array elements by indicating the upper bound of the array. The upper bound is the number that specifies the index of the last element in the array. &lt;b&gt;Listing A&lt;/b&gt; shows the declaration and initialisation of an array of integers. &lt;/p&gt;  &lt;p&gt;&lt;b&gt;Listing A&lt;/b&gt;&lt;/p&gt;  &lt;p style="color: rgb(153, 0, 0);"&gt;&lt;code&gt; Dim arrNumbers(4) As Integer 'Declares &amp; initialises an array of 5 integers, with indexes ranging from 0 to 4&lt;/code&gt;&lt;/p&gt;  &lt;p&gt;Another way to declare and initialise arrays is to perform these operations in two separate steps. If you declare an array without specifying a number of elements on one line, you have to provide the values for each item of the array when you initialise it. The initial values are provided enclosed in the {} braces, using a comma as a separator. &lt;b&gt;Listing B&lt;/b&gt; shows the declaration and initialisation of an array in two separate steps. &lt;/p&gt;  &lt;p&gt;&lt;b&gt;Listing B&lt;/b&gt;&lt;/p&gt;  &lt;p style="color: rgb(153, 0, 0);"&gt;&lt;code&gt; Dim arrNumbers() As Integer 'Declares the array of integers&lt;br /&gt;arrNumbers = New Integer() {0,1,2,3,4} 'Initialises the array to five members &amp; sets their values&lt;/code&gt;&lt;/p&gt;   &lt;p&gt;Once an array is declared and initialised, it's possible to change the size of an array in run time by redefining it. You can use the &lt;i&gt;ReDim&lt;/i&gt; statement to change the number of items in an array structure.  &lt;b&gt;Listing C&lt;/b&gt; shows declaration, initialisation, and then re-sizing of an array structure. &lt;/p&gt;  &lt;p&gt;&lt;b&gt;Listing C&lt;/b&gt;&lt;/p&gt;  &lt;p style="color: rgb(153, 0, 0);"&gt;&lt;code&gt;Dim arrNumbers(32) As Integer' Declares &amp; Initialises an array of integers&lt;br /&gt;ReDim arrNumbers(45) As Integer' Re-initialises the array&lt;/code&gt;&lt;/p&gt;  &lt;p&gt;By default, the data stored in an array is lost whenever an array is re-initialised. However, you can use the &lt;i&gt;ReDim&lt;/i&gt; statement with the &lt;i&gt;Preserve&lt;/i&gt; keyword in order to keep the existing data in the array when it's being re-initialised. &lt;b&gt;Listing D&lt;/b&gt; re-initialises an array structure using the &lt;i&gt;Preserve&lt;/i&gt; statement to keep the data already stored in the array. &lt;/p&gt;  &lt;p&gt;&lt;b&gt;Listing D&lt;/b&gt;&lt;/p&gt;  &lt;p style="color: rgb(153, 0, 0);"&gt;&lt;code&gt;Dim arrNumbers () As Integer = {0,1,2,3,4}' Declares &amp;amp; initialises the array&lt;br /&gt;ReDim Preserve arrNumbers (25) 'Resizes the array, but retains the data in elements 0 through 4&lt;/code&gt;&lt;/p&gt;   There are two types of multidimensional arrays: rectangular or jagged. In rectangular arrays, every member of each dimension is extended into the other dimensions by the same length. In jagged arrays, individual members of one dimension can be extended into other dimensions by different lengths. The more dimensions an array has, the more complex it becomes to work with it&lt;div class="blogger-post-footer"&gt;&lt;a href="http://www.text-link-ads.com/starter_kit.php?ref=42224"&gt;Earn $100 for just a signup!&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/731722776229922433-6541576975651206611?l=kodekruncher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodekruncher.blogspot.com/feeds/6541576975651206611/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=731722776229922433&amp;postID=6541576975651206611' title='10 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/6541576975651206611'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/6541576975651206611'/><link rel='alternate' type='text/html' href='http://kodekruncher.blogspot.com/2007/04/basic-array-operations-in-vbnet.html' title='Basic array operations in VB.NET'/><author><name>zoul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://i14.tinypic.com/5x4a0kp.jpg'/></author><thr:total>10</thr:total></entry><entry><id>tag:blogger.com,1999:blog-731722776229922433.post-8189762400988377747</id><published>2007-03-06T14:41:00.000+08:00</published><updated>2007-03-06T14:42:07.316+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Direct Memory Access'/><category scheme='http://www.blogger.com/atom/ns#' term='VB'/><title type='text'>How to use Direct Memory Access to do Graphics</title><content type='html'>&lt;strong&gt;How to use Direct Memory Access to do Graphics&lt;/strong&gt;        &lt;hr style="color: rgb(100, 100, 100);" size="1"&gt;    &lt;!-- / icon and title --&gt;&lt;!-- message --&gt;            One of the easiest ways to speed up your graphics is to use the native API calls rather than the built in graphical methods. For example, using the API functions GetPixel and SetPixel is about 3x faster than using the built in methods PSet and Point. But while the the API is fast, you can get even better performance with direct memory access (DMA).&lt;br /&gt;&lt;br /&gt;But wait! What about DirectX? Well, DirectX is great and is extremely fast for complex operations but most of its speed comes from its ability to interact with the coprocessor in your graphics card. If you don't have such a card (unlikely, true, but there it is) or if you are doing simple graphics (line and point stuff), then DMA is just as fast. Plus you don't need to distribute any particular version of DX.&lt;br /&gt;&lt;br /&gt;Besides, I just like DMA. DX hides a lot of the logic of graphics which is great, but sometimes you can learn quite a bit from the algorithms behind a line, or a floodfill.&lt;br /&gt;&lt;br /&gt;Anyway, here is how you do DMA.&lt;br /&gt;&lt;br /&gt;The basic idea is that you access the actual bitmap that makes up the picture. You can do this indirectly by using the API functions GetDIBits and SetDIBits which extract a bitmap into an array and copy an array to a bitmap respectively, but you can do it directly if you had an array that pointed to the actual memory used by the bitmap.&lt;br /&gt;&lt;br /&gt;To make such an array requires some API calls of course. Here they are:&lt;br /&gt;&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 4px; overflow: auto; width: 95%; height: 498px; text-align: left;"&gt;Private Declare Function VarPtrArray Lib "msvbvm60.dll" Alias "VarPtr" _&lt;br /&gt;    (Ptr() As Any) As Long&lt;br /&gt;Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" _&lt;br /&gt;    (pDst As Any, pSrc As Any, ByVal ByteLen As Long)&lt;br /&gt;Private Declare Function GetObjectAPI Lib "gdi32" Alias "GetObjectA" _&lt;br /&gt;    (ByVal hObject As Long, ByVal nCount As Long, lpObject As Any) As Long&lt;br /&gt;&lt;br /&gt;Private Type SAFEARRAYBOUND&lt;br /&gt;   cElements As Long&lt;br /&gt;   lLbound As Long&lt;br /&gt;End Type&lt;br /&gt;&lt;br /&gt;Private Type SAFEARRAY2D&lt;br /&gt;   cDims As Integer&lt;br /&gt;   fFeatures As Integer&lt;br /&gt;   cbElements As Long&lt;br /&gt;   cLocks As Long&lt;br /&gt;   pvData As Long&lt;br /&gt;   Bounds(0 To 1) As SAFEARRAYBOUND&lt;br /&gt;End Type&lt;br /&gt;&lt;br /&gt;Private Type BITMAP&lt;br /&gt;   bmType As Long&lt;br /&gt;   bmWidth As Long&lt;br /&gt;   bmHeight As Long&lt;br /&gt;   bmWidthBytes As Long&lt;br /&gt;   bmPlanes As Integer&lt;br /&gt;   bmBitsPixel As Integer&lt;br /&gt;   bmBits As Long&lt;br /&gt;End Type&lt;/pre&gt; &lt;/div&gt;The VarPtr function can get the actual memory address of a variable. In this case, we type the function in such a way that it works on arrays and we call it VarPtrArray. The CopyMemory function can copy data from one memory location to another. The GetObjectAPI function can retrieve information out of an object. In this case, we will use it to extract the BITMAP information from a stdPicture object, thus we need to define a BITMAP structure. Finally, we define a SAFEARRAY structure since this is the raw format behind an array and we need to mess with this to get this method to work.&lt;br /&gt;&lt;br /&gt;So we start with a stdPicture object. We will assume that this object has a picture loaded. We also have a dynamic array of bytes, but this array has not yet had any memory assigned to it. We then use our API functions to assign the memory used by the picture object to the array, thus any changes we make to the array will show up in the picture.&lt;br /&gt;&lt;br /&gt;Here is how we do it:&lt;br /&gt;&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 4px; overflow: auto; width: 95%; height: 354px; text-align: left;"&gt;Dim SA As SAFEARRAY2D&lt;br /&gt;Dim BMP As BITMAP&lt;br /&gt;Dim mvarBytesPerPixel&lt;br /&gt;&lt;br /&gt;Public Sub LoadPicArray(p As StdPicture,Data() As Byte)&lt;br /&gt;If GetObjectAPI(p.Handle, Len(BMP), BMP) Then    'retrieve bitmap information about p&lt;br /&gt;   mvarBytesPerPixel = BMP.bmWidthBytes \ BMP.bmWidth&lt;br /&gt;   ' make the local matrix point to bitmap pixels&lt;br /&gt;   With SA&lt;br /&gt;     .cbElements = 1&lt;br /&gt;     .cDims = 2&lt;br /&gt;     .Bounds(0).lLbound = 0&lt;br /&gt;     .Bounds(0).cElements = BMP.bmHeight&lt;br /&gt;     .Bounds(1).lLbound = 0&lt;br /&gt;     .Bounds(1).cElements = BMP.bmWidthBytes&lt;br /&gt;     .pvData = BMP.bmBits&lt;br /&gt;   End With&lt;br /&gt;   ' copy bitmap data into byte array&lt;br /&gt;   CopyMemory ByVal VarPtrArray(Data), VarPtr(SA), 4&lt;br /&gt;End If&lt;br /&gt;End Sub&lt;/pre&gt; &lt;/div&gt;So what happened? Well, first, we use the GetObjectAPI function to extract the BITMAP info. We then use this information to set up the SA SafeArray2D structure. In particular, notice the line:&lt;br /&gt; .pvData = BMP.bmBits&lt;br /&gt;which assigns the memory stored in the bitmap to the SA structure.&lt;br /&gt;&lt;br /&gt;Now we simply make the Data array point to the SA structure with the CopyMemory function while using the VarPtr functions to get the actual memory addresses of the SA structure and the array.&lt;br /&gt;&lt;br /&gt;Simple? Well, not exactly....there are some caveats...&lt;br /&gt;1) The Picture object MUST have a picture preloaded. This will set up the objects BMP structure. Otherwise, it will be uninstantiated.&lt;br /&gt;2) The SA object MUST persist for the life of the array. Remember, the array points to the SA structure so if you destroy SA before you terminate the array, the array will point to nothing.&lt;br /&gt;3) Before you destroy the array, you MUST reset it to point to null, otherwise you can crash the program or get a memory leak.&lt;br /&gt;4) A 256 color Bitmap has 1 byte per pixel, but this byte is a palette index, not a color. So you need to convert colors into palette indexs before setting the array. The same applies to 16bit HiColor bitmaps. Fortunately, TrueColor (24bit) images are the actual colors, although you need to set each RGB byte individually.&lt;br /&gt;5) Oddly enough, the array is mapped from the bottom up. In other words, array point 0, 0 is the BOTTOM left corner.&lt;br /&gt;&lt;br /&gt;After you are done, you must reset the array. Here is how you can do it:&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 4px; overflow: auto; width: 95%; height: 66px; text-align: left;"&gt;Public Sub ReleaseData(a() As Byte)&lt;br /&gt;CopyMemory ByVal VarPtrArray(a), 0&amp;, 4&lt;br /&gt;End Sub&lt;/pre&gt; &lt;/div&gt;So now how do you use the array?&lt;br /&gt;&lt;br /&gt;Well, the array is now a 2D array of the form Data(X, Y) where X is the column and Y is the row. Each element of the array is a byte. For 256 color bitmaps, this byte is a palette index for that pixel. But for 24 bit images, each byte is a colour value (BGR) for a pixel, so each pixel consists of 3 consecutive bytes. eg a 100pixel by 100 pixel image would generate an array 300x100 in size.&lt;br /&gt;&lt;br /&gt;Since the array can vary in size, you have to take that into account when making functions to set or read a pixel. For instance:&lt;br /&gt;&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 4px; overflow: auto; width: 95%; height: 338px; text-align: left;"&gt;Public Sub DrawPixel(Data() As Byte, ByVal x&amp;, ByVal y&amp;amp;, ByVal c&amp;)&lt;br /&gt;Select Case mvarBytesPerPixel&lt;br /&gt;   Case 1: Data(x, y) = c And &amp;amp;HFF&lt;br /&gt;   Case 2&lt;br /&gt;       Data(x + x, y) = (c \ 256) And &amp;HFF&lt;br /&gt;       Data(x + x + 1, y) = c And &amp;amp;HFF&lt;br /&gt;   Case 3&lt;br /&gt;       Data(x * 3, y) = (c \ 65536) And &amp;HFF&lt;br /&gt;       Data(x * 3 + 1, y) = (c \ 256) And &amp;amp;HFF&lt;br /&gt;       Data(x * 3 + 2, y) = c And &amp;HFF&lt;br /&gt;End Select&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Public Function ReadPixel(Data() As Byte, ByVal x&amp;amp;, ByVal y&amp;) As Long&lt;br /&gt;Select Case mvarBytesPerPixel&lt;br /&gt;   Case 1: ReadPixel = Data(x, y)&lt;br /&gt;   Case 2: ReadPixel = Data(x + x, y) * 256&amp;amp; + Data(x + x + 1, y)&lt;br /&gt;   Case 3: ReadPixel = ((Data(x * 3, y) * 256&amp;) + Data(x * 3 + 1, y)) * 256&amp;amp; + Data(x * 3 + 2, y)&lt;br /&gt;End Select&lt;br /&gt;End Function&lt;/pre&gt; &lt;/div&gt;Here is a comparison of speed.&lt;br /&gt;&lt;br /&gt;With a 100x100 24 bit bitmap loaded, I set each and every pixel to red using DMA, SetPixel and PSet. The time results were 5ms, 60ms and 550ms respectively. After compiling, the speeds were 4 ms, 50 ms and 70ms. So DMA was around 12x faster than SetPixel.&lt;br /&gt;&lt;br /&gt;I've attached a class module to encapsulate the technique. Just compile the class into an ActiveX DLL and then reference it in your own projects. Here is my speed test program that demonstrates how to use this DLL:&lt;br /&gt;&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 4px; overflow: auto; width: 95%; height: 498px; text-align: left;"&gt;Option Explicit&lt;br /&gt;Private Declare Function GetPixel Lib "gdi32" _&lt;br /&gt;    (ByVal hdc As Long, ByVal x As Long, ByVal y As Long) As Long&lt;br /&gt;Private Declare Function SetPixel Lib "gdi32" _&lt;br /&gt;    (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal crColor As Long) As Long&lt;br /&gt;Private Declare Function timeGetTime Lib "winmm.dll" () As Long&lt;br /&gt;Dim pa As BCHPicArray.clsPicArray&lt;br /&gt;&lt;br /&gt;Private Sub Command1_Click()&lt;br /&gt;Dim x&amp;, y&amp;amp;, t&amp;&lt;br /&gt;t = timeGetTime()&lt;br /&gt;For y = 0 To Picture1.ScaleHeight - 1&lt;br /&gt;   For x = 0 To Picture1.ScaleWidth - 1&lt;br /&gt;       pa.DrawPixel x, y, vbRed&lt;br /&gt;   Next x&lt;br /&gt;Next y&lt;br /&gt;t = timeGetTime() - t&lt;br /&gt;Picture1.Refresh&lt;br /&gt;Me.Caption = "PicArray=" &amp;amp; t&lt;br /&gt;t = timeGetTime()&lt;br /&gt;For y = 0 To Picture1.ScaleHeight - 1&lt;br /&gt;   For x = 0 To Picture1.ScaleWidth - 1&lt;br /&gt;       SetPixel Picture1.hdc, x, y, vbRed&lt;br /&gt;   Next x&lt;br /&gt;Next y&lt;br /&gt;t = timeGetTime() - t&lt;br /&gt;Picture1.Refresh&lt;br /&gt;Me.Caption = Me.Caption &amp; " SetPixel=" &amp;amp; t&lt;br /&gt;t = timeGetTime()&lt;br /&gt;For y = 0 To Picture1.ScaleHeight - 1&lt;br /&gt;   For x = 0 To Picture1.ScaleWidth - 1&lt;br /&gt;       Picture1.PSet (x, y), vbRed&lt;br /&gt;   Next x&lt;br /&gt;Next y&lt;br /&gt;t = timeGetTime() - t&lt;br /&gt;Picture1.Refresh&lt;br /&gt;Me.Caption = Me.Caption &amp; " PSet=" &amp;amp; t&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub Form_Load()&lt;br /&gt;Set pa = New clsPicArray&lt;br /&gt;pa.LoadPicArray Picture1.Picture&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub Form_Unload(Cancel As Integer)&lt;br /&gt;Set pa = Nothing&lt;br /&gt;End Sub&lt;/pre&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;a href="http://www.text-link-ads.com/starter_kit.php?ref=42224"&gt;Earn $100 for just a signup!&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/731722776229922433-8189762400988377747?l=kodekruncher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodekruncher.blogspot.com/feeds/8189762400988377747/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=731722776229922433&amp;postID=8189762400988377747' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/8189762400988377747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/8189762400988377747'/><link rel='alternate' type='text/html' href='http://kodekruncher.blogspot.com/2007/03/how-to-use-direct-memory-access-to-do.html' title='How to use Direct Memory Access to do Graphics'/><author><name>zoul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://i14.tinypic.com/5x4a0kp.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-731722776229922433.post-17390505353592604</id><published>2006-12-16T23:20:00.000+08:00</published><updated>2007-03-06T14:44:26.523+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB.NET'/><title type='text'>Using OwnerDraw For Good-Looking Controls</title><content type='html'>&lt;strong&gt;&lt;/strong&gt;&lt;!-- / icon and title --&gt;&lt;!-- message --&gt;            One of the easiest ways to speed up your graphics is to use the native API calls rather than the built in graphical methods. For example, using the API functions GetPixel and SetPixel is about 3x faster than using the built in methods PSet and Point. But while the the API is fast, you can get even better performance with direct memory access (DMA).&lt;br /&gt;&lt;br /&gt;But wait! What about DirectX? Well, DirectX is great and is extremely fast for complex operations but most of its speed comes from its ability to interact with the coprocessor in your graphics card. If you don't have such a card (unlikely, true, but there it is) or if you are doing simple graphics (line and point stuff), then DMA is just as fast. Plus you don't need to distribute any particular version of DX.&lt;br /&gt;&lt;br /&gt;Besides, I just like DMA. DX hides a lot of the logic of graphics which is great, but sometimes you can learn quite a bit from the algorithms behind a line, or a floodfill.&lt;br /&gt;&lt;br /&gt;Anyway, here is how you do DMA.&lt;br /&gt;&lt;br /&gt;The basic idea is that you access the actual bitmap that makes up the picture. You can do this indirectly by using the API functions GetDIBits and SetDIBits which extract a bitmap into an array and copy an array to a bitmap respectively, but you can do it directly if you had an array that pointed to the actual memory used by the bitmap.&lt;br /&gt;&lt;br /&gt;To make such an array requires some API calls of course. Here they are:&lt;br /&gt;&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 4px; overflow: auto; width: 95%; height: 498px; text-align: left;"&gt;Private Declare Function VarPtrArray Lib "msvbvm60.dll" Alias "VarPtr" _&lt;br /&gt;    (Ptr() As Any) As Long&lt;br /&gt;Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" _&lt;br /&gt;    (pDst As Any, pSrc As Any, ByVal ByteLen As Long)&lt;br /&gt;Private Declare Function GetObjectAPI Lib "gdi32" Alias "GetObjectA" _&lt;br /&gt;    (ByVal hObject As Long, ByVal nCount As Long, lpObject As Any) As Long&lt;br /&gt;&lt;br /&gt;Private Type SAFEARRAYBOUND&lt;br /&gt;   cElements As Long&lt;br /&gt;   lLbound As Long&lt;br /&gt;End Type&lt;br /&gt;&lt;br /&gt;Private Type SAFEARRAY2D&lt;br /&gt;   cDims As Integer&lt;br /&gt;   fFeatures As Integer&lt;br /&gt;   cbElements As Long&lt;br /&gt;   cLocks As Long&lt;br /&gt;   pvData As Long&lt;br /&gt;   Bounds(0 To 1) As SAFEARRAYBOUND&lt;br /&gt;End Type&lt;br /&gt;&lt;br /&gt;Private Type BITMAP&lt;br /&gt;   bmType As Long&lt;br /&gt;   bmWidth As Long&lt;br /&gt;   bmHeight As Long&lt;br /&gt;   bmWidthBytes As Long&lt;br /&gt;   bmPlanes As Integer&lt;br /&gt;   bmBitsPixel As Integer&lt;br /&gt;   bmBits As Long&lt;br /&gt;End Type&lt;/pre&gt; &lt;/div&gt;The VarPtr function can get the actual memory address of a variable. In this case, we type the function in such a way that it works on arrays and we call it VarPtrArray. The CopyMemory function can copy data from one memory location to another. The GetObjectAPI function can retrieve information out of an object. In this case, we will use it to extract the BITMAP information from a stdPicture object, thus we need to define a BITMAP structure. Finally, we define a SAFEARRAY structure since this is the raw format behind an array and we need to mess with this to get this method to work.&lt;br /&gt;&lt;br /&gt;So we start with a stdPicture object. We will assume that this object has a picture loaded. We also have a dynamic array of bytes, but this array has not yet had any memory assigned to it. We then use our API functions to assign the memory used by the picture object to the array, thus any changes we make to the array will show up in the picture.&lt;br /&gt;&lt;br /&gt;Here is how we do it:&lt;br /&gt;&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 4px; overflow: auto; width: 95%; height: 354px; text-align: left;"&gt;Dim SA As SAFEARRAY2D&lt;br /&gt;Dim BMP As BITMAP&lt;br /&gt;Dim mvarBytesPerPixel&lt;br /&gt;&lt;br /&gt;Public Sub LoadPicArray(p As StdPicture,Data() As Byte)&lt;br /&gt;If GetObjectAPI(p.Handle, Len(BMP), BMP) Then    'retrieve bitmap information about p&lt;br /&gt;   mvarBytesPerPixel = BMP.bmWidthBytes \ BMP.bmWidth&lt;br /&gt;   ' make the local matrix point to bitmap pixels&lt;br /&gt;   With SA&lt;br /&gt;     .cbElements = 1&lt;br /&gt;     .cDims = 2&lt;br /&gt;     .Bounds(0).lLbound = 0&lt;br /&gt;     .Bounds(0).cElements = BMP.bmHeight&lt;br /&gt;     .Bounds(1).lLbound = 0&lt;br /&gt;     .Bounds(1).cElements = BMP.bmWidthBytes&lt;br /&gt;     .pvData = BMP.bmBits&lt;br /&gt;   End With&lt;br /&gt;   ' copy bitmap data into byte array&lt;br /&gt;   CopyMemory ByVal VarPtrArray(Data), VarPtr(SA), 4&lt;br /&gt;End If&lt;br /&gt;End Sub&lt;/pre&gt; &lt;/div&gt;So what happened? Well, first, we use the GetObjectAPI function to extract the BITMAP info. We then use this information to set up the SA SafeArray2D structure. In particular, notice the line:&lt;br /&gt; .pvData = BMP.bmBits&lt;br /&gt;which assigns the memory stored in the bitmap to the SA structure.&lt;br /&gt;&lt;br /&gt;Now we simply make the Data array point to the SA structure with the CopyMemory function while using the VarPtr functions to get the actual memory addresses of the SA structure and the array.&lt;br /&gt;&lt;br /&gt;Simple? Well, not exactly....there are some caveats...&lt;br /&gt;1) The Picture object MUST have a picture preloaded. This will set up the objects BMP structure. Otherwise, it will be uninstantiated.&lt;br /&gt;2) The SA object MUST persist for the life of the array. Remember, the array points to the SA structure so if you destroy SA before you terminate the array, the array will point to nothing.&lt;br /&gt;3) Before you destroy the array, you MUST reset it to point to null, otherwise you can crash the program or get a memory leak.&lt;br /&gt;4) A 256 color Bitmap has 1 byte per pixel, but this byte is a palette index, not a color. So you need to convert colors into palette indexs before setting the array. The same applies to 16bit HiColor bitmaps. Fortunately, TrueColor (24bit) images are the actual colors, although you need to set each RGB byte individually.&lt;br /&gt;5) Oddly enough, the array is mapped from the bottom up. In other words, array point 0, 0 is the BOTTOM left corner.&lt;br /&gt;&lt;br /&gt;After you are done, you must reset the array. Here is how you can do it:&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 4px; overflow: auto; width: 95%; height: 66px; text-align: left;"&gt;Public Sub ReleaseData(a() As Byte)&lt;br /&gt;CopyMemory ByVal VarPtrArray(a), 0&amp;, 4&lt;br /&gt;End Sub&lt;/pre&gt; &lt;/div&gt;So now how do you use the array?&lt;br /&gt;&lt;br /&gt;Well, the array is now a 2D array of the form Data(X, Y) where X is the column and Y is the row. Each element of the array is a byte. For 256 color bitmaps, this byte is a palette index for that pixel. But for 24 bit images, each byte is a colour value (BGR) for a pixel, so each pixel consists of 3 consecutive bytes. eg a 100pixel by 100 pixel image would generate an array 300x100 in size.&lt;br /&gt;&lt;br /&gt;Since the array can vary in size, you have to take that into account when making functions to set or read a pixel. For instance:&lt;br /&gt;&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 4px; overflow: auto; width: 95%; height: 338px; text-align: left;"&gt;Public Sub DrawPixel(Data() As Byte, ByVal x&amp;, ByVal y&amp;amp;, ByVal c&amp;)&lt;br /&gt;Select Case mvarBytesPerPixel&lt;br /&gt;   Case 1: Data(x, y) = c And &amp;amp;HFF&lt;br /&gt;   Case 2&lt;br /&gt;       Data(x + x, y) = (c \ 256) And &amp;HFF&lt;br /&gt;       Data(x + x + 1, y) = c And &amp;amp;HFF&lt;br /&gt;   Case 3&lt;br /&gt;       Data(x * 3, y) = (c \ 65536) And &amp;HFF&lt;br /&gt;       Data(x * 3 + 1, y) = (c \ 256) And &amp;amp;HFF&lt;br /&gt;       Data(x * 3 + 2, y) = c And &amp;HFF&lt;br /&gt;End Select&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Public Function ReadPixel(Data() As Byte, ByVal x&amp;amp;, ByVal y&amp;) As Long&lt;br /&gt;Select Case mvarBytesPerPixel&lt;br /&gt;   Case 1: ReadPixel = Data(x, y)&lt;br /&gt;   Case 2: ReadPixel = Data(x + x, y) * 256&amp;amp; + Data(x + x + 1, y)&lt;br /&gt;   Case 3: ReadPixel = ((Data(x * 3, y) * 256&amp;) + Data(x * 3 + 1, y)) * 256&amp;amp; + Data(x * 3 + 2, y)&lt;br /&gt;End Select&lt;br /&gt;End Function&lt;/pre&gt; &lt;/div&gt;Here is a comparison of speed.&lt;br /&gt;&lt;br /&gt;With a 100x100 24 bit bitmap loaded, I set each and every pixel to red using DMA, SetPixel and PSet. The time results were 5ms, 60ms and 550ms respectively. After compiling, the speeds were 4 ms, 50 ms and 70ms. So DMA was around 12x faster than SetPixel.&lt;br /&gt;&lt;br /&gt;I've attached a class module to encapsulate the technique. Just compile the class into an ActiveX DLL and then reference it in your own projects. Here is my speed test program that demonstrates how to use this DLL:&lt;br /&gt;&lt;br /&gt;&lt;div style="margin: 5px 20px 20px;"&gt;  &lt;div class="smallfont" style="margin-bottom: 2px;"&gt;Code:&lt;/div&gt;  &lt;pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 4px; overflow: auto; width: 95%; height: 498px; text-align: left;"&gt;Option Explicit&lt;br /&gt;Private Declare Function GetPixel Lib "gdi32" _&lt;br /&gt;    (ByVal hdc As Long, ByVal x As Long, ByVal y As Long) As Long&lt;br /&gt;Private Declare Function SetPixel Lib "gdi32" _&lt;br /&gt;    (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal crColor As Long) As Long&lt;br /&gt;Private Declare Function timeGetTime Lib "winmm.dll" () As Long&lt;br /&gt;Dim pa As BCHPicArray.clsPicArray&lt;br /&gt;&lt;br /&gt;Private Sub Command1_Click()&lt;br /&gt;Dim x&amp;, y&amp;amp;, t&amp;&lt;br /&gt;t = timeGetTime()&lt;br /&gt;For y = 0 To Picture1.ScaleHeight - 1&lt;br /&gt;   For x = 0 To Picture1.ScaleWidth - 1&lt;br /&gt;       pa.DrawPixel x, y, vbRed&lt;br /&gt;   Next x&lt;br /&gt;Next y&lt;br /&gt;t = timeGetTime() - t&lt;br /&gt;Picture1.Refresh&lt;br /&gt;Me.Caption = "PicArray=" &amp;amp; t&lt;br /&gt;t = timeGetTime()&lt;br /&gt;For y = 0 To Picture1.ScaleHeight - 1&lt;br /&gt;   For x = 0 To Picture1.ScaleWidth - 1&lt;br /&gt;       SetPixel Picture1.hdc, x, y, vbRed&lt;br /&gt;   Next x&lt;br /&gt;Next y&lt;br /&gt;t = timeGetTime() - t&lt;br /&gt;Picture1.Refresh&lt;br /&gt;Me.Caption = Me.Caption &amp; " SetPixel=" &amp;amp; t&lt;br /&gt;t = timeGetTime()&lt;br /&gt;For y = 0 To Picture1.ScaleHeight - 1&lt;br /&gt;   For x = 0 To Picture1.ScaleWidth - 1&lt;br /&gt;       Picture1.PSet (x, y), vbRed&lt;br /&gt;   Next x&lt;br /&gt;Next y&lt;br /&gt;t = timeGetTime() - t&lt;br /&gt;Picture1.Refresh&lt;br /&gt;Me.Caption = Me.Caption &amp; " PSet=" &amp;amp; t&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub Form_Load()&lt;br /&gt;Set pa = New clsPicArray&lt;br /&gt;pa.LoadPicArray Picture1.Picture&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub Form_Unload(Cancel As Integer)&lt;br /&gt;Set pa = Nothing&lt;br /&gt;End Sub&lt;/pre&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;a href="http://www.text-link-ads.com/starter_kit.php?ref=42224"&gt;Earn $100 for just a signup!&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/731722776229922433-17390505353592604?l=kodekruncher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodekruncher.blogspot.com/feeds/17390505353592604/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=731722776229922433&amp;postID=17390505353592604' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/17390505353592604'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/17390505353592604'/><link rel='alternate' type='text/html' href='http://kodekruncher.blogspot.com/2006/12/using-ownerdraw-for-good-looking.html' title='Using OwnerDraw For Good-Looking Controls'/><author><name>zoul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://i14.tinypic.com/5x4a0kp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-731722776229922433.post-396154074141099066</id><published>2006-12-08T19:49:00.000+08:00</published><updated>2006-12-08T19:50:26.163+08:00</updated><title type='text'>How to load a dynamic link library (DLL) into a Microsoft Visual C++ 6.0 project</title><content type='html'>&lt;span name="intelliTxt" id="intelliTXT"&gt;&lt;p nd="4"&gt;Steps to perform:&lt;/p&gt;  &lt;ul&gt;&lt;li nd="5"&gt;Create in Microsoft Visual C++ 6.0 an MFC application (&lt;i&gt;.dll&lt;/i&gt; or &lt;i&gt;.exe&lt;/i&gt;);  &lt;/li&gt;&lt;li nd="6"&gt;Go to the menu &lt;i&gt;View&lt;/i&gt;, &lt;i&gt;ClassWizard&lt;/i&gt;.  &lt;/li&gt;&lt;li nd="7"&gt;Select an option &lt;i&gt;Add Class…&lt;/i&gt;, from a type library.  &lt;/li&gt;&lt;li nd="8"&gt;Browse to the location of your &lt;i&gt;*.dll&lt;/i&gt;.  &lt;/li&gt;&lt;li nd="9"&gt;A window, which displays the content of your &lt;i&gt;*.dll&lt;/i&gt;, will appear. Select all classes you want to include in your project (Ctrl+A – select all content, or Ctrl + mouse click – for selecting a specific set of classes). &lt;/li&gt;&lt;li nd="10"&gt;Push the button &lt;i&gt;Open&lt;/i&gt;. Header file &lt;i&gt;*.h&lt;/i&gt; and &lt;i&gt;*.cpp&lt;/i&gt; implementation file will be generated.  &lt;/li&gt;&lt;li nd="11"&gt;Close the ClassWizard. &lt;/li&gt;&lt;/ul&gt; &lt;p nd="12"&gt;Now, all services you selected for use in you project are available!&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;a href="http://www.text-link-ads.com/starter_kit.php?ref=42224"&gt;Earn $100 for just a signup!&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/731722776229922433-396154074141099066?l=kodekruncher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodekruncher.blogspot.com/feeds/396154074141099066/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=731722776229922433&amp;postID=396154074141099066' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/396154074141099066'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/396154074141099066'/><link rel='alternate' type='text/html' href='http://kodekruncher.blogspot.com/2006/12/how-to-load-dynamic-link-library-dll.html' title='How to load a dynamic link library (DLL) into a Microsoft Visual C++ 6.0 project'/><author><name>zoul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://i14.tinypic.com/5x4a0kp.jpg'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-731722776229922433.post-263724707535392467</id><published>2006-12-06T23:40:00.000+08:00</published><updated>2006-12-06T23:41:55.282+08:00</updated><title type='text'>Good day</title><content type='html'>Good day people i would be posting tutorial on this blog. if you have any request on any programming tutorial. please leave a message and i will try my best to post that tutorial. thank you&lt;div class="blogger-post-footer"&gt;&lt;a href="http://www.text-link-ads.com/starter_kit.php?ref=42224"&gt;Earn $100 for just a signup!&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/731722776229922433-263724707535392467?l=kodekruncher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodekruncher.blogspot.com/feeds/263724707535392467/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=731722776229922433&amp;postID=263724707535392467' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/263724707535392467'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/263724707535392467'/><link rel='alternate' type='text/html' href='http://kodekruncher.blogspot.com/2006/12/good-day.html' title='Good day'/><author><name>zoul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://i14.tinypic.com/5x4a0kp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-731722776229922433.post-1141321732473116582</id><published>2006-12-02T20:49:00.000+08:00</published><updated>2006-12-02T20:52:31.876+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='News'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Object Oriented Programming</title><content type='html'>&lt;div class="leftColumnLeadStoryImage"&gt;&lt;a href="http://uk.builder.com/architecture/oop/0,39026558,39344158,00.htm"&gt;&lt;img src="http://uk.builder.com/i/b/hdr/80/oop.gif" alt="" border="0" height="48" width="80" /&gt;&lt;/a&gt;&lt;/div&gt;       &lt;div class="leftColumnLeadStoryBody"&gt;        &lt;h3&gt;&lt;a href="http://uk.builder.com/architecture/oop/0,39026558,39344158,00.htm" class="boldLink"&gt;Take advantage of C# 2.0 platform advances by creating and using anonymous methods&lt;/a&gt;&lt;/h3&gt;        &lt;p&gt;C# developers are familiar with using delegates and named methods to implement a wide range of functionality, most notably events. With C# 2.0, Microsoft has introduced a new way to declare a delegate and the associated method called "anonymous methods." Zach Smith explains what anonymous methods are, and how to use them &lt;/p&gt;       &lt;/div&gt;News From &lt;a href="http://uk.builder.com/architecture/oop/"&gt;http://uk.builder.com/architecture/oop/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;a href="http://www.text-link-ads.com/starter_kit.php?ref=42224"&gt;Earn $100 for just a signup!&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/731722776229922433-1141321732473116582?l=kodekruncher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodekruncher.blogspot.com/feeds/1141321732473116582/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=731722776229922433&amp;postID=1141321732473116582' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/1141321732473116582'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/1141321732473116582'/><link rel='alternate' type='text/html' href='http://kodekruncher.blogspot.com/2006/12/object-oriented-programming.html' title='Object Oriented Programming'/><author><name>zoul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://i14.tinypic.com/5x4a0kp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-731722776229922433.post-711098624792161831</id><published>2006-12-01T14:31:00.000+08:00</published><updated>2006-12-01T16:05:17.087+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><category scheme='http://www.blogger.com/atom/ns#' term='Review'/><category scheme='http://www.blogger.com/atom/ns#' term='Software'/><category scheme='http://www.blogger.com/atom/ns#' term='TV'/><title type='text'>Internet TV for Free!?</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/x/blogger2/1665/89321627957754/1600/656393/TVUScreen.jpg"&gt;&lt;img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer;" src="http://photos1.blogger.com/x/blogger2/1665/89321627957754/320/401278/TVUScreen.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Ever wanted to watch tv at your pc for free without buying any hardware?&lt;br /&gt;&lt;br /&gt;All you need to have is a high speed internet connection.&lt;br /&gt;And the software, &lt;span style="color: rgb(204, 0, 0);"&gt;TVU Player&lt;span style="color: rgb(51, 51, 51);"&gt; yes it is free. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;What is TVU Player? it is a free tv software made by TVU Network and uses bittorrent technology to stream their tv channels.&lt;br /&gt;&lt;br /&gt;anyway here is the link where you can download the software. &lt;a href="http://www.tvunetworks.com/downloads/player.htm"&gt;Click Here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;a href="http://www.text-link-ads.com/starter_kit.php?ref=42224"&gt;Earn $100 for just a signup!&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/731722776229922433-711098624792161831?l=kodekruncher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodekruncher.blogspot.com/feeds/711098624792161831/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=731722776229922433&amp;postID=711098624792161831' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/711098624792161831'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/711098624792161831'/><link rel='alternate' type='text/html' href='http://kodekruncher.blogspot.com/2006/12/internet-tv-for-free.html' title='Internet TV for Free!?'/><author><name>zoul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://i14.tinypic.com/5x4a0kp.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-731722776229922433.post-7090616595766705802</id><published>2006-11-29T10:32:00.000+08:00</published><updated>2006-11-29T12:53:31.618+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='Tutorial'/><title type='text'>How do I do it in VB.NET?</title><content type='html'>&lt;center nd="3"&gt;This tutorial explain some of the more common migrating problems  from VB to VB.NET. &lt;/center&gt; &lt;center&gt; &lt;/center&gt; &lt;ul&gt;&lt;li&gt; &lt;div align="left"&gt;&lt;strong&gt;DoEvents&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;VB6&lt;br /&gt;&lt;span style="font-family:Courier New Baltic;"&gt;DoEvents&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;VB7&lt;br /&gt;&lt;span style="font-family:Courier New;"&gt;System.Windows.Forms.Application.DoEvents&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt; &lt;ul&gt;&lt;li&gt; &lt;div align="left"&gt;&lt;strong&gt;App Object&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="color:red;"&gt;&lt;em&gt;Get the  full application filepath&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;VB6&lt;br /&gt;&lt;span style="font-family:Courier New;"&gt;App.Path &amp; App.EXEName&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;VB7 &lt;span nd="4"  style="font-family:Courier New;"&gt;&lt;a class="iAs" style="border-bottom: 0.07em solid darkgreen; font-weight: normal; font-size: 100%; padding-bottom: 1px; color: darkgreen; background-color: transparent; text-decoration: underline;" href="#" target="_blank" itxtdid="2472161"&gt;System&lt;/a&gt;.Reflection.Assembly.GetExecutingAssembly.Location.ToString&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:red;"&gt;&lt;em&gt;Get the app's instance&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;VB6 &lt;span style="font-family:Courier New;"&gt;App.hInstance&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;VB7&lt;br /&gt;&lt;span nd="5"  style="font-family:Courier New;"&gt;System.Runtime.InteropServices.Marshal.GetHINSTANCE  _(System.Reflection.Assembly.GetExecutingAssembly.GetModules()  _(0)).ToInt32()&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:red;"&gt;&lt;em&gt;Check for a previous  instance&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;VB6&lt;br /&gt;&lt;span style="font-family:Courier New;"&gt;App.PrevInstance &lt;br /&gt;&lt;br /&gt;VB7&lt;br /&gt;&lt;span style="font-family:Courier New;"&gt;Function PrevInstance() As  Boolean&lt;br /&gt;&lt;/span&gt;&lt;span nd="6"  style="font-family:Courier New;"&gt;If  Ubound(Diagnostics.Process.GetProcessesByName(Diagnostics.Process.GetCurrentProcess)&lt;/span&gt;&lt;span style="font-family:Courier New;"&gt;.ProcessName)) &gt; 0 Then&lt;/span&gt;&lt;span style="font-family:Courier New;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Courier New;"&gt;     Return  True&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Courier New;"&gt;Else&lt;br /&gt;     Return False  &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Courier New;"&gt;End If&lt;br /&gt;&lt;br /&gt;End  Sub&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt; &lt;ul&gt;&lt;li&gt; &lt;div align="left"&gt;&lt;span style="font-family:Courier New;"&gt;&lt;span style="font-family:Times New Roman;"&gt;&lt;strong&gt;Graphics&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Courier New;"&gt;&lt;span style="font-family:Times New Roman;"&gt;&lt;em&gt;&lt;span style="color:red;"&gt;Load a  picture&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/em&gt;VB6&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Courier New;"&gt;Picture1.Picture =  LoadPicture(&lt;em&gt;path&lt;/em&gt;)&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Courier New;"&gt;&lt;span style="font-family:Courier New;"&gt;&lt;span style="font-family:Times New Roman;"&gt;&lt;br /&gt;VB7&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Courier New;"&gt;Dim img As Image =  Image.FromFile(&lt;em&gt;path&lt;/em&gt;)&lt;br /&gt;Picture1.Image = img&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Times New Roman;"&gt;&lt;em&gt;&lt;span style="color:red;"&gt;Load a  icon&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/em&gt;VB6&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Courier New;"&gt;Me.Icon = LoadPicture(&lt;em&gt;path&lt;/em&gt;)&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Courier New;"&gt;&lt;span style="font-family:Times New Roman;"&gt;&lt;br /&gt;VB7&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Courier New;"&gt;Dim ico As New Icon(&lt;em&gt;path&lt;/em&gt;)&lt;br /&gt;Me.Icon =  ico&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Courier New;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li&gt; &lt;div align="left"&gt;&lt;span style="font-family:Courier New;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman;"&gt;File I/0&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-family:Courier New;"&gt;&lt;br /&gt;&lt;span style="font-family:Times New Roman;"&gt;&lt;em&gt;&lt;span style="color:red;"&gt;Read  from a file&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/em&gt;VB6&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Courier New;"&gt;Open &lt;em&gt;path &lt;/em&gt;For Input As #1&lt;br /&gt;Line Input #1,  buffer&lt;br /&gt;Close #1&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Times New Roman;"&gt;VB7&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Courier New;"&gt;Dim fs As  FileStream = File.Open&lt;em&gt;(path,&lt;/em&gt; FileMode.OpenOrCreate, _  FileAccess.Read)&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Courier New;"&gt;Dim sr As New  StreamReader(fs)&lt;br /&gt;Buffer = sr.ReadLine&lt;br /&gt;sr.Close&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Times New Roman;"&gt;&lt;em&gt;&lt;span style="color:red;"&gt;Write to a  file&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/em&gt;VB6&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Courier New;"&gt;Open  &lt;em&gt;path &lt;/em&gt;For Output As #1&lt;br /&gt;Write #1, buffer&lt;br /&gt;Close #1&lt;/span&gt;&lt;span style="font-family:Courier New;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Courier New;"&gt;&lt;span style="font-family:Times New Roman;"&gt;VB7 &lt;span style="font-family:Courier New;"&gt;&lt;br /&gt;Dim fs As FileStream = File.Open(&lt;em&gt;path&lt;/em&gt;,  FileMode.OpenOrCreate, _&lt;br /&gt;FileAccess.Write)&lt;br /&gt;Dim sr As New  StreamWriter(fs)&lt;br /&gt;sr.Write(buffer)&lt;br /&gt;sr.Close&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Courier New;"&gt;&lt;span style="font-family:Times New Roman;"&gt;&lt;span style="font-family:Courier New;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li&gt; &lt;div align="left"&gt;&lt;span style="font-family:Courier New;"&gt;&lt;span style="font-family:Times New Roman;"&gt;&lt;span style="font-family:Courier New;"&gt;&lt;span style="font-family:Times New Roman;"&gt;&lt;strong&gt;Errors&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;em&gt;&lt;span style="color:red;"&gt;Check  for an error&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Courier New;"&gt;&lt;span style="font-family:Times New Roman;"&gt;&lt;span style="font-family:Courier New;"&gt;&lt;span style="font-family:Times New Roman;"&gt;&lt;br /&gt;&lt;br /&gt;VB6&lt;br /&gt;&lt;span style="font-family:Courier New;"&gt;On Error Goto  errhandler&lt;br /&gt;...&lt;br /&gt;errhandler:&lt;br /&gt;MsgBox(err.Description)&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Times New Roman;"&gt;VB7&lt;br /&gt;&lt;span nd="7"  style="font-family:Courier New;"&gt;Try&lt;br /&gt;     ...&lt;br /&gt;     Throw New Exception("error description goes  here")&lt;br /&gt;     ...&lt;br /&gt;Catch e as Exception&lt;br /&gt;     MsgBox(e.Description)&lt;br /&gt;End  Try&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;/li&gt;&lt;li&gt; &lt;div align="left"&gt;&lt;span style="font-family:Times New Roman, Times, serif;"&gt;&lt;b&gt;Events  &lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:Times New Roman;"&gt;&lt;span style="font-family:Courier New;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span nd="8"  style="font-family:Times New Roman, Times, serif;"&gt;&lt;i&gt;&lt;span style="color:#ff0000;"&gt;Handling an  event&lt;/span&gt;&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;In VB7, there is a new keyword called AddHandler.  AddHandler makes handling events a snap.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Courier New, Courier, mono;"&gt;AddHandler &lt;i&gt;object.event, &lt;/i&gt;AddressOf&lt;i&gt;  procedure&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;a href="http://www.text-link-ads.com/starter_kit.php?ref=42224"&gt;Earn $100 for just a signup!&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/731722776229922433-7090616595766705802?l=kodekruncher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodekruncher.blogspot.com/feeds/7090616595766705802/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=731722776229922433&amp;postID=7090616595766705802' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/7090616595766705802'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/7090616595766705802'/><link rel='alternate' type='text/html' href='http://kodekruncher.blogspot.com/2006/11/how-do-i-do-it-in-vbnet.html' title='How do I do it in VB.NET?'/><author><name>zoul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://i14.tinypic.com/5x4a0kp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-731722776229922433.post-3563742387505824578</id><published>2006-11-27T22:55:00.000+08:00</published><updated>2006-11-27T23:02:30.281+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><title type='text'>C++ Intro…</title><content type='html'>&lt;p class="MsoNormal"&gt;Before you write your first program. Start with a prayer to  God, that you “Succeed in learning C++”.&lt;/p&gt; &lt;p class="MsoNormal"&gt; &lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p class="MsoNormal"&gt;Now that all your hopes are high let us start. Please enter  the following code exactly as shown, without any questions. (This is to inform  you that the explanation will follow after the code.)&lt;/p&gt; &lt;p class="MsoNormal"&gt; &lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;table style="border: medium none ; margin-left: 0.2in; border-collapse: collapse;" border="1" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt; &lt;tr style="height: 73.75pt;"&gt; &lt;td style="border: 0.5pt solid windowtext; padding: 0in 5.4pt; width: 314.55pt; height: 73.75pt;" valign="top" width="419"&gt; &lt;ol style="margin-top: 0in;" type="1"&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;#include&lt;/span&gt; &lt;iostream.h&gt;  &lt;/iostream.h&gt;&lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;&lt;span style=""&gt;&lt;span style="color: rgb(0, 0, 255);"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;int&lt;/span&gt; main()  &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;{  &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;cout&lt;&lt; “ What you  do is what you get”;  &lt;/li&gt;&lt;li class="MsoNormal" style=""&gt;}  &lt;/li&gt;&lt;/ol&gt; &lt;p class="MsoNormal"&gt; &lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;p class="MsoNormal"&gt; &lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p class="MsoNormal"&gt;Although this may sound strange, once you &lt;b&gt;compile&lt;/b&gt; this  program you are a programmer.&lt;/p&gt; &lt;p class="MsoNormal"&gt;&lt;&lt;b&gt;Warning&lt;/b&gt;: The numbered indentation is not to be  included with the code while typing. It is only for your convenience&gt;&lt;/p&gt; &lt;p class="MsoNormal"&gt; &lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p class="MsoNormal"&gt;Now let us read the first line. You read it as “Hash/Pound  include eye-oh-stream-dot-h”&lt;/p&gt; &lt;p class="MsoNormal"&gt; &lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;table style="border: medium none ; margin-left: 5.4pt; width: 441pt; border-collapse: collapse;" border="1" cellpadding="0" cellspacing="0" width="588"&gt; &lt;tbody&gt; &lt;tr style="height: 27.4pt;"&gt; &lt;td style="border: 0.5pt solid windowtext; padding: 0in 5.4pt; width: 441pt; height: 27.4pt;" valign="top" width="588"&gt; &lt;p class="MsoNormal"&gt;&lt;b&gt;Iostream&lt;/b&gt;: Input Output stream. Don’t learn the  definitions they automatically come to you.&lt;/p&gt; &lt;p class="MsoNormal"&gt; &lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;p class="MsoNormal"&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal"&gt;You don’t pronounce the brackets while reading it loud, but  is it a part of the code.&lt;/p&gt; &lt;table style="border: medium none ; border-collapse: collapse;" border="1" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td style="border: 0.5pt solid windowtext; padding: 0in 5.4pt; width: 6.15in;" valign="top" width="590"&gt; &lt;p class="MsoNormal"&gt;&lt;b&gt;.h&lt;/b&gt;: Dot h files are known as header files. We place  them in the beginning of the source code; it is like adding a DVD-Player to your  deck. You don’t create &lt;b&gt;.h&lt;/b&gt; files for now, nor would you add a DVD-Player  to your deck each time you want to use it.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 0.5pt 0.5pt; padding: 0in 5.4pt; width: 6.15in;" valign="top" width="590"&gt; &lt;p class="MsoNormal"&gt;&lt;b&gt;Iostream.h&lt;/b&gt;: Ok now you know what &lt;i&gt;iostream&lt;/i&gt; and  dot h stand for. If the terms &lt;i&gt;input&lt;/i&gt; &amp; &lt;i&gt;output&lt;/i&gt; haven’t shed any  light yet, keep reading. &lt;i&gt;Iostream&lt;/i&gt; lets your program accept  info/data/content or publish the same to the  screen.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;p class="MsoNormal"&gt; &lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p class="MsoNormal"&gt;Wait we are still on the first line. Read the first line of  source &lt;b&gt;code &lt;/b&gt;again!&lt;/p&gt; &lt;p class="MsoNormal"&gt; &lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p class="MsoNormal"&gt;“Hash/Pound include eye-oh-stream-dot-h”&lt;/p&gt; &lt;p class="MsoNormal"&gt; &lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p class="MsoNormal"&gt;The Hash include is the standard form for telling the  compiler that you want to include the Iostream.h file.&lt;/p&gt; &lt;p class="MsoNormal"&gt; &lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p class="MsoNormal"&gt;Now on line 2 we have &lt;i&gt;int main(). &lt;/i&gt;&lt;span style=""&gt; &lt;/span&gt;Int is read as integer, read main() as main  function. Without line 2 your program cannot work. On line 3 and 5 you have  these {} braces.&lt;/p&gt; &lt;p class="MsoNormal"&gt; &lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p class="MsoNormal"&gt;Between the 2 braces all your code fits in. Make sure you  enter line 4 exactly as it is. Pay attention to the punctuation.&lt;/p&gt; &lt;p class="MsoNormal"&gt;&lt;b&gt;Cout&lt;/b&gt;: See cout – It is the command with which you  display text onto the screen&lt;/p&gt; &lt;p class="MsoNormal"&gt; &lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p class="MsoNormal"&gt;The &lt;&lt;&gt; &lt;/p&gt;&lt;p class="MsoNormal"&gt; &lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt; &lt;p class="MsoNormal"&gt;Line 4 ends with a semi colon, don’t forget to type that,  almost all c++ statements end with that. Now you may finally link, build and  compile the code. Now you receive a message on a black terminal (Dos like):  “What you do is what you get”&lt;/p&gt;&lt;br /&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-weight: normal;font-size:16;" &gt;By:  Amin Patel&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;a href="http://www.text-link-ads.com/starter_kit.php?ref=42224"&gt;Earn $100 for just a signup!&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/731722776229922433-3563742387505824578?l=kodekruncher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodekruncher.blogspot.com/feeds/3563742387505824578/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=731722776229922433&amp;postID=3563742387505824578' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/3563742387505824578'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/3563742387505824578'/><link rel='alternate' type='text/html' href='http://kodekruncher.blogspot.com/2006/11/c-intro.html' title='C++ Intro…'/><author><name>zoul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://i14.tinypic.com/5x4a0kp.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-731722776229922433.post-8538811111942721338</id><published>2006-11-26T15:45:00.000+08:00</published><updated>2006-11-26T15:49:46.582+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB'/><category scheme='http://www.blogger.com/atom/ns#' term='Code'/><title type='text'>Open Read/Write File Code Download</title><content type='html'>i've decided to upload a sample code of my two previous post. &lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.freefilehost.co.uk/849911"&gt;&lt;/a&gt;to download the code please click &lt;a href="http://www.freefilehost.co.uk/849911"&gt;here&lt;/a&gt;&lt;br /&gt;the password is: &lt;span style="color: rgb(153, 51, 0);"&gt;kodekruncher&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;a href="http://www.text-link-ads.com/starter_kit.php?ref=42224"&gt;Earn $100 for just a signup!&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/731722776229922433-8538811111942721338?l=kodekruncher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodekruncher.blogspot.com/feeds/8538811111942721338/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=731722776229922433&amp;postID=8538811111942721338' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/8538811111942721338'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/8538811111942721338'/><link rel='alternate' type='text/html' href='http://kodekruncher.blogspot.com/2006/11/open-readwrite-file-code-download.html' title='Open Read/Write File Code Download'/><author><name>zoul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://i14.tinypic.com/5x4a0kp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-731722776229922433.post-1156564696074316863</id><published>2006-11-25T23:23:00.000+08:00</published><updated>2006-11-25T23:28:13.086+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB'/><title type='text'>VB: Open Save File</title><content type='html'>&lt;div style="text-align: left;"&gt;    Public Function SaveFile(File2Save As String, txtContent As String)&lt;br /&gt;&lt;br /&gt;   'Variable Declaration&lt;br /&gt;   Dim fLen As Integer&lt;br /&gt;   &lt;br /&gt;   'Get the free file number&lt;br /&gt;   fLen = FreeFile&lt;br /&gt;&lt;br /&gt;   'Create Specified File&lt;br /&gt;   Open File2Save For Output As #fLen&lt;br /&gt;       Print #fLen, txtContent 'save the txtContent to the created file&lt;br /&gt;   Close #fLen 'Close the opened&lt;br /&gt;&lt;br /&gt;   End Function&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;a href="http://www.text-link-ads.com/starter_kit.php?ref=42224"&gt;Earn $100 for just a signup!&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/731722776229922433-1156564696074316863?l=kodekruncher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodekruncher.blogspot.com/feeds/1156564696074316863/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=731722776229922433&amp;postID=1156564696074316863' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/1156564696074316863'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/1156564696074316863'/><link rel='alternate' type='text/html' href='http://kodekruncher.blogspot.com/2006/11/vb-open-save-file.html' title='VB: Open Save File'/><author><name>zoul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://i14.tinypic.com/5x4a0kp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-731722776229922433.post-5981673502796098420</id><published>2006-11-24T19:17:00.000+08:00</published><updated>2006-11-25T21:08:22.891+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB'/><title type='text'>VB: Open Read File</title><content type='html'>&lt;span&gt;&lt;br/&gt;&lt;br/&gt;Public Function&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;ReadFile&lt;/span&gt;(File2Open As &lt;span&gt;String&lt;/span&gt;) &lt;span&gt;As String&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;span&gt;'Variable Declaration&lt;/span&gt;&lt;br/&gt;&lt;span&gt;Dim&lt;/span&gt; fLen &lt;span&gt;As Integer&lt;/span&gt;&lt;br/&gt;&lt;span&gt;Dim&lt;/span&gt; tmp  &lt;span&gt;As String&lt;/span&gt;&lt;br/&gt;&lt;span&gt;Dim&lt;/span&gt; val &lt;span&gt;As String&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;span&gt;'Get the free file number&lt;/span&gt;&lt;br/&gt;    fLen = FreeFile&lt;br/&gt;&lt;br/&gt;&lt;span&gt;'Open Specified declared in File2Open Variable&lt;/span&gt;&lt;br/&gt;&lt;span&gt;Open&lt;/span&gt; File2Open &lt;span&gt;For Input As&lt;/span&gt; #fLen&lt;br/&gt;                    &lt;br/&gt;       &lt;span&gt; Do&lt;/span&gt; &lt;span&gt;' Start of "DO" Loop&lt;/span&gt;&lt;br/&gt;                            &lt;span&gt;Line Input&lt;/span&gt; #fLen, tmp&lt;span&gt; ' Read the line in a file and store it in TMP Variable&lt;/span&gt;&lt;br/&gt;                            val = val &amp; vbCrLf &amp;amp; tmp &lt;span&gt;' Store the readed line in the Val variable&lt;/span&gt;&lt;br/&gt;                &lt;span&gt;Loop Until&lt;/span&gt; EOF(fLen) &lt;span&gt;'End Loop until Eof file is True&lt;/span&gt; &lt;br/&gt;&lt;br/&gt;&lt;span&gt;Close&lt;/span&gt; #fLen&lt;span&gt; ' Close the opened file&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;ReadFile = val&lt;span&gt; ' pass value&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;span&gt;End Function&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;div class="blogger-post-footer"&gt;&lt;a href="http://www.text-link-ads.com/starter_kit.php?ref=42224"&gt;Earn $100 for just a signup!&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/731722776229922433-5981673502796098420?l=kodekruncher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodekruncher.blogspot.com/feeds/5981673502796098420/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=731722776229922433&amp;postID=5981673502796098420' title='12 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/5981673502796098420'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/5981673502796098420'/><link rel='alternate' type='text/html' href='http://kodekruncher.blogspot.com/2006/11/vb-readwrite.html' title='VB: Open Read File'/><author><name>zoul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://i14.tinypic.com/5x4a0kp.jpg'/></author><thr:total>12</thr:total></entry><entry><id>tag:blogger.com,1999:blog-731722776229922433.post-2697366657952624134</id><published>2006-11-23T23:50:00.000+08:00</published><updated>2006-11-24T00:00:48.408+08:00</updated><title type='text'>Welcome to The Code Cruncher</title><content type='html'>This Blog is all about programming and and i will be sharing some code that I made and some code that i would find intresting and usefull. Hope you guys will find this blog usefull&lt;br /&gt;&lt;br /&gt;Programming Codes that would be posted here are.&lt;br /&gt;&lt;a href="http://www.text-link-ads.com/starter_kit.php?ref=42224"&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Visual Basic&lt;/li&gt;&lt;li&gt;Visual Basic.Net&lt;/li&gt;&lt;li&gt;ASP / ASP.NET&lt;/li&gt;&lt;li&gt;Visual C#/ C++ /C&lt;/li&gt;&lt;li&gt;Java&lt;/li&gt;&lt;li&gt;Pascal &lt;/li&gt;&lt;li&gt;ASM&lt;/li&gt;&lt;/ul&gt;&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;a href="http://www.text-link-ads.com/starter_kit.php?ref=42224"&gt;Earn $100 for just a signup!&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/731722776229922433-2697366657952624134?l=kodekruncher.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kodekruncher.blogspot.com/feeds/2697366657952624134/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=731722776229922433&amp;postID=2697366657952624134' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/2697366657952624134'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/731722776229922433/posts/default/2697366657952624134'/><link rel='alternate' type='text/html' href='http://kodekruncher.blogspot.com/2006/11/welcome-to-code-cruncher.html' title='Welcome to The Code Cruncher'/><author><name>zoul</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://i14.tinypic.com/5x4a0kp.jpg'/></author><thr:total>0</thr:total></entry></feed>
