<?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:blogger='http://schemas.google.com/blogger/2008' 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-794787326736776526</id><updated>2026-08-02T14:00:37.259+03:00</updated><category term="c#"/><category term="code"/><category term="vb.net"/><category term="dotnet"/><category term="drivers"/><category term="GDI+"/><category term="ajax"/><category term="algorithm"/><category term="asp.net"/><category term="backup"/><category term="device"/><category term="dll"/><category term="enumeration"/><category term="exe"/><category term="kill process"/><category term="process"/><category term="regex"/><category term="regular expression"/><category term="resources"/><category term="string"/><category term="struct"/><category term="visual studio"/><category term="xml"/><title type='text'>Arabic Programmer DotNet</title><subtitle type='html'>Learn programming in .NET environment by both C# &amp;amp; VB.Net languages step by step.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://arab-prog-dotnet.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/794787326736776526/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://arab-prog-dotnet.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07205416342873541287</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>17</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-794787326736776526.post-6752097520075412770</id><published>2011-02-05T22:44:00.004+02:00</published><updated>2011-04-23T12:45:29.005+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="code"/><category scheme="http://www.blogger.com/atom/ns#" term="dotnet"/><category scheme="http://www.blogger.com/atom/ns#" term="drivers"/><title type='text'>How to make program to get device drivers - Part 2</title><content type='html'>&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;In order to get device drivers which  installed on your computer we will write method its name (GetDriversList), this  method is it most important part of our program which it consists of sub-method  its name (GetDriver), which get and store driver informaion.&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;So the first stage is to bring a list  containing the device drivers installed on your computer, which, as we mentioned  previously that it found in the Registry Editor, and then brought the  information contained in the key of each driver.&lt;br /&gt;
&amp;nbsp; &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;To store information about each driver, you  declare the structure (DriverInfo) containing 6 fields to store the name,  version, date, manufacture ....... of each driver.&lt;br /&gt;
&amp;nbsp; &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;The method that bring in device drivers  (GetDriversList), supplied with a parameter determines if we want to get all the  drivers, including drivers that are installed with the system or only drivers  that you installed after you install the system. In order to get that we test  the value of the manufacturer (drvManufacture) If it is equal to (Microsoft),  this means that the driver was already installed with the system and we do not  need to do a backup copy of it.&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;struct&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;DriverInfo&lt;/span&gt;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;//structure for storing driver informations&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt; drvName;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt; drvVersion;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt; drvManufacture;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt; drvDate;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt; drvInfPath;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt; drvInfSection;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;codeview&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;//this methode collect and store driver info using the given driver path&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #2b91af; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;DriverInfo&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt; GerDriver(&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt; DriverPath)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #2b91af;&quot;&gt;DriverInfo&lt;/span&gt; temp = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;DriverInfo&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;try&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;//open the key which contains driver info&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #2b91af;&quot;&gt;RegistryKey&lt;/span&gt; tKey = &lt;span style=&quot;color: #2b91af;&quot;&gt;Registry&lt;/span&gt;.LocalMachine.OpenSubKey(DriverPath);&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; temp.drvManufacture = tKey.GetValue(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;ProviderName&quot;&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;&quot;&lt;/span&gt;).ToString();&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; temp.drvName = tKey.GetValue(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;DriverDesc&quot;&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;&quot;&lt;/span&gt;).ToString();&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; temp.drvDate = tKey.GetValue(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;DriverDate&quot;&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;&quot;&lt;/span&gt;).ToString();&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; temp.drvVersion = tKey.GetValue(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;DriverVersion&quot;&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;&quot;&lt;/span&gt;).ToString();&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; temp.drvInfPath = tKey.GetValue(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;InfPath&quot;&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;&quot;&lt;/span&gt;).ToString();&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; temp.drvInfSection = tKey.GetValue(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;InfSection&quot;&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;&quot;&lt;/span&gt;).ToString();&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;catch&lt;/span&gt; (&lt;span style=&quot;color: #2b91af;&quot;&gt;SecurityException&lt;/span&gt; exs)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #2b91af;&quot;&gt;MessageBox&lt;/span&gt;.Show(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;SecurityException:\n&quot;&lt;/span&gt; + exs.Message);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;catch&lt;/span&gt; (&lt;span style=&quot;color: #2b91af;&quot;&gt;Exception&lt;/span&gt; ex)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #2b91af;&quot;&gt;MessageBox&lt;/span&gt;.Show(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;GetDriver\\Error:\n&quot;&lt;/span&gt; + ex.Message);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;return&lt;/span&gt; temp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt; GetDriversList(&lt;span style=&quot;color: blue;&quot;&gt;bool&lt;/span&gt; bAllDrivers = &lt;span style=&quot;color: blue;&quot;&gt;true&lt;/span&gt;)&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;//main methode in our program&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;{&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;//bAllDrivers determines if we will extract both windows and device drivers or &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;&amp;nbsp;&amp;nbsp; //just devices drivers&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; i, j, iCnt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;//path = @&quot;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class&quot;;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #2b91af;&quot;&gt;RegistryKey&lt;/span&gt; hKey = &lt;span style=&quot;color: #2b91af;&quot;&gt;Registry&lt;/span&gt;.LocalMachine.OpenSubKey(&lt;span style=&quot;color: #a31515;&quot;&gt;@&quot;SYSTEM\CurrentControlSet\Control\Class\&quot;&lt;/span&gt;, &lt;span style=&quot;color: blue;&quot;&gt;false&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;[] subKeys = hKey.GetSubKeyNames();&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;[] guidSubKeys;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt; (i = 0; i &amp;lt; subKeys.Length; i++) &lt;span style=&quot;color: green;&quot;&gt;//loop through all subkeys&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;//get the subkeys of the driver key&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; guidSubKeys = hKey.OpenSubKey(subKeys[i].ToString()).GetSubKeyNames();&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //loop through all subkeys of the driver key&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt; (j = 0; j &amp;lt; guidSubKeys.Length; j++)&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //this key exist in all drivers keys and it doesn&#39;t benefit us so we skip it&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt; (guidSubKeys[j].ToUpper() == &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;PROPERTIES&quot;&lt;/span&gt;)&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&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; &lt;span style=&quot;color: blue;&quot;&gt;continue&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;try&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;span style=&quot;color: green;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;//delete the first part of the path &quot;HKEY_LOCAL_MACHINE\&quot;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&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; &lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt; path = hKey.Name.Substring(19);&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&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; path += &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;\\&quot;&lt;/span&gt; + subKeys[i].ToString() + &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;\\&quot;&lt;/span&gt; +&amp;nbsp;&amp;nbsp;&amp;nbsp; guidSubKeys[j].ToString();&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&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; &lt;span style=&quot;color: green;&quot;&gt;//path now will be:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: green;&quot;&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; //SYSTEM\CurrentControlSet\Control\Class\subkey[i]\guidSubkey[j]&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&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; &lt;span style=&quot;color: #2b91af;&quot;&gt;DriverInfo&lt;/span&gt; tmp = GerDriver(path); &lt;span style=&quot;color: green;&quot;&gt;//collect driver info&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&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; &lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt; (tmp.drvName.Trim() != &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;&quot;&lt;/span&gt;) &lt;span style=&quot;color: green;&quot;&gt;//add the driver to gridview&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&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; {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&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; &lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt; (bAllDrivers)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;goto&lt;/span&gt; AddIt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&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; &lt;span style=&quot;color: blue;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt; (bAllDrivers == &lt;span style=&quot;color: blue;&quot;&gt;false&lt;/span&gt; &amp;amp;&amp;amp; (tmp.drvManufacture.ToUpper() != &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;MICROSOFT&quot;&lt;/span&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;goto&lt;/span&gt; AddIt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&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; &lt;span style=&quot;color: blue;&quot;&gt;else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;continue&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&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; AddIt:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&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; lvwDrivers.Items.Add(tmp.drvName);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&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; iCnt = lvwDrivers.Items.Count - 1;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&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; lvwDrivers.Items[iCnt].SubItems.Add(tmp.drvManufacture);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&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; lvwDrivers.Items[iCnt].SubItems.Add(tmp.drvDate);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&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; lvwDrivers.Items[iCnt].SubItems.Add(tmp.drvVersion);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&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; lvwDrivers.Items[iCnt].SubItems.Add(tmp.drvInfPath);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&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; lvwDrivers.Items[iCnt].SubItems.Add(tmp.drvInfSection);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&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; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;catch&lt;/span&gt; (&lt;span style=&quot;color: #2b91af;&quot;&gt;SecurityException&lt;/span&gt; ex)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&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; &lt;span style=&quot;color: #2b91af;&quot;&gt;MessageBox&lt;/span&gt;.Show(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;SecurityException In GetDriversList:\n&quot;&lt;/span&gt; + &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Key: &quot;&lt;/span&gt; + subKeys[i].ToString() + &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;\\&quot;&lt;/span&gt; + guidSubKeys[j].ToString());&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&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; &lt;span style=&quot;color: blue;&quot;&gt;continue&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;catch&lt;/span&gt; (&lt;span style=&quot;color: #2b91af;&quot;&gt;NullReferenceException&lt;/span&gt; ex)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&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; &lt;span style=&quot;color: #2b91af;&quot;&gt;MessageBox&lt;/span&gt;.Show(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;NullReferenceException IN GetDriversList:\n&quot;&lt;/span&gt; + ex.Message);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arab-prog-dotnet.blogspot.com/feeds/6752097520075412770/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arab-prog-dotnet.blogspot.com/2011/02/how-to-make-program-to-get-device_05.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/794787326736776526/posts/default/6752097520075412770'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/794787326736776526/posts/default/6752097520075412770'/><link rel='alternate' type='text/html' href='http://arab-prog-dotnet.blogspot.com/2011/02/how-to-make-program-to-get-device_05.html' title='How to make program to get device drivers - Part 2'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07205416342873541287</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-794787326736776526.post-4560249286922178996</id><published>2011-02-03T23:39:00.001+02:00</published><updated>2011-02-03T23:43:21.537+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="backup"/><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="device"/><category scheme="http://www.blogger.com/atom/ns#" term="drivers"/><title type='text'>How to make program to get device drivers</title><content type='html'>&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Where do we find device drivers??&lt;/span&gt;&lt;br /&gt;
We can we find device drivers in the  registry editor and in the following key:&lt;br /&gt;
HKEY_LOCAL_MACHINE \ SYSTEM \  CurrentControlSet \ Control \ Class&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgKn5o7LGKGiREc8UGpxav97_c_jqojDizmBR8IfeppyhpetKjqAFQyMnAh-CNCxOv4nZhkwN4PZdF9kTlMFoaumPFZZsDArYEBRSrTcgFonThENALzax-33vGCJAlOkk5mFLkeFm3zwk/s1600/drivers.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgKn5o7LGKGiREc8UGpxav97_c_jqojDizmBR8IfeppyhpetKjqAFQyMnAh-CNCxOv4nZhkwN4PZdF9kTlMFoaumPFZZsDArYEBRSrTcgFonThENALzax-33vGCJAlOkk5mFLkeFm3zwk/s1600/drivers.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Where this key (Class) contains many of the subkeys that represent device  drivers, as we see in the picture that the names of these keys is a  (GUID)&lt;br /&gt;
Under these subkeys we find other sub-keys have their names, like  this: 0000-0001-0002 - etc.&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;
In these keys we find the required information,  as we see there are values in these keys contain information on device drivers,  most important of these values are:&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt; &lt;u&gt;&lt;b&gt;DriverDesc: &lt;/b&gt;&lt;/u&gt;which represents the name of the driver&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;u&gt;DriverVersion: &lt;/u&gt;&lt;/b&gt;which  is the version of the driver&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;u&gt;DriverDate: &lt;/u&gt;&lt;/b&gt;which is the date the driver&lt;/li&gt;
&lt;li&gt;&lt;u&gt;&lt;b&gt;InfPath&lt;/b&gt;&lt;/u&gt;: which represents the name of the Inf file for this this driver,  which is located in the folder: C: \ Windows \ Inf&lt;/li&gt;
&lt;li&gt;&lt;u&gt;&lt;b&gt;ProviderName: &lt;/b&gt;&lt;/u&gt;which  represents the name of the manufacturer of this driver, this is very important  since by this value we can identify the drives that install automatically with  the system and its value is &#39;Microsoft&#39;, either to have installed by the user  will be value certainly not a &#39;Microsoft&#39;, but &#39;Intel&#39; Or &#39;Relatek&#39; for  example &lt;/li&gt;
&lt;/ol&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;The program interface:&lt;/span&gt;&lt;br /&gt;
The program interface consists of ListView to  display the drives and their information, as well as some buttons such as: Get  Drivers List and Backup Drivers.&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkTywfnPys6VISVpVDMheci8QJBZBnp_gi1ATVZh4LMRE_Fm9Cj4Zlh_rsrDRYI_BVKPW5LbMgl7Qwef5FsPvx1MsTKfO-mHRefiom0NONkDDuPK13wWwArFZPal5nhAv0hU8GpOm-fcI/s1600/drivers2.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkTywfnPys6VISVpVDMheci8QJBZBnp_gi1ATVZh4LMRE_Fm9Cj4Zlh_rsrDRYI_BVKPW5LbMgl7Qwef5FsPvx1MsTKfO-mHRefiom0NONkDDuPK13wWwArFZPal5nhAv0hU8GpOm-fcI/s1600/drivers2.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;How we will make a backup??&lt;/span&gt;&lt;br /&gt;
We can do it by the Inf file for each driver  (*. Inf)Where contains inside a section containing the names of the files that  make up the driver.&lt;br /&gt;
Our task is to extract the names of the files from the  Inf file and then copy it to the location specified by the user.&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Conclusion:&lt;/span&gt;&lt;br /&gt;
This lesson was just a paving and a brief explanation for the  work through the program in general .. It sounds easy for a moment, but its  implementation will be a little harder, for reasons I will mention in other  parts of this lesson, but surely there is nothing difficult or impossible in the  world of programming.&lt;/div&gt;&lt;div style=&quot;color: red; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;u&gt;Author: Abdullah Alezzo&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arab-prog-dotnet.blogspot.com/feeds/4560249286922178996/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arab-prog-dotnet.blogspot.com/2011/02/how-to-make-program-to-get-device.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/794787326736776526/posts/default/4560249286922178996'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/794787326736776526/posts/default/4560249286922178996'/><link rel='alternate' type='text/html' href='http://arab-prog-dotnet.blogspot.com/2011/02/how-to-make-program-to-get-device.html' title='How to make program to get device drivers'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07205416342873541287</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgKn5o7LGKGiREc8UGpxav97_c_jqojDizmBR8IfeppyhpetKjqAFQyMnAh-CNCxOv4nZhkwN4PZdF9kTlMFoaumPFZZsDArYEBRSrTcgFonThENALzax-33vGCJAlOkk5mFLkeFm3zwk/s72-c/drivers.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-794787326736776526.post-2714901794936256160</id><published>2011-01-31T22:51:00.006+02:00</published><updated>2011-02-01T11:52:33.086+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="GDI+"/><title type='text'>GDI+ Introducation - C#</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;What is&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;GDI+ : &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;This&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;technique&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;is&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;the upgraded version&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;of&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;the&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;GDI&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;are used&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;in the&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;drawing&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;for the&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;making&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;new tools&lt;/span&gt;&lt;span title=&quot;Click for alternate translations&quot;&gt;, or&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;for any purpose that&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;needs&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;to&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;draw such a&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;chart&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;...&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Principles&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;the&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;GDI +:&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Create&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;a new project&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Windows Forms Application,&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;and then&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;place&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;a button&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;on the&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;form&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;and type&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;in the&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;event&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Click:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;Graphics&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt; myg = &lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.CreateGraphics();&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;Pen&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt; myp = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Pen&lt;/span&gt;(&lt;span style=&quot;color: #2b91af;&quot;&gt;Brushes&lt;/span&gt;.Red, 2);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;myg.DrawLine(myp, 0, 0, &lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.Width, &lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.Height);&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt; line-height: 115%;&quot;&gt;myg.Dispose();&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Try the&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;code&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;...&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;The code&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;will draw&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;a red line&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;of the&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;upper-right corner&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;of the&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;form&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;to&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;the lower right corner&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;...&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;b&gt;&lt;u&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;What&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;happened?&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;When&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;we&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;declare&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;the&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Graphics&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;object&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;to be&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;used,&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;we did so&lt;/span&gt;&lt;span title=&quot;Click for alternate translations&quot;&gt;, as&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;shown&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;and&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;as we&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;draw&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;outside&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Paint&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;event&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;you must&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;use this&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;way&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;...&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;When&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;we&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;declare&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;the object&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Pen&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;we have&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;specify&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;the red color&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;and width&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;2 pixel ...&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;We&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;draw a&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;line&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;by the&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;variable&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;myg&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;which&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;we declare it&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Graphics&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;by the&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;the sub&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;DrawLine&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;blockquote&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;This sub is used&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;as follows&lt;/span&gt;&lt;span title=&quot;Click for alternate translations&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div class=&quot;codeview&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;DrawLine(FirstX, FirstY, SecX, SecY);&lt;/span&gt; &lt;/div&gt;&lt;br /&gt;
&lt;u&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Examples:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;li&gt;Drawing dotted frame:&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;Graphics&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt; myg = &lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.CreateGraphics();&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;Pen&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt; myp = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Pen&lt;/span&gt;(&lt;span style=&quot;color: #2b91af;&quot;&gt;Brushes&lt;/span&gt;.Red, 2);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;myp.DashStyle = System.Drawing.Drawing2D.&lt;span style=&quot;color: #2b91af;&quot;&gt;DashStyle&lt;/span&gt;.DashDotDot;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;myg.DrawRectangle(myp, 5, 5, 100, 100);&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt; line-height: 115%;&quot;&gt;myg.Dispose();&lt;/span&gt;&lt;/div&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;li&gt;&lt;span class=&quot;short_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Draw&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;a triangle:&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;gt-icon gt-icon-listen-off&quot;&gt;&lt;/span&gt;&lt;span class=&quot;gt-icon-text&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;Graphics&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt; myg = &lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.CreateGraphics();&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;Pen&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt; myp = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Pen&lt;/span&gt;(&lt;span style=&quot;color: #2b91af;&quot;&gt;Brushes&lt;/span&gt;.Red, 2);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;System.Drawing.Drawing2D.&lt;span style=&quot;color: #2b91af;&quot;&gt;GraphicsPath&lt;/span&gt; mypath = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; System.Drawing.Drawing2D.&lt;span style=&quot;color: #2b91af;&quot;&gt;GraphicsPath&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;mypath.AddLine(&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Point&lt;/span&gt;(10, 10), &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Point&lt;/span&gt;(50, 50));&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;mypath.AddLine(&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Point&lt;/span&gt;(50, 50), &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Point&lt;/span&gt;(10, 50));&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;mypath.AddLine(&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Point&lt;/span&gt;(10, 50), &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Point&lt;/span&gt;(10, 10));&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;myg.DrawPath(myp, mypath);&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt; line-height: 115%;&quot;&gt;myg.Dispose();&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;li&gt;&lt;span class=&quot;short_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Fill&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;a rectangle:&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;Graphics&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt; myg = &lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.CreateGraphics();&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;myg.FillRectangle(&lt;span style=&quot;color: #2b91af;&quot;&gt;Brushes&lt;/span&gt;.Gray, &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Rectangle&lt;/span&gt;(50, 50, 400, 400));&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;myg.Dispose();&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;blockquote&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;This was&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;just a&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;simple introduction to&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;dealing&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;with the&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;2D&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;graphics&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;library&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;using&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;GDI + ...&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;And there is still&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;more&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;to&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;learn&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;span class=&quot;short_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;gt-icon gt-icon-listen-off&quot;&gt;&lt;/span&gt;&lt;span class=&quot;gt-icon-text&quot;&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arab-prog-dotnet.blogspot.com/feeds/2714901794936256160/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arab-prog-dotnet.blogspot.com/2011/01/gdi-introducation-c.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/794787326736776526/posts/default/2714901794936256160'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/794787326736776526/posts/default/2714901794936256160'/><link rel='alternate' type='text/html' href='http://arab-prog-dotnet.blogspot.com/2011/01/gdi-introducation-c.html' title='GDI+ Introducation - C#'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07205416342873541287</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-794787326736776526.post-8376950630336776425</id><published>2011-01-30T22:19:00.003+02:00</published><updated>2011-02-01T11:34:35.091+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="dll"/><category scheme="http://www.blogger.com/atom/ns#" term="exe"/><category scheme="http://www.blogger.com/atom/ns#" term="resources"/><title type='text'>Tip: Adding files to your program and extract them when need</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Add&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;executable files&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;or&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;other&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;files,&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;and then&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;extract it&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;from the&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;program&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;in one line&lt;/span&gt;&lt;span title=&quot;Click for alternate translations&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span title=&quot;Click for alternate translations&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Open&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;a new project&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;first&lt;/span&gt;&lt;span title=&quot;Click for alternate translations&quot;&gt;, then&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;add&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;the files&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;you want&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;as follows&lt;/span&gt;&lt;span title=&quot;Click for alternate translations&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;From the&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;solution explorer&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;window&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Open&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;My project&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;And&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;select&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;resources&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Then&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;select&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;the type of&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;files&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;and&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;select&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Other&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Add&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;files&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;and then&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;clicking&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;on the&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Add existing file&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;And&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;select&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;the files&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;you want&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;&lt;img src=&quot;https://docs.google.com/uc?id=0B7nFnPr_1kmPZDViODRlNDItOGNkOC00YTI2LTkyZTctNmI5YTU2OThlZWVm&amp;amp;hl=en&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;/ol&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;When&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;you want to&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;retrieve&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;files&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;and&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;save them&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;on&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;your computer&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;You only&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;write&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;this line&lt;/span&gt;&lt;span title=&quot;Click for alternate translations&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt; line-height: 115%;&quot;&gt;My&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt; line-height: 115%;&quot;&gt;.Computer.FileSystem.WriteAllBytes(OutPutFN, &lt;span style=&quot;color: blue;&quot;&gt;My&lt;/span&gt;.Resources.ResourceFN, &lt;span style=&quot;color: blue;&quot;&gt;False&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;i&gt;&lt;u&gt;&lt;b&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;OutPutFN:&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;/i&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;a&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;name&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;and location of&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;the file after&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;extraction&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;i&gt;&lt;u&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;My.Resources.ResourceFN:&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;the file&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;that&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;you want to extract&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;i&gt;&lt;u&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;False:&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;If the&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;file&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;exists&lt;/span&gt;&lt;span title=&quot;Click for alternate translations&quot;&gt;, do&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;you want&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;to overwrite it&lt;/span&gt;&lt;span class=&quot;&quot; title=&quot;Click for alternate translations&quot;&gt;?&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;What&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;is the&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;benefit&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;of adding&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;and&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;extracting&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;such&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;files&lt;/span&gt;&lt;span title=&quot;Click for alternate translations&quot;&gt;?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;In terms of&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;safety&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;to the environment of&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;your program&lt;/span&gt;&lt;span title=&quot;Click for alternate translations&quot;&gt;, you can&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;keep&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;a copy&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;of&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;the files&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;on which&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;your program&lt;/span&gt;&lt;span title=&quot;Click for alternate translations&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;and&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;when you&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;damage&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;one of&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;these&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;files,&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;you can&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;restore it&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;this way&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;...&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;And this&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;gives&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;your program&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;additional strength.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arab-prog-dotnet.blogspot.com/feeds/8376950630336776425/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arab-prog-dotnet.blogspot.com/2011/01/tip-adding-files-to-your-program-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/794787326736776526/posts/default/8376950630336776425'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/794787326736776526/posts/default/8376950630336776425'/><link rel='alternate' type='text/html' href='http://arab-prog-dotnet.blogspot.com/2011/01/tip-adding-files-to-your-program-and.html' title='Tip: Adding files to your program and extract them when need'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07205416342873541287</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-794787326736776526.post-4795581746567705158</id><published>2011-01-29T16:10:00.016+02:00</published><updated>2013-10-03T22:23:04.559+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="regex"/><category scheme="http://www.blogger.com/atom/ns#" term="regular expression"/><category scheme="http://www.blogger.com/atom/ns#" term="vb.net"/><title type='text'>Using Regular Expression - VB.NET</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;What is&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Regular Expression?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;It is&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;great&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;technique&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;to search&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;through&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;texts.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Supported&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;by&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;many&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;programming languages.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;It&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;use&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;textual&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;formulas&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;contain&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;some&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;special characters&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;that&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;have&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;special&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;meaning&lt;/span&gt;&lt;span class=&quot;&quot; title=&quot;Click for alternate translations&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Imagine that&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;you&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;want to search&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;emails&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;in a&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;text file&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;or search&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;titles in&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;websites&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;here&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;comes&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;the role of&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;the&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Regular Expression&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;optimal&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;solution&lt;/span&gt;&lt;span class=&quot;&quot; title=&quot;Click for alternate translations&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;The support of&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;framework&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Regular Expression:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Like many&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;programming languages&lt;/span&gt;&lt;span title=&quot;Click for alternate translations&quot;&gt;, the&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;framework&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;supports&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;the&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Regular Expression&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;through a set of&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;classes&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;exist&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;in the space of&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;names&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;System.Text.RegularExpressions.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.text.regularexpressions.regex%28VS.71%29.aspx&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Regex&lt;/span&gt;&lt;/a&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;object&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;is used&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;to search through&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;text&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;on&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;a certain formula&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Declaration&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;the object&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;is&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;like this&lt;/span&gt;&lt;span title=&quot;Click for alternate translations&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span title=&quot;Click for alternate translations&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;m:smallfrac m:val=&quot;off&quot;&gt;    &lt;m:dispdef&gt;    &lt;m:lmargin m:val=&quot;0&quot;&gt;    &lt;m:rmargin m:val=&quot;0&quot;&gt;    &lt;m:defjc m:val=&quot;centerGroup&quot;&gt;    &lt;m:wrapindent m:val=&quot;1440&quot;&gt;    &lt;m:intlim m:val=&quot;subSup&quot;&gt;    &lt;m:narylim m:val=&quot;undOvr&quot;&gt;   &lt;/m:narylim&gt;&lt;/m:intlim&gt; &lt;/m:wrapindent&gt;  &lt;/m:defjc&gt;&lt;/m:rmargin&gt;&lt;/m:lmargin&gt;&lt;/m:dispdef&gt;&lt;/m:smallfrac&gt;&lt;br /&gt;
&lt;div class=&quot;codeview&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Dim&lt;/span&gt; r &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Regex&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt; line-height: 115%;&quot;&gt;r = &lt;span style=&quot;color: blue;&quot;&gt;New&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Regex&lt;/span&gt;(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;abc&quot;&lt;/span&gt;)&lt;/span&gt;&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;&quot; title=&quot;Click for alternate translations&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot;&gt;&lt;span style=&quot;background-color: white;&quot; title=&quot;وبعد ذلك ياتى دور الـ Match الذى يحتوى على النتائج العائده من عملية البحث&quot;&gt;After that comes the role of the &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.text.regularexpressions.match%28VS.71%29.aspx&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Match&lt;/a&gt;, which contains the results of the search operation.&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot; title=&quot;من الجيد اختبار الخاصيه Match.Success قبل محاولة قراءة النتائج.&quot;&gt;It will be a good idea to test &#39;Match.Success&#39; before attempting to read the results:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&lt;m:smallfrac m:val=&quot;off&quot;&gt;    &lt;m:dispdef&gt;    &lt;m:lmargin m:val=&quot;0&quot;&gt;    &lt;m:rmargin m:val=&quot;0&quot;&gt;    &lt;m:defjc m:val=&quot;centerGroup&quot;&gt;    &lt;m:wrapindent m:val=&quot;1440&quot;&gt;    &lt;m:intlim m:val=&quot;subSup&quot;&gt;    &lt;m:narylim m:val=&quot;undOvr&quot;&gt;   &lt;/m:narylim&gt;&lt;/m:intlim&gt; &lt;/m:wrapindent&gt;  &lt;/m:defjc&gt;&lt;/m:rmargin&gt;&lt;/m:lmargin&gt;&lt;/m:dispdef&gt;&lt;/m:smallfrac&gt;&lt;/div&gt;
&lt;div class=&quot;codeview&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Dim&lt;/span&gt; r &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;New&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Regex&lt;/span&gt;(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;abc&quot;&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Dim&lt;/span&gt; m &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Match&lt;/span&gt; = r.Match(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;123abc456&quot;&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;If&lt;/span&gt; m.Success &lt;span style=&quot;color: blue;&quot;&gt;Then&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Found match at position &quot;&lt;/span&gt; &amp;amp; m.Index.ToString())&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;If&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot;&gt;&lt;span style=&quot;background-color: white;&quot; title=&quot;فى الحالة السابقه سيمثل الـ Match اول مجموعة حروف تقابله تساوى الصيغه المراد البحث عنها&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;In the former case the &#39;Match&#39; will be the first characters group that equal to search pattern (i.e. the first result)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot; style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt; but if we want to bring all search results we use Regex.Matches.&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.text.regularexpressions.matchcollection%28VS.71%29.aspx&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;MatchCollection&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;m:smallfrac m:val=&quot;off&quot;&gt;    &lt;m:dispdef&gt;    &lt;m:lmargin m:val=&quot;0&quot;&gt;    &lt;m:rmargin m:val=&quot;0&quot;&gt;    &lt;m:defjc m:val=&quot;centerGroup&quot;&gt;    &lt;m:wrapindent m:val=&quot;1440&quot;&gt;    &lt;m:intlim m:val=&quot;subSup&quot;&gt;    &lt;m:narylim m:val=&quot;undOvr&quot;&gt;   &lt;/m:narylim&gt;&lt;/m:intlim&gt; &lt;/m:wrapindent&gt;  &lt;/m:defjc&gt;&lt;/m:rmargin&gt;&lt;/m:lmargin&gt;&lt;/m:dispdef&gt;&lt;/m:smallfrac&gt;&lt;br /&gt;
&lt;div class=&quot;codeview&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Dim&lt;/span&gt; mc &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;MatchCollection&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Dim&lt;/span&gt; results(20) &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;String&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Dim&lt;/span&gt; matchposition(20) &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Integer&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Dim&lt;/span&gt; r &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;New&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Regex&lt;/span&gt;(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;abc&quot;&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;mc = r.Matches(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;123abc4abcd&quot;&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;For&lt;/span&gt; i &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Integer&lt;/span&gt; = 0 &lt;span style=&quot;color: blue;&quot;&gt;To&lt;/span&gt; mc.Count - 1&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;results(i) = mc(i).Value&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;matchposition(i) = mc(i).Index&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Next&lt;/span&gt; i&lt;/span&gt;&lt;span dir=&quot;RTL&quot; lang=&quot;AR-SA&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot;&gt;&lt;span style=&quot;background-color: white;&quot; title=&quot;كيفية كتابة الصيغ لـ Regular Expression :&quot;&gt;How to write formulas for the Regular Expression:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot; style=&quot;background-color: white; font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot; style=&quot;font-size: large;&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Static&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;text&lt;/span&gt;&lt;span title=&quot;Click for alternate translations&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;If&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;you want to search&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;a word or phrase&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;or a set&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;of&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;characters&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;you can simply&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;write&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;formula&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Example&lt;/span&gt;&lt;span title=&quot;Click for alternate translations&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;codeview&quot;&gt;
&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;I Can write In visual Basic, visual c + + and visual foxpro&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;blockquote&gt;
&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;If&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;we want to&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;search&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;&quot;visual&quot;;&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;will&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;be&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;three outcomes&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Search Results&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;&quot;visual&quot;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot;&gt;&lt;span style=&quot;background-color: white;&quot; title=&quot;البحث عن اى حرف:&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Search for any character: &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot;&gt;&lt;span style=&quot;background-color: white;&quot; title=&quot;نستخدم النقطه &amp;quot;.&amp;quot;&quot;&gt;We use the point &quot;.&quot; &lt;/span&gt;&lt;span title=&quot;لتحل محل اى حرف او رمز&quot;&gt;To replace any character or symbol &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot;&gt;&lt;span title=&quot;لتحل محل اى حرف او رمز&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot;&gt;&lt;span style=&quot;background-color: white;&quot; title=&quot;مثال:&quot;&gt;Example: &lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;div class=&quot;codeview&quot;&gt;
&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot;&gt;&lt;span style=&quot;background-color: white;&quot; title=&quot;مثال:&quot;&gt; &lt;/span&gt;I Have visual basic6, visual basic8, visual basic9 &lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;blockquote&gt;
&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot;&gt;&lt;span title=&quot;للبحث عن: &amp;quot;.basic&amp;quot;&quot;&gt;Search for: &quot;Basic&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot;&gt;&lt;span title=&quot;للبحث عن: &amp;quot;.basic&amp;quot;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot;&gt;&lt;span title=&quot;للبحث عن: &amp;quot;.basic&amp;quot;&quot;&gt;&quot; ; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot;&gt;&lt;span title=&quot;هذا سينتج basic6 و basic8 و basic9&quot;&gt;This will result in basic6 and basic8 and basic9 &lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot;&gt;&lt;span style=&quot;background-color: #ebeff9;&quot; title=&quot;ملحوظه: فى المثال السابق النقطه ساوت ارقام ولكنها يمكن ان تساوى اى رمز&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;u&gt;Note: &lt;/u&gt;&lt;/i&gt;&lt;/b&gt;In the previous example, the point is equal to numbers, but can be equal to any character&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot;&gt;&lt;span style=&quot;background-color: white;&quot; title=&quot;ملحوظه: النقطه تساوى اى حرف او رمز بما فيهم النقطه نفسها اما اذا كنت تريد البحث عن النقطه نفسها يجب ان تسبقها (\) , مثلاً لو اردت البحث عن اسم ملف قصير فى DOS ستحتاج النقطه فيمكنك كتابتها بالشكل&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;i&gt;Note:  &lt;/i&gt;&lt;/u&gt;&lt;/b&gt;the point is equal to any character or symbol, including the point  itself, but if you want to search for the point itself must be preceded by backslash(\)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Search&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;a character&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;from the&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;character set&lt;/span&gt;&lt;span title=&quot;Click for alternate translations&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;We use&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;brackets&lt;/span&gt; &lt;span class=&quot;hps atn&quot; title=&quot;Click for alternate translations&quot;&gt;[&lt;/span&gt;&lt;span title=&quot;Click for alternate translations&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;to&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;search&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;for any&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;character&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;within the&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;brackets&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Example&lt;/span&gt;&lt;span title=&quot;Click for alternate translations&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;div class=&quot;codeview&quot;&gt;
&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;[chr] at&lt;/span&gt;&lt;/div&gt;
&lt;blockquote&gt;
&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;This formula&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;will result&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;hat&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;or&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;cat&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;or&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;rat&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt; &lt;b&gt;&lt;i&gt;&lt;u&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Note:&lt;/span&gt; &lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;The&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Regular Expression&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;is case sensitive&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;blockquote&gt;
&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;* Dashes can be used to specify spans of&lt;/span&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt; characters in a class:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;div class=&quot;codeview&quot;&gt;
&lt;span class=&quot;hps atn&quot; title=&quot;Click for alternate translations&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;&quot; title=&quot;Click for alternate translations&quot;&gt;0-9&lt;/span&gt;&lt;span class=&quot;&quot; title=&quot;Click for alternate translations&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;&quot; title=&quot;Click for alternate translations&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;hps atn&quot; title=&quot;Click for alternate translations&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;&quot; title=&quot;Click for alternate translations&quot;&gt;0123456789&lt;/span&gt;&lt;span class=&quot;&quot; title=&quot;Click for alternate translations&quot;&gt;]&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;[a-z] ==&amp;gt;&amp;gt; [abcdefghigklmnopqrstuvwxyz]&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;[A-Z] ==&amp;gt;&amp;gt; [ABCDEFGHIJKLMNOPQRSTUVWXYZ]&lt;/span&gt;&lt;/div&gt;
&lt;blockquote&gt;
&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Can also&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;mix&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;them&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;like this:&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt; [a-zA-Z0-9]&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Example&lt;/span&gt;&lt;span class=&quot;&quot; title=&quot;Click for alternate translations&quot;&gt;: To&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;search&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;color&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;HTML&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;format&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;can&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;use the following formula&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;div class=&quot;classview&quot;&gt;
&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;# [0-9A-Fa-f] [0-9A-Fa-f] [0-9A-Fa-f] [0-9A-Fa-f] [0-9A-Fa-f] [0-9A-Fa-f]&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;
&lt;div style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: 90%; margin-bottom: 0pt; margin-top: 0pt; text-align: left; unicode-bidi: embed; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;* A caret at the left end of a class definition means the opposite&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; [^0-9]&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Search&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;white space&lt;/span&gt;&lt;span title=&quot;Click for alternate translations&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;To search&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;characters&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;that&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;are not printed&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;using&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;the following formulas:&lt;/span&gt;&lt;/span&gt; &lt;/blockquote&gt;
&lt;m:smallfrac m:val=&quot;off&quot;&gt;    &lt;m:dispdef&gt;    &lt;m:lmargin m:val=&quot;0&quot;&gt;    &lt;m:rmargin m:val=&quot;0&quot;&gt;    &lt;m:defjc m:val=&quot;centerGroup&quot;&gt;    &lt;m:wrapindent m:val=&quot;1440&quot;&gt;    &lt;m:intlim m:val=&quot;subSup&quot;&gt;    &lt;m:narylim m:val=&quot;undOvr&quot;&gt;   &lt;/m:narylim&gt;&lt;/m:intlim&gt; &lt;/m:wrapindent&gt;  &lt;/m:defjc&gt;&lt;/m:rmargin&gt;&lt;/m:lmargin&gt;&lt;/m:dispdef&gt;&lt;/m:smallfrac&gt;&lt;br /&gt;
&lt;div class=&quot;codeview&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; text-align: left; unicode-bidi: embed;&quot;&gt;
[\b] &amp;nbsp;Backspace&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; text-align: left; unicode-bidi: embed;&quot;&gt;
\f &amp;nbsp;Form feed&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; text-align: left; unicode-bidi: embed;&quot;&gt;
\n &amp;nbsp;Line feed&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; text-align: left; unicode-bidi: embed;&quot;&gt;
\r &amp;nbsp;Carriage return&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; text-align: left; unicode-bidi: embed;&quot;&gt;
\t &amp;nbsp;Tab&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; text-align: left; unicode-bidi: embed;&quot;&gt;
\v &amp;nbsp;Vertical tab&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Character class abbreviations: &lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;classview&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;codeview&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;\d  [0-9]&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;\D  [^0-9]&lt;/span&gt;&lt;/b&gt;&lt;span dir=&quot;RTL&quot; lang=&quot;AR-SY&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;\w  [A-Za-z_0-9]&lt;/span&gt;&lt;/b&gt;&lt;span dir=&quot;RTL&quot; lang=&quot;AR-SY&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;\W  [^A-Za-z_0-9]&lt;/span&gt;&lt;/b&gt;&lt;span dir=&quot;RTL&quot; lang=&quot;AR-SY&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;\s  [ \r\t\n\f]&lt;/span&gt;&lt;/b&gt;&lt;span dir=&quot;RTL&quot; lang=&quot;AR-SY&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;\S  [^ \r\t\n\f]&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://arab-prog-dotnet.blogspot.com/feeds/4795581746567705158/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arab-prog-dotnet.blogspot.com/2011/01/using-regular-expression-vbnet.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/794787326736776526/posts/default/4795581746567705158'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/794787326736776526/posts/default/4795581746567705158'/><link rel='alternate' type='text/html' href='http://arab-prog-dotnet.blogspot.com/2011/01/using-regular-expression-vbnet.html' title='Using Regular Expression - VB.NET'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07205416342873541287</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-794787326736776526.post-3838191340741962230</id><published>2011-01-28T17:18:00.004+02:00</published><updated>2011-02-01T11:52:01.322+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="algorithm"/><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><title type='text'>Hanoi Towers - C#</title><content type='html'>&lt;div dir=&quot;rtl&quot; style=&quot;text-align: right;&quot; trbidi=&quot;on&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Here&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;I&#39;ll show&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;you&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;the issue of&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Towers&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;of Hanoi&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;code&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;..&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Using&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;a recursive&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;way&lt;/span&gt;&lt;span title=&quot;Click for alternate translations&quot;&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span id=&quot;goog_1581784654&quot;&gt;&lt;/span&gt;&lt;span id=&quot;goog_1581784655&quot;&gt;&lt;/span&gt;&lt;/span&gt;    &lt;m:smallfrac m:val=&quot;off&quot;&gt;    &lt;m:dispdef&gt;    &lt;m:lmargin m:val=&quot;0&quot;&gt;    &lt;m:rmargin m:val=&quot;0&quot;&gt;    &lt;m:defjc m:val=&quot;centerGroup&quot;&gt;    &lt;m:wrapindent m:val=&quot;1440&quot;&gt;    &lt;m:intlim m:val=&quot;subSup&quot;&gt;    &lt;m:narylim m:val=&quot;undOvr&quot;&gt;   &lt;/m:narylim&gt;&lt;/m:intlim&gt; &lt;/m:wrapindent&gt;  &lt;/m:defjc&gt;&lt;/m:rmargin&gt;&lt;/m:lmargin&gt;&lt;/m:dispdef&gt;&lt;/m:smallfrac&gt;&lt;/div&gt;&lt;div class=&quot;codeview&quot; dir=&quot;ltr&quot; style=&quot;text-align: left;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;namespace&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt; HanoiTowers&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Program&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; Main(&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;[] args)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; n;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;do&lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&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; &lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Enter number: &quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&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; n = &lt;span style=&quot;color: #2b91af;&quot;&gt;Int32&lt;/span&gt;.Parse(&lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.ReadLine());&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;span style=&quot;color: blue;&quot;&gt;while&lt;/span&gt;(n&amp;lt;=0);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hanoi(n, &lt;span style=&quot;color: #a31515;&quot;&gt;&#39;A&#39;&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&#39;B&#39;&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&#39;C&#39;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.ReadLine();&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; Hanoi(&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; n, &lt;span style=&quot;color: blue;&quot;&gt;char&lt;/span&gt; A, &lt;span style=&quot;color: blue;&quot;&gt;char&lt;/span&gt; B, &lt;span style=&quot;color: blue;&quot;&gt;char&lt;/span&gt; C)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt; (n == 1)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&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; &lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;{0} --&amp;gt; {1}&quot;&lt;/span&gt;, A, C);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&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; Hanoi(n - 1, A, C, B);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&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; &lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;{0} --&amp;gt; {1}&quot;&lt;/span&gt;, A, C);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&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; Hanoi(n - 1, B, A, C);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;br /&gt;
&lt;span class=&quot;hps&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot; title=&quot;Click for alternate translations&quot;&gt;This&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hps&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot; title=&quot;Click for alternate translations&quot;&gt;picture&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hps&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot; title=&quot;Click for alternate translations&quot;&gt;shows&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hps&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot; title=&quot;Click for alternate translations&quot;&gt;the method of work&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hps&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot; title=&quot;Click for alternate translations&quot;&gt;on this issue:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: center;&quot;&gt;&lt;img alt=&quot;Hanoi Towers&quot; height=&quot;300&quot; src=&quot;https://docs.google.com/uc?id=0B7nFnPr_1kmPNTVhYTM5YjItYmFhYi00Mzg3LWE1ZmUtYTdmNWM2ZTBiZWMw&amp;amp;hl=en&quot; width=&quot;450&quot; /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arab-prog-dotnet.blogspot.com/feeds/3838191340741962230/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arab-prog-dotnet.blogspot.com/2011/01/hanoi-towers.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/794787326736776526/posts/default/3838191340741962230'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/794787326736776526/posts/default/3838191340741962230'/><link rel='alternate' type='text/html' href='http://arab-prog-dotnet.blogspot.com/2011/01/hanoi-towers.html' title='Hanoi Towers - C#'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07205416342873541287</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-794787326736776526.post-7313586967004579157</id><published>2011-01-27T17:06:00.006+02:00</published><updated>2011-02-01T11:51:26.670+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="code"/><category scheme="http://www.blogger.com/atom/ns#" term="visual studio"/><title type='text'>How to show line numbers in Visual Studio.NET</title><content type='html'>&lt;div dir=&quot;rtl&quot; style=&quot;text-align: right;&quot; trbidi=&quot;on&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;How to show line numbers: &lt;/span&gt;&lt;/u&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;In order to show line numbers in the program Visual Studio. Net as it appears in following image:&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;img src=&quot;https://docs.google.com/uc?id=0B7nFnPr_1kmPMmU4ZDMzYjYtYjFkNi00YzY5LTg3MWUtMGM5NzNjNDA0OTU0&amp;amp;hl=en&quot; /&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;1. Open the Tools menu and then choose Options&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;2. Then from the left side expand the node Text Editor&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;3. Then choose the node All Languages&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;4. Then check the Line Numbers&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: center;&quot;&gt;&lt;img height=&quot;300&quot; src=&quot;https://docs.google.com/uc?id=0B7nFnPr_1kmPODIxNmQzMTMtYjg3OC00YWVmLWJlOGYtNTFhYTY0OTJiN2Vm&amp;amp;hl=en&quot; width=&quot;550&quot; /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arab-prog-dotnet.blogspot.com/feeds/7313586967004579157/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arab-prog-dotnet.blogspot.com/2011/01/how-to-show-line-numbers-in-visual.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/794787326736776526/posts/default/7313586967004579157'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/794787326736776526/posts/default/7313586967004579157'/><link rel='alternate' type='text/html' href='http://arab-prog-dotnet.blogspot.com/2011/01/how-to-show-line-numbers-in-visual.html' title='How to show line numbers in Visual Studio.NET'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07205416342873541287</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-794787326736776526.post-4537426466246856028</id><published>2011-01-25T22:11:00.006+02:00</published><updated>2011-02-01T11:37:30.314+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="kill process"/><category scheme="http://www.blogger.com/atom/ns#" term="process"/><category scheme="http://www.blogger.com/atom/ns#" term="vb.net"/><title type='text'>Killing Processes - VB.NET</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;m:smallfrac m:val=&quot;off&quot;&gt;    &lt;m:dispdef&gt;    &lt;m:lmargin m:val=&quot;0&quot;&gt;    &lt;m:rmargin m:val=&quot;0&quot;&gt;    &lt;m:defjc m:val=&quot;centerGroup&quot;&gt;    &lt;m:wrapindent m:val=&quot;1440&quot;&gt;    &lt;m:intlim m:val=&quot;subSup&quot;&gt;    &lt;m:narylim m:val=&quot;undOvr&quot;&gt;   &lt;/m:narylim&gt;&lt;/m:intlim&gt; &lt;/m:wrapindent&gt;  &lt;/m:defjc&gt;&lt;/m:rmargin&gt;&lt;/m:lmargin&gt;&lt;/m:dispdef&gt;&lt;/m:smallfrac&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Introduction&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;This article provides a simple example of how to use the System.Diagnostics.Process library to display a list of running processes, and to select and kill processes by their process name and ID.&amp;nbsp; It would not be a major trick to display additional information about the process using the same library or to kill processes by their ID or name alone rather than their name and ID but in this example, process names and IDs are used for display purposes and the purpose of killing a running process.&lt;br /&gt;
&amp;nbsp; &lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;&lt;img height=&quot;401&quot; src=&quot;https://docs.google.com/uc?id=0B7nFnPr_1kmPNmFiM2NiNTQtZjdlNi00NjM5LTg4YjUtMDhkY2IxY2JlYmU3&amp;amp;hl=en&quot; width=&quot;257&quot; /&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;Figure 1:&amp;nbsp; Listing and Killing Processes by Process Name and ID&lt;/b&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Getting Started&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;There is a single solution included with this download, the solution contains a Win Forms project called “&lt;i&gt;ProcessKillerVB&lt;/i&gt;”; this project contains one form (&lt;i&gt;Form1.vb&lt;/i&gt;) and all of the code required to display and kill processes is contained within that single form class.&amp;nbsp; If you open the attached project into Visual Studio 2008; you should see the following in the solution explorer:&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;&lt;img height=&quot;383&quot; src=&quot;https://docs.google.com/uc?id=0B7nFnPr_1kmPOTY0ODQyNWEtZWFjNi00YTI4LTkyZjItOWI2MTg3NGYxZjA4&amp;amp;hl=en&quot; width=&quot;233&quot; /&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;Figure 2:&amp;nbsp; Solution Explorer&lt;/b&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Code:&amp;nbsp; The Main Form&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;The main form contains all of the user interface elements necessary to display and update the list of currently running processes found on the user’s machine.&amp;nbsp; It also contains a button handler which will kill a process by the process name.&amp;nbsp; You can also kill a process by its ID but in terms of readability, if the user is selecting the process, the process name is going to make a lot more sense to them than will the process ID.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;The class begins with the normal and default imports:&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;codeview&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 10pt;&quot;&gt;Imports&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; System.Diagnostics&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;The constructor calls a method called “&lt;i&gt;UpdateProcessList&lt;/i&gt;” which is used to get and display a list of running processes; it will be described shortly.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;codeview&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 10pt;&quot;&gt;Public&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;Class&lt;/span&gt; Form1&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;Public&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;New&lt;/span&gt;()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;&#39; This call is required by the Windows Form Designer.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; InitializeComponent()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;&#39; display the list of running processes&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UpdateProcessList()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt; line-height: 115%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;The next bit of code is the &lt;i&gt;UpdateProcessList&lt;/i&gt; function; this function clears the listbox of any existing entries and then loops through each of the current processes, adding the name and ID of each process to the list (as Process Name – ID).&amp;nbsp; At the end of the function, a status message is updated to display the current number of found processes.&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;codeview&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;&#39;&#39;&#39; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;&#39;&#39;&#39; Loop through the list of running processes&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;&#39;&#39;&#39; and add each process name to the process&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;&#39;&#39;&#39; listbox&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;&#39;&#39;&#39; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;&#39;&#39;&#39; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;remarks&amp;gt;&amp;lt;/remarks&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;Private&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt; UpdateProcessList()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;&#39; clear the existing list of any items&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lstProcesses.Items.Clear()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;&#39; loop through the running processes and add&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;&#39;each to the list&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;Dim&lt;/span&gt; p &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; System.Diagnostics.Process&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;For&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Each&lt;/span&gt; p &lt;span style=&quot;color: blue;&quot;&gt;In&lt;/span&gt; System.Diagnostics.Process.GetProcesses()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lstProcesses.Items.Add(p.ProcessName &amp;amp; &lt;span style=&quot;color: #a31515;&quot;&gt;&quot; - &quot;&lt;/span&gt; &amp;amp; p.Id.ToString())&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;Next&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lstProcesses.Sorted = &lt;span style=&quot;color: blue;&quot;&gt;True&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;&#39; display the number of running processes in&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;&#39; a status message at the bottom of the page&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tslProcessCount.Text = &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Processes running: &quot;&lt;/span&gt; &amp;amp; _&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;lstProcesses.Items.Count.ToString()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;The next bit of code in the application is the update button’s click event handler; all it does is to call the &lt;i&gt;UpdateProcessList&lt;/i&gt; function to update the contents of the listbox.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;codeview&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;&#39;&#39;&#39; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;&#39;&#39;&#39; Manually update the list of runnings&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;&#39;&#39;&#39; processes&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;&#39;&#39;&#39; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;&#39;&#39;&#39; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;param name=&quot;sender&quot;&amp;gt;&amp;lt;/param&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;&#39;&#39;&#39; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;param name=&quot;e&quot;&amp;gt;&amp;lt;/param&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;&#39;&#39;&#39; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;remarks&amp;gt;&amp;lt;/remarks&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;Private&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt; btnUpdateProcessList_Click(&lt;span style=&quot;color: blue;&quot;&gt;ByVal&lt;/span&gt; sender &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; System.Object, _&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&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;&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;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;ByVal&lt;/span&gt; e &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; System.EventArgs) _&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&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;&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;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;Handles&lt;/span&gt; btnUpdateProcessList.Click&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UpdateProcessList()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt; line-height: 115%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;The last bit of the code in the application is used to kill a running process.&amp;nbsp; Since you can have multiple processes with the same name, it was necessary to add in the ID along with the name in order to make some distinction between multiple instances of a single application, else, we would end up killing all running instances of the application which may or may not be desirable depending upon what you are doing.&amp;nbsp; If you do want to kill off all running instances of an application, disregard the ID and kill all running processes with the same process name.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;In the kill button click event handler; we again loop through all of the running processes and we take the selected item from the process/ID list, and parse it into a string containing the process name and an integer value containing the ID.&amp;nbsp; If the current process (in the loop) matches on both the process name and process ID, the process is killed.&amp;nbsp; At the end, the handler calls the update method used to repopulate the listbox such that is displays the current list of active processes and their IDs.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;cdoeview&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;&#39;&#39;&#39; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;&#39;&#39;&#39; Kill the process selected in the process name&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;&#39;&#39;&#39; and ID listbox&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;&#39;&#39;&#39; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;&#39;&#39;&#39; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;param name=&quot;sender&quot;&amp;gt;&amp;lt;/param&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;&#39;&#39;&#39; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;param name=&quot;e&quot;&amp;gt;&amp;lt;/param&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;&#39;&#39;&#39; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;remarks&amp;gt;&amp;lt;/remarks&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;Private&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt; btnKill_Click(&lt;span style=&quot;color: blue;&quot;&gt;ByVal&lt;/span&gt; sender &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; System.Object, _&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;ByVal&lt;/span&gt; e &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; System.EventArgs) _&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;Handles&lt;/span&gt; btnKill.Click&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;If&lt;/span&gt; lstProcesses.SelectedItems.Count &amp;lt;= 0 &lt;span style=&quot;color: blue;&quot;&gt;Then&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MessageBox.Show(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Click on a process name to select it.&quot;&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;No Process &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;Selected&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;Return&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;If&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;&#39; loop through the running processes looking for a match&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;&#39; by comparing process name to the name selected in the listbox&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;Dim&lt;/span&gt; p &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; System.Diagnostics.Process&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;For&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Each&lt;/span&gt; p &lt;span style=&quot;color: blue;&quot;&gt;In&lt;/span&gt; System.Diagnostics.Process.GetProcesses()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;Dim&lt;/span&gt; arr() &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;String&lt;/span&gt; = _&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lstProcesses.SelectedItem.ToString().Split(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;-&quot;&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;Dim&lt;/span&gt; sProcess &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;String&lt;/span&gt; = arr(0).Trim()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;Dim&lt;/span&gt; iId &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Integer&lt;/span&gt; = Convert.ToInt32(arr(1).Trim())&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;If&lt;/span&gt; p.ProcessName = sProcess &lt;span style=&quot;color: blue;&quot;&gt;And&lt;/span&gt; p.Id = iId &lt;span style=&quot;color: blue;&quot;&gt;Then&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&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; p.Kill()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;If&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;Next&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;&#39; update the list to show the killed process&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;&#39; has been removed&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UpdateProcessList()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 10pt; line-height: 115%;&quot;&gt;End&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 10pt; line-height: 115%;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;Class&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;That concludes the description of all of the code used in this example.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Summary&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;The article shows one approach that may be used to display a list of current processes, and to single out and kill a single process based upon both the process name and its ID.&amp;nbsp; One could also kill all instances of a particular process by killing all processes that match on name without giving any consideration to the process ID.&amp;nbsp; The approach shown allows for singling out specific instances of a process and killing it without taking down all other matching processes.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt;&lt;i&gt;&lt;u&gt;&lt;b&gt;Author:&amp;nbsp; Scott Lysle&lt;/b&gt;&lt;/u&gt;&lt;/i&gt;&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arab-prog-dotnet.blogspot.com/feeds/4537426466246856028/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arab-prog-dotnet.blogspot.com/2011/01/killing-processes-vbnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/794787326736776526/posts/default/4537426466246856028'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/794787326736776526/posts/default/4537426466246856028'/><link rel='alternate' type='text/html' href='http://arab-prog-dotnet.blogspot.com/2011/01/killing-processes-vbnet.html' title='Killing Processes - VB.NET'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07205416342873541287</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-794787326736776526.post-2346094007150970817</id><published>2011-01-24T23:11:00.020+02:00</published><updated>2011-02-01T11:50:55.217+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="string"/><title type='text'>Handling strings in C#</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;We can deal with strings as an array of characters. This means that we can access the characters of the string separately using a formula as follows:&lt;/div&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt; m = &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;a world&quot;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;char&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt; c = m[1];&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Reading the characters in this way is possible, but we can not use this method to assign characterss to any text string that is acceptable to code the following:&lt;/div&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;m[1] = &lt;span style=&quot;color: #a31515;&quot;&gt;&#39;w&#39;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;So that we can get a char array can write to it we use it ToCharArray () which returns a array characters represent the array codes the text string:&lt;/div&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt; m = &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;a world&quot;&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;char&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;[] c = m.ToCharArray();&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;You can treat the char array method that we want we can change the elements and write, including what we want. &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;We can also use text strings within foreach loops also, for example:&lt;/div&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;foreach&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt; (&lt;span style=&quot;color: blue;&quot;&gt;char&lt;/span&gt; ch &lt;span style=&quot;color: blue;&quot;&gt;in&lt;/span&gt; m)&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine (&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;{0}&quot;&lt;/span&gt;, ch); &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;As in the arrays, we can make up the text string using the Length as follows: &lt;/div&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt; m = &lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.ReadLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;you typed {0} characters.&quot;&lt;/span&gt;, m.Length);&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;There are similar commands for ToCharArray () and are what ToLower () and ToUpper () and two characters to convert the text string to all lowercase or large .. &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;For example: if we had the application is expected from the user&#39;s income and based on this income there code software will be implemented, for example, the user enters yes then we have converted the text string the user entered to lowercase, we will be able to handle the events in which the user where to enter Yes or yeS or YES and cases are included too.&lt;/div&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt; u = &lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.ReadLine ();&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt; (u.ToLower () == &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;yes&quot;&lt;/span&gt;)&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;// Act on response&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Note that&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;we assume&lt;/span&gt; &lt;span class=&quot;hps atn&quot; title=&quot;Click for alternate translations&quot;&gt;non-&lt;/span&gt;&lt;span class=&quot;&quot; title=&quot;Click for alternate translations&quot;&gt;use&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;of this&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;&quot; title=&quot;Click for alternate translations&quot;&gt;, we&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;make sure that&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;all&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;cases in which&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;the user can&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;enter&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;the word&lt;/span&gt; &lt;span class=&quot;hps atn&quot; title=&quot;Click for alternate translations&quot;&gt;yes (&lt;/span&gt;&lt;span class=&quot;&quot; title=&quot;Click for alternate translations&quot;&gt;all&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;cases&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;must&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;be taken&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;into&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;account&lt;/span&gt;&lt;span class=&quot;&quot; title=&quot;Click for alternate translations&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;has therefore become a&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;complex&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;code&lt;/span&gt;&lt;span class=&quot;&quot; title=&quot;Click for alternate translations&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Follow-up to the previous example: if a user tries to put additional spaces to the beginning or end of the string and in this case will not be able to get answer yes from the user.&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;The solution is to use the Trim (), which can be applied to the string where the removal of all blanks from the text string. &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;and also to remove any characters from the text string we define a array of type char as parameter for this function are as follows: &lt;/div&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;char&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt; [] t = {&lt;span style=&quot;color: #a31515;&quot;&gt;&#39; &#39;&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&#39;e&#39;&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&#39;s&#39;&lt;/span&gt;};&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt; u = &lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.ReadLine ();&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;u = u.ToLower ();&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;u = u.Trim (t);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt; (u == &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;y&quot;&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;// Act on response&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;} &lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;In this way we get rid of any extra characters were written in the wrong that this would lead to address the situation of entry such as: &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&quot;Yeeeeeeees&quot; &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&quot;Y&quot; &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&quot;Yeess&quot;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;We can&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;use the&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;functions&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;TrimStart ()&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;and&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;TrimEnd ()&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;to get rid&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;of&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;spaces&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;at the beginning or&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;the end of&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;the text string&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;and&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;can&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;accept&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;an array&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;of&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;characters&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;as parameter&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;them&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;we are to&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;remove&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;certain characters&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;from the&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;beginning&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;or the&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;end of&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;the string&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;..&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;The function&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;PadLeft ()&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;adds a&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;number&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;of&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;spaces&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;to the&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;left of&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;the text string&lt;/span&gt;&lt;span class=&quot;&quot; title=&quot;Click for alternate translations&quot;&gt;.&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt; m = &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;huda&quot;&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;m = m.PadLeft(7); &lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Will this code to put three spaces in the beginning of a word in the variable huda m: &quot;huda&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;These approaches can tell us about the alignment of text strings within the columns and is important when the chains and put the numbers under each other.&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;in &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;The function&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Trim ()&lt;/span&gt;&lt;span title=&quot;Click for alternate translations&quot;&gt;, these two&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;functions&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;accept&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;another&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;parameter for&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;the character&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;that&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;we would like to&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;put it&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;surplus areas&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;of&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;the text string&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;instead&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;of&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;blanks&lt;/span&gt;&lt;span class=&quot;&quot; title=&quot;Click for alternate translations&quot;&gt;, for example&lt;/span&gt;&lt;span class=&quot;&quot; title=&quot;Click for alternate translations&quot;&gt;:&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt; m = &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;huda&quot;&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;m = m.PadLeft(7, &lt;span style=&quot;color: #a31515;&quot;&gt;&#39;-&#39;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;The result is that the variable &#39;m&#39; will contain the text string: &quot;--- huda&quot; &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;The function&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Split ()&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;returns&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;an array&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;of&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;strings&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;resulting from&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;the&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;separation of&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;a text string&lt;/span&gt;&lt;span class=&quot;&quot; title=&quot;Click for alternate translations&quot;&gt;, according&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;to&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;a specific character&lt;/span&gt;&lt;span title=&quot;Click for alternate translations&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt; m = &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;This is a test&quot;&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;char&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;[] s = {&lt;span style=&quot;color: #a31515;&quot;&gt;&#39; &#39;&lt;/span&gt;};&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt; [] w = m.Split(s);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;foreach&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt; (&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt; a &lt;span style=&quot;color: blue;&quot;&gt;in&lt;/span&gt; w)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine (&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;{0}&quot;&lt;/span&gt;, a);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Split command removes the character interval of the text string as well.&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;• &lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;You can&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;apply&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;the previous&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;functions&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;to the string&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;values&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;directly&lt;/span&gt;&lt;span title=&quot;Click for alternate translations&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt; x = &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Ahmad&quot;&lt;/span&gt;.ToUpper();&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;The result is that the variable x will contain the text string: &quot;AHMAD&quot;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arab-prog-dotnet.blogspot.com/feeds/2346094007150970817/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arab-prog-dotnet.blogspot.com/2011/01/handling-strings-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/794787326736776526/posts/default/2346094007150970817'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/794787326736776526/posts/default/2346094007150970817'/><link rel='alternate' type='text/html' href='http://arab-prog-dotnet.blogspot.com/2011/01/handling-strings-in-c.html' title='Handling strings in C#'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07205416342873541287</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-794787326736776526.post-1851967118870336138</id><published>2011-01-24T22:38:00.008+02:00</published><updated>2011-02-01T11:50:15.170+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="struct"/><title type='text'>Structures in C#</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;color: #f1c232;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Structures:&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;The second kind of the types of variables is the structure &#39;Struct&#39; acronym for the word (structure) &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Represent the structure of different parts of the data can be different for each part type. It enables us to define our species of special variables, depending on the structure ... &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;For example: &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Suppose we wish to save the path for the site specific from the point where this path composed of direction and distance measured in miles and simplify things we&#39;ll impose that the trend is one of the four directions of knowledge within a census orientation &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;And that the mileage represented by type double &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Now we can use separate converts to represent this path as in the following code:&lt;/span&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;m:smallfrac m:val=&quot;off&quot;&gt;    &lt;m:dispdef&gt;    &lt;m:lmargin m:val=&quot;0&quot;&gt;    &lt;m:rmargin m:val=&quot;0&quot;&gt;    &lt;m:defjc m:val=&quot;centerGroup&quot;&gt;    &lt;m:wrapindent m:val=&quot;1440&quot;&gt;    &lt;m:intlim m:val=&quot;subSup&quot;&gt;    &lt;m:narylim m:val=&quot;undOvr&quot;&gt;   &lt;/m:narylim&gt;&lt;/m:intlim&gt; &lt;/m:wrapindent&gt;  &lt;/m:defjc&gt;&lt;/m:rmargin&gt;&lt;/m:lmargin&gt;&lt;/m:dispdef&gt;&lt;/m:smallfrac&gt;&lt;br /&gt;
&lt;div class=&quot;codeview&quot;&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;color: #2b91af; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;orientation&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt; direction;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;double&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt; distance;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;There is nothing wrong in what we have done but it would be simpler if we used a single variable to store this information &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;The definition of structures:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;codeview&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Struct&lt;/span&gt; &amp;lt;type name&amp;gt; &lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;{ &lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;lt;member Declaration&amp;gt; &lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;} &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Section &amp;lt;memberDeclaration&amp;gt;: include the declaration of the variables (called data members of this structure) with the same usual method of almost every statement of intention to take the following formula: &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&amp;lt;accessibility&amp;gt; &amp;lt;type&amp;gt; &amp;lt;name&amp;gt;; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&amp;nbsp; : &amp;lt;name&amp;gt; Represents the name of any user name variable &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp; : &amp;lt;type&amp;gt; Represents the type of user &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;: &amp;lt;accessibility&amp;gt; Is an extent of access to the member from outside the structure &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;m:smallfrac m:val=&quot;off&quot;&gt;    &lt;m:dispdef&gt;    &lt;m:lmargin m:val=&quot;0&quot;&gt;    &lt;m:rmargin m:val=&quot;0&quot;&gt;    &lt;m:defjc m:val=&quot;centerGroup&quot;&gt;    &lt;m:wrapindent m:val=&quot;1440&quot;&gt;    &lt;m:intlim m:val=&quot;subSup&quot;&gt;    &lt;m:narylim m:val=&quot;undOvr&quot;&gt;   &lt;/m:narylim&gt;&lt;/m:intlim&gt; &lt;/m:wrapindent&gt;  &lt;/m:defjc&gt;&lt;/m:rmargin&gt;&lt;/m:lmargin&gt;&lt;/m:dispdef&gt;&lt;/m:smallfrac&gt;&lt;br /&gt;
&lt;div class=&quot;codeview&quot;&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;namespace&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt; s {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;class1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;enum&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;orientation&lt;/span&gt; : &lt;span style=&quot;color: blue;&quot;&gt;byte&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; North = 1,&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; South = 2,&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; East = 3,&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; West = 4&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;struct&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;route&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;orientation&lt;/span&gt; direction;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;double&lt;/span&gt; distance;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; main(&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;[] args)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #2b91af;&quot;&gt;route&lt;/span&gt; myRoute;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; myDirection;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #2b91af;&quot;&gt;Double&lt;/span&gt; myDistance;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;@&quot;1) North \ n 2) South \ n&quot;&lt;/span&gt; + &lt;span style=&quot;color: #a31515;&quot;&gt;@&quot;3) East \ n4) West&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;do&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&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; &lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;select a direction:&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&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; myDirection = &lt;span style=&quot;color: #2b91af;&quot;&gt;Convert&lt;/span&gt;.ToInt32(&lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.ReadLine());&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;span style=&quot;color: blue;&quot;&gt;while&lt;/span&gt; ((myDirection &amp;lt; 1) || (myDirection &amp;gt; 4));&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Input a distance: &quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myDistance = &lt;span style=&quot;color: #2b91af;&quot;&gt;Convert&lt;/span&gt;.ToDouble(&lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.ReadLine());&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myRoute.direction = (&lt;span style=&quot;color: #2b91af;&quot;&gt;orientation&lt;/span&gt;)myDirection;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myRoute.distance = myDistance;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;myRout specifies a direction of {0}&quot;&lt;/span&gt; + &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;and a distance of {1} &quot;&lt;/span&gt;, myRoute.direction, myRoute.distance);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arab-prog-dotnet.blogspot.com/feeds/1851967118870336138/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arab-prog-dotnet.blogspot.com/2011/01/structures-second-kind-of-types-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/794787326736776526/posts/default/1851967118870336138'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/794787326736776526/posts/default/1851967118870336138'/><link rel='alternate' type='text/html' href='http://arab-prog-dotnet.blogspot.com/2011/01/structures-second-kind-of-types-of.html' title='Structures in C#'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07205416342873541287</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-794787326736776526.post-4338903847140882194</id><published>2011-01-24T15:26:00.006+02:00</published><updated>2011-02-01T11:49:32.402+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ajax"/><title type='text'>AJAX</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;m:smallfrac m:val=&quot;off&quot;&gt;    &lt;m:dispdef&gt;    &lt;m:lmargin m:val=&quot;0&quot;&gt;    &lt;m:rmargin m:val=&quot;0&quot;&gt;    &lt;m:defjc m:val=&quot;centerGroup&quot;&gt;    &lt;m:wrapindent m:val=&quot;1440&quot;&gt;    &lt;m:intlim m:val=&quot;subSup&quot;&gt;    &lt;m:narylim m:val=&quot;undOvr&quot;&gt;   &lt;/m:narylim&gt;&lt;/m:intlim&gt; &lt;/m:wrapindent&gt;  &lt;/m:defjc&gt;&lt;/m:rmargin&gt;&lt;/m:lmargin&gt;&lt;/m:dispdef&gt;&lt;/m:smallfrac&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;AJAX, shorthand for &lt;i&gt;Asynchronous JavaScript and XML&lt;/i&gt;, is a web development technique for creating interactive web applications.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;AJAX meant to increase the web page’s interactivity, speed, and usability.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;If you know JavaScript, HTML, CSS and XML then you need to spend just one hour to start with AJAX.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Ajax Acts as an Intermediary&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;The Ajax engine works within the Web browser (through JavaScript and the DOM) to render the Web application and handle any requests that the customer might have of the Web server. The beauty of it is that because the Ajax engine is handling the requests, it can hold most information in the engine itself, while allowing the interaction with the application and the customer to happen asynchronously and independently of any interaction with the server.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Asynchronous&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;This is the key. In standard Web applications, the interaction between the customer and the server is synchronous.&lt;a name=&#39;more&#39;&gt;&lt;/a&gt; This means that one has to happen after the other. If a customer clicks a link, the request is sent to the server, which then sends the results back. &lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;With Ajax, the JavaScript that is loaded when the page loads handles most of the basic tasks such as data validation and manipulation, as well as display rendering the Ajax engine handles without a trip to the server. At the same time that it is making display changes for the customer, it is sending data back and forth to the server. But the data transfer is not dependent upon actions of the customer.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 13.5pt;&quot;&gt;Ajax is Not New Technology&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Ajax is instead a new way of looking at technology that is already mature and stable. If you’re designing Web applications right now, why aren’t you using Ajax? Your customers will thank you, and frankly, it’s just fun!&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;What is AJAX ?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;ol start=&quot;1&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot; type=&quot;1&quot;&gt;&lt;li class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-left: 36pt; margin-right: 0cm; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;AJAX      stands for &lt;b&gt;A&lt;/b&gt;synchronous &lt;b&gt;Ja&lt;/b&gt;vaScript and &lt;b&gt;X&lt;/b&gt;ML. AJAX is a      new technique for creating better, faster, and more interactive web      applications with the help of XML, HTML, CSS and Java Script.&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-left: 36pt; margin-right: 0cm; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Ajax      uses XHTML for content and CSS for presentation, as well as the Document      Object Model and JavaScript for dynamic content display.&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-left: 36pt; margin-right: 0cm; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Conventional      web application trasmit information to and from the sever using      synchronous requests. This means you fill out a form, hit submit, and get      directed to a new page with new information from the server.&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-left: 36pt; margin-right: 0cm; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;With      AJAX when submit is pressed, JavaScript will make a request to the server,      interpret the results and update the current screen. In the purest sense,      the user would never know that anything was even transmitted to the      server.&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-left: 36pt; margin-right: 0cm; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;XML      is commonly used as the format for receiving server data, although any      format, including plain text, can be used.&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-left: 36pt; margin-right: 0cm; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;AJAX      is a web browser technology independent of web server software.&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-left: 36pt; margin-right: 0cm; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;A      user can continue to use the application while the client program requests      information from the server in the background&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-left: 36pt; margin-right: 0cm; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Intuitive      and natural user interaction. No clicking required only Mouse movement is      a sufficient event trigger.&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-left: 36pt; margin-right: 0cm; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Data-driven      as opposed to page-driven&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Rich Internet Application (RIA) Technology &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;AJAX is most viable RIA technology so far. Its getting tremendous industry momentum and several toolkit and framworks areemerging. But same time JAX has browser incompatibility and it is supported by Java Script which is hard to maintain nand debug.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 18pt;&quot;&gt;AJAX Is Based On Open Standards&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-size: 18pt;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;AJAX is based on the following open standards:&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot; type=&quot;disc&quot;&gt;&lt;li class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-left: 36pt; margin-right: 0cm; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Browser-based      presentation using HTML and Cascading Style Sheets (CSS)&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-left: 36pt; margin-right: 0cm; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Data      stored in XML format and fetched from the server&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-left: 36pt; margin-right: 0cm; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Behind-the-scenes      data fetches using XMLHttpRequest objects in the browser&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-left: 36pt; margin-right: 0cm; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;JavaScript      to make everything happen&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 24pt;&quot;&gt;Technologies Used in AJAX&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-size: 24pt;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 18pt;&quot;&gt;JavaScript&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-size: 18pt;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot; type=&quot;disc&quot;&gt;&lt;li class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-left: 36pt; margin-right: 0cm; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Loosely      typed scripting language&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-left: 36pt; margin-right: 0cm; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;JavaScript      function is called when an event in a page occurs&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-left: 36pt; margin-right: 0cm; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Glue      for the whole AJAX operation&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;API for accessing and manipulating structured documents&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot; type=&quot;disc&quot;&gt;&lt;li class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-left: 36pt; margin-right: 0cm; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Represents      the structure of XML and HTML documents&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;CSS&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot; type=&quot;disc&quot;&gt;&lt;li class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-left: 36pt; margin-right: 0cm; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Allows      for a clear separation of the presentation style from the content and may      be changed programmatically by JavaScript&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;XMLHttpRequest&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot; type=&quot;disc&quot;&gt;&lt;li class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-left: 36pt; margin-right: 0cm; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;JavaScript      object that performs asynchrous interaction with the server&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Current Issues with AJAX&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;AJAX is growing very fast and that is the reason that it contains many issues with it. We hope with the passes of time they will be resolved ab AJAX will be ideal for web applications. We are listing down few issues which AJAX has as a challenge.&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Complexity is increased&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot; type=&quot;disc&quot;&gt;&lt;li class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-left: 36pt; margin-right: 0cm; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Server      side developers will need to understand that presentation logic will be      required in the HTML client pages as well as in the server-side logic&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-left: 36pt; margin-right: 0cm; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Page      developers must have JavaScript technology skills&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;AJAX-based applications can be difficult to debug, test, and maintain&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot; type=&quot;disc&quot;&gt;&lt;li class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-left: 36pt; margin-right: 0cm; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;JavaScript      is hard to test – automatic testing is hard&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-left: 36pt; margin-right: 0cm; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Weak      modularity in JavaScript&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-left: 36pt; margin-right: 0cm; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Lack      of design patterns or best practice guidelines yet&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Toolkits/Frameworks are not mature yet&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot; type=&quot;disc&quot;&gt;&lt;li class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-left: 36pt; margin-right: 0cm; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Most      of them are in beta phase&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;No standardization of the XMLHttpRequest yet&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot; type=&quot;disc&quot;&gt;&lt;li class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-left: 36pt; margin-right: 0cm; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Future      version of IE will address this&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;No support of XMLHttpRequest in old browsers&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot; type=&quot;disc&quot;&gt;&lt;li class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-left: 36pt; margin-right: 0cm; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Iframe      will help&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;JavaScript technology dependency &amp;amp; incompatibility&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot; type=&quot;disc&quot;&gt;&lt;li class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-left: 36pt; margin-right: 0cm; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Must      be enabled for applications to function&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-left: 36pt; margin-right: 0cm; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Still      some browser incompatibilities&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; line-height: normal; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;JavaScript code is visible to a hacker&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot; type=&quot;disc&quot;&gt;&lt;li class=&quot;MsoNormal&quot; dir=&quot;LTR&quot; style=&quot;direction: ltr; line-height: normal; margin-left: 36pt; margin-right: 0cm; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Poorly      designed JavaScript code can invite security problem&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;div&gt;&lt;div&gt;&lt;h1 style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;Author: &lt;a href=&quot;http://sandeepsawant.com/&quot;&gt;SandeepSawant.com&lt;/a&gt;&lt;/i&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;/h1&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arab-prog-dotnet.blogspot.com/feeds/4338903847140882194/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arab-prog-dotnet.blogspot.com/2011/01/ajax.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/794787326736776526/posts/default/4338903847140882194'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/794787326736776526/posts/default/4338903847140882194'/><link rel='alternate' type='text/html' href='http://arab-prog-dotnet.blogspot.com/2011/01/ajax.html' title='AJAX'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07205416342873541287</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-794787326736776526.post-4870089524826219466</id><published>2011-01-24T15:04:00.009+02:00</published><updated>2011-02-01T11:38:15.781+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="vb.net"/><title type='text'>Top 10 reasons C# is better than VB.NET</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;font-family: trebuchet ms;&quot;&gt;Let’s get practical, religion aside, with an eye on programmer  productivity, here are the top 10 reasons why C# is better than VB.NET,  in no particular order. If you have some other ones, let me know.&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;font-family: trebuchet ms;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;font-family: trebuchet ms;&quot;&gt;1. In C# the line ends when I type the semicolon. The practical offshoot of this is that I write code like this&lt;br /&gt;
&lt;div class=&quot;codeview&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt; sql = &lt;span style=&quot;color: #a31515;&quot;&gt;@&quot;SELECT *&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&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; FROM SomeSuchTable&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&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; WHERE ID=’WhatHaveYou’&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&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; ORDER BY ThisAndThatField ASC &quot;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;;&lt;/span&gt;&lt;span dir=&quot;RTL&quot; lang=&quot;AR-SY&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
So when someone hands you a SQL statement you can just paste it into  your code and the output (i.e. carriage returns) will still keep the  format. In VB.NET, you would have to write the following to keep the  formatting.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;codeview&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;Dim&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt; sql &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;String&lt;/span&gt; = &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;SELECT *&quot;&lt;/span&gt; &amp;amp; vbCrLf&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sql += &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;FROM SomeSuchTable&quot;&lt;/span&gt; &amp;amp; vbCrLf&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sql += &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;WHERE ID=’WhatHaveYou’&quot;&lt;/span&gt; &amp;amp; vbCrLf&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;direction: ltr; line-height: normal; margin-bottom: 0.0001pt; text-align: left; unicode-bidi: embed;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sql += &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;ORDER BY ThisAndThatField ASC &quot;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;And that’s annoying.&lt;br /&gt;
&lt;br /&gt;
2. Increments/Decrements. a++;a–; ‘Nuff said&lt;br /&gt;
&lt;br /&gt;
3. Money. No, not the data type. The green. C# developers make more  money. Don’t believe me? Here is the proof. Like Orwell said, War Is  Peace, Freedom Is Slavery, Ignorance Is Strength and yeah, it’s the same  .NET framework, but Perception is Reality. Get over it. Learn it. Put  it on the resume.&lt;br /&gt;
&lt;br /&gt;
4. I am not sure whether this is a valid reason, but with C# I can  use Borland C# Builder which sports my beloved SDI interface, a la VB3,  so that you can code full screen. This interface was also available  (though not by default), in VB4,5,6 and VS.NET 2002 beta 1. The SDI  interface disappeared from the VS.NET product before it shipped though.  Anyway, if you miss that kind of interface, you can use it in Borland C#  Builder.&lt;br /&gt;
&lt;br /&gt;
5. Error Catching. C# catches a lot more errors than VB.NET, such as uninitialized variables, dead code, etc…&lt;br /&gt;
&lt;br /&gt;
6. You get to act really snotty to VB.NET developers, yeah! That’s priceless.&lt;br /&gt;
&lt;br /&gt;
7. The source code to the C# compiler is available from Microsoft and  Novell. This means that you can theoretically develop apps for OSes  other than Windows, such as Linux and MacOS. Thanks to Jai Lue for this  tidbit.&lt;br /&gt;
&lt;br /&gt;
8. C# has Operator Overloading (my favorite feature from C++).  Though, via the grapevine, VB.NET will have this feature in VS 2005.  Thanks to Aditya Vaze for this language delicacy.&lt;br /&gt;
&lt;br /&gt;
9. Comments in C# are just better. You can do multiline comments, XML  comments, single line comments, etc… Thanks to German Voronin for this.&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;font-family: trebuchet ms;&quot;&gt;10. Regions in C# are far better. The key here is that you can place a  region inside a function, thus breaking up the implementation into  logical pieces. I simply love this ability.&lt;/div&gt;&lt;div dir=&quot;ltr&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div dir=&quot;ltr&quot;&gt;&lt;span style=&quot;font-size: 130%;&quot;&gt;Author: &lt;a href=&quot;http://www.blogger.com/SandeepSawant.com&quot;&gt;SandeepSawant.com&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arab-prog-dotnet.blogspot.com/feeds/4870089524826219466/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arab-prog-dotnet.blogspot.com/2011/01/top-10-reasons-c-is-better-than-vbnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/794787326736776526/posts/default/4870089524826219466'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/794787326736776526/posts/default/4870089524826219466'/><link rel='alternate' type='text/html' href='http://arab-prog-dotnet.blogspot.com/2011/01/top-10-reasons-c-is-better-than-vbnet.html' title='Top 10 reasons C# is better than VB.NET'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07205416342873541287</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-794787326736776526.post-6685859786002943751</id><published>2011-01-24T14:51:00.003+02:00</published><updated>2011-02-01T11:48:32.997+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="enumeration"/><title type='text'>Using Objects Instead of Enumerations</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;table class=&quot;articleViewer&quot;&gt;&lt;tbody&gt;
&lt;tr style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;td class=&quot;subtitle&quot; colspan=&quot;2&quot;&gt;&lt;span id=&quot;intellitTxt&quot; style=&quot;font-size: x-large;&quot;&gt;&lt;a class=&quot;pageTitle&quot; href=&quot;http://www.blogger.com/post-create.g?blogID=794787326736776526&quot; id=&quot;#Page1&quot;&gt;Introduction&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;content&quot; colspan=&quot;2&quot;&gt;&lt;br /&gt;
&lt;div class=&quot;KonaBody&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Enumerations are one of many useful tools at the fingertips of developers. Most of us have been using them for years. Because they are so common and easy to use, I believe we sometimes overuse them. An enumeration at its core is merely a number value. Try this in C# and you will see how easy it is to convert between enumerations and integer values. Enumerations are useful because they are named collections of values which are associated under the surface with integer values.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;This example shows how one could quickly and easily print out the names and number values of an enumeration.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;CodeListingHeading&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;b&gt;&lt;u&gt;Listing 1: Simple Enumeration Console Output&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;
&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;span style=&quot;background-color: Transparent; color: black; font-family: Courier New; font-size: small; font-weight: normal;&quot;&gt;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-weight: normal;&quot;&gt;using&lt;/span&gt;&amp;nbsp;System;&lt;br /&gt;
&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-weight: normal;&quot;&gt;class&lt;/span&gt;&amp;nbsp;Program&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-weight: normal;&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-weight: normal;&quot;&gt;void&lt;/span&gt;&amp;nbsp;Main(&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-weight: normal;&quot;&gt;string&lt;/span&gt;[]&amp;nbsp;args)&lt;br /&gt;
&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;HaveFunWithEnums();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-weight: normal;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-weight: normal;&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-weight: normal;&quot;&gt;void&lt;/span&gt;&amp;nbsp;HaveFunWithEnums()&lt;br /&gt;
&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;Console.WriteLine(MyEnum.Something);&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; Console.WriteLine(MyEnum.SomethingElse);&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;Console.WriteLine(MyEnum.AndNow);&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;Console.WriteLine(MyEnum.ForSomething);&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; Console.WriteLine(MyEnum.CompletelyDifferent);&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; Console.WriteLine((&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-weight: normal;&quot;&gt;int&lt;/span&gt;)MyEnum.Something);&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; Console.WriteLine((&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-weight: normal;&quot;&gt;int&lt;/span&gt;)MyEnum.SomethingElse);&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; Console.WriteLine((&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-weight: normal;&quot;&gt;int&lt;/span&gt;)MyEnum.AndNow);&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;Console.WriteLine((&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-weight: normal;&quot;&gt;int&lt;/span&gt;)MyEnum.ForSomething);&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; Console.WriteLine((&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-weight: normal;&quot;&gt;int&lt;/span&gt;)MyEnum.CompletelyDifferent);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-weight: normal;&quot;&gt;internal&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-weight: normal;&quot;&gt;enum&lt;/span&gt;&amp;nbsp;MyEnum&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Something,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SomethingElse,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AndNow,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ForSomething,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CompletelyDifferent&lt;br /&gt;
}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;That is some very easy code, and I think most people have probably seen enumerations printed by name as well enums converted to integers and their values used. So if enums are so great, why would I write an article talking about a way of avoiding them? Well, I would first like to say that I am a big fan of enums. I think they are quite useful; they just have some risks as well as some circumstances under which they fall a little bit short as far as software design is concerned.&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;subtitle&quot; colspan=&quot;2&quot;&gt;&lt;span id=&quot;intellitTxt&quot;&gt;&lt;a class=&quot;pageTitle&quot; href=&quot;http://www.blogger.com/post-create.g?blogID=794787326736776526&quot; id=&quot;#Page2&quot;&gt;Some Problems with Enumerations&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;content&quot; colspan=&quot;2&quot;&gt;&lt;br /&gt;
&lt;div class=&quot;KonaBody&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;I mentioned that there are problems with enumerations above, so by now you are probably wondering what those problems are. Well, one of them is the same thing I said was great up above. Enumerations are basically just numbers (please do not kill me for saying that). At the end of the day it is easy to convert between enums and numbers. Sometimes it is safe and sometimes it is not safe. Take a look at this simple code snippet which illustrates a couple of the ways we can mess around with enums.&lt;/div&gt;&lt;div class=&quot;CodeListingHeading&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Listing 2: Converting Enumerations to Integers and Integers to Enumerations&lt;/div&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;span style=&quot;background-color: Transparent; color: black; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;&lt;span style=&quot;background-color: Transparent; color: green; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;//&amp;nbsp;This&amp;nbsp;is&amp;nbsp;safe,&amp;nbsp;but&amp;nbsp;a&amp;nbsp;little&amp;nbsp;bit&amp;nbsp;odd&lt;/span&gt;&lt;br /&gt;
MyEnum&amp;nbsp;myEnum&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: red; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;=&lt;/span&gt;&amp;nbsp;(MyEnum)(1&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: red; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;+&lt;/span&gt; (&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;int&lt;/span&gt;)MyEnum.SomethingElse);&lt;br /&gt;
Console.WriteLine(myEnum);&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: Transparent; color: green; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;//&amp;nbsp;This&amp;nbsp;is&amp;nbsp;a&amp;nbsp;really&amp;nbsp;bad&amp;nbsp;dangerous&amp;nbsp;thing&amp;nbsp;that&amp;nbsp;can happen&lt;/span&gt;&lt;br /&gt;
MyEnum&amp;nbsp;badEnum&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: red; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;=&lt;/span&gt;&amp;nbsp;(MyEnum)10;&lt;br /&gt;
Console.WriteLine(badEnum);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;The first one works as we expect, it gives us the enum &quot;AndNow&quot; and will write it to the screen. The second one, however, offers disturbing results when it writes the number &quot;10&quot; to the screen. It actually allows us to cast any integer value to one of our enumerations. That was not very safe at all, and it was actually really easy to do. Enumerations give the illusion of being safe here. Because we have the intellisense and strongly-typed values, we believe an enumeration is a lot safer than it really is. &lt;/div&gt;&lt;div class=&quot;SectionHeading&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;In Combination with Lookup Tables&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;One thing I have seen used way more often than it should be is a combination of lookup tables and enumerations. What I mean here is that an enumeration is created which matches with a lookup table. In my opinion the use of an enumeration implies that there will be logical decisions made based on the enumeration. If you are using a lookup table, it means that this is simply data, data likely to change. It also implies that the values in the table should not have much logic associated with them. &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;The reason for this is that values in a table are easily changed, and because of this, people assume the change is safe to make. We know there are instances when changing the data can cause problems because logic needs to be adjusted when adding, removing, or altering entries in the lookup table.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Differences between lookup tables and enumerations cause them to be incompatible in my opinion. If there will be a good amount of logic based on these use an enumeration or an object. Do not have a lookup table. I know it is nice for the database, but any changes to the database will cause problems in the code.&lt;/div&gt;&lt;div class=&quot;SectionHeading&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Adding Information&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Over time, people often try to add extra information to go along with enumerations. Sometimes you will see people have added extra attributes to enumerations for descriptions, colors, or something else. They are trying to associate extra information with those enumeration values. Well this is just one big sign that you need to move away from an enumeration. It is time to decide whether that should just be a lookup table (if it is only data) or if it should be a full-blown object (there is logic based on the values). If there is logic based on those values you might want to do something similar to what I outline next in this article.&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;td class=&quot;subtitle&quot; colspan=&quot;2&quot;&gt;&lt;span id=&quot;intellitTxt&quot; style=&quot;font-size: x-large;&quot;&gt;&lt;a class=&quot;pageTitle&quot; href=&quot;http://www.blogger.com/post-create.g?blogID=794787326736776526&quot; id=&quot;#Page3&quot;&gt;Creating an Object-based Solution&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;content&quot; colspan=&quot;2&quot;&gt;&lt;br /&gt;
&lt;div class=&quot;KonaBody&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;What are the properties of enumerations we want to be able to replicate?&lt;/div&gt;&lt;div class=&quot;MsoListBullet&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Strongly typed access&lt;/div&gt;&lt;div class=&quot;MsoListBullet&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Unchanging at runtime&lt;/div&gt;&lt;div class=&quot;MsoListBullet&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Name and value pairing&lt;/div&gt;&lt;div class=&quot;MsoListBullet&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Customizable values&lt;/div&gt;&lt;div class=&quot;MsoListBullet&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Conversion to integers&lt;/div&gt;&lt;div class=&quot;MsoListBullet&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Get by value&lt;/div&gt;&lt;div class=&quot;MsoListBullet&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Get by name&lt;/div&gt;&lt;div class=&quot;MsoListBullet&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;List all&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;So in order to replace our enumeration we are going to need to include these. Since we are using objects, the first one should be easily done. Our object will need to have at least two properties for the Name and the Value. So if we were just going to create a regular object we would have something like this.&lt;/div&gt;&lt;div class=&quot;CodeListingHeading&quot;&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;u&gt;&lt;b&gt;Listing 3: Normal Object&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&amp;nbsp; &lt;/div&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;class&lt;/span&gt;&amp;nbsp;MyObject&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;int&lt;/span&gt;&amp;nbsp;Id&amp;nbsp;{&amp;nbsp;get;&amp;nbsp;set;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;string&lt;/span&gt;&amp;nbsp;Name&amp;nbsp;{&amp;nbsp;get;&amp;nbsp;set;&amp;nbsp;}&lt;br /&gt;
}&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;With this object we could create instances of it at runtime, but this is not what we want yet. The next step is making sure that we have a set of instances to start with and no more can be created. To do this we will make out constructor private. With the constructor private, we will need to declare the instances of this object inside the class, so the instances will need to be static. We will need to make sure that all of the values can be passed into the constructor so the instances can be created easily as static properties of the class This has the nice effect of allowing us to access them using &lt;span class=&quot;Italic&quot;&gt;ClassName.InstanceName&lt;/span&gt;. That naming convention will look similar to the one for enumerations which is &lt;span class=&quot;Italic&quot;&gt;Enumname.InstanceName&lt;/span&gt;.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Our new code which uses static instances and a private constructor looks like this.&lt;/div&gt;&lt;div class=&quot;CodeListingHeading&quot;&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;b&gt;&lt;u&gt;Listing 4: Static Instances and Private Constructor&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;span style=&quot;background-color: Transparent; color: black; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;class&lt;/span&gt;&amp;nbsp;MyObject&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;static&lt;/span&gt;&amp;nbsp;MyObject&amp;nbsp;MyObjectOne&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: red; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;new&lt;/span&gt; MyObject(1,&amp;nbsp;&lt;span style=&quot;background-color: #e4e4e4; color: #666666; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;&quot;MyObjectOne&quot;&lt;/span&gt;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;static&lt;/span&gt;&amp;nbsp;MyObject&amp;nbsp;MyObjectTwo&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: red; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;new&lt;/span&gt; MyObject(2,&amp;nbsp;&lt;span style=&quot;background-color: #e4e4e4; color: #666666; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;&quot;MyObjectTwo&quot;&lt;/span&gt;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;static&lt;/span&gt;&amp;nbsp;MyObject&amp;nbsp;MyObjectThree&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: red; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;new&lt;/span&gt;&amp;nbsp;MyObject(3, &lt;span style=&quot;background-color: #e4e4e4; color: #666666; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;&quot;MyObjectThree&quot;&lt;/span&gt;);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;int&lt;/span&gt;&amp;nbsp;Id&amp;nbsp;{&amp;nbsp;get;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;private&lt;/span&gt;&amp;nbsp;set;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;string&lt;/span&gt;&amp;nbsp;Name&amp;nbsp;{&amp;nbsp;get;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;private&lt;/span&gt;&amp;nbsp;set;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;private&lt;/span&gt;&amp;nbsp;MyObject(&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;int&lt;/span&gt;&amp;nbsp;id,&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;string&lt;/span&gt;&amp;nbsp;name)&lt;br /&gt;
&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;Id&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: red; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;=&lt;/span&gt;&amp;nbsp;id;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Name&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: red; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;=&lt;/span&gt;&amp;nbsp;name;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;This object will already do a lot of what we need. It maintains a limited set, is strongly typed, has a name, has a value, you have control over the values for each, and the Id property lets you have it as an integer. Now we need to be able to get these based on the Id and the Name, and we also need to maintain a list of them.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Listing all of the values is useful for displaying them in different places such as a DropDownList or something similar.&lt;/div&gt;&lt;div class=&quot;CodeListingHeading&quot;&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;b&gt;&lt;u&gt;Listing 5: Listing All of the Instances&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;span style=&quot;background-color: Transparent; color: black; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;static&lt;/span&gt;&amp;nbsp;List&amp;lt;MyObject&amp;gt;&amp;nbsp;ListAll()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;return&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;new&lt;/span&gt;&amp;nbsp;List&amp;lt;MyObject&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MyObjectOne,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MyObjectTwo,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MyObjectThree&lt;br /&gt;
&amp;nbsp;&amp;nbsp;};&lt;br /&gt;
}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;For this it is pretty easy to just put them in a list like this or something similar. Not too difficult to maintain, it gives you good control of what is in the list. &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Getting the instance of the object by Id and by Name is also pretty easy. With very little effort we are able to get them, and we throw some exceptions if we receive invalid method arguments.&lt;br /&gt;
&amp;nbsp; &lt;/div&gt;&lt;div class=&quot;CodeListingHeading&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;b&gt;&lt;u&gt;Listing 6: FromId and FromName&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;span style=&quot;background-color: Transparent; color: black; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;static&lt;/span&gt;&amp;nbsp;MyObject&amp;nbsp;FromId(&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;int&lt;/span&gt;&amp;nbsp;id)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;List&amp;lt;MyObject&amp;gt;&amp;nbsp;items&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: red; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;=&lt;/span&gt;&amp;nbsp;ListAll();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MyObject&amp;nbsp;match&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: red; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;=&lt;/span&gt;&amp;nbsp;Array.Find(items.ToArray(), instance&amp;nbsp;=&amp;gt;&amp;nbsp;instance.Id&amp;nbsp;==&amp;nbsp;id);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;if&lt;/span&gt;&amp;nbsp;(match&amp;nbsp;==&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;null&lt;/span&gt;)&lt;br /&gt;
&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;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;throw&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;new&lt;/span&gt; ArgumentOutOfRangeException(&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;string&lt;/span&gt;.Format(&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;span style=&quot;background-color: #e4e4e4; color: #666666; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;&quot;Id&amp;nbsp;&#39;{0}&#39;&amp;nbsp;is&amp;nbsp;invalid&amp;nbsp;for {1}&quot;&lt;/span&gt;,&amp;nbsp;id,&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;typeof&lt;/span&gt;(MyObject).Name));&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;return&lt;/span&gt;&amp;nbsp;match;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;static&lt;/span&gt;&amp;nbsp;MyObject&amp;nbsp;FromName(&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;string&lt;/span&gt;&amp;nbsp;name)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;List&amp;lt;MyObject&amp;gt;&amp;nbsp;items&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: red; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;=&lt;/span&gt;&amp;nbsp;ListAll();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MyObject&amp;nbsp;match&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: red; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;=&lt;/span&gt;&amp;nbsp;Array.Find(items.ToArray(), instance&amp;nbsp;=&amp;gt;&amp;nbsp;instance.Name&amp;nbsp;==&amp;nbsp;name);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;if&lt;/span&gt;&amp;nbsp;(match&amp;nbsp;==&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;null&lt;/span&gt;)&lt;br /&gt;
&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;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;throw&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;new&lt;/span&gt; ArgumentOutOfRangeException(&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;string&lt;/span&gt;.Format(&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;span style=&quot;background-color: #e4e4e4; color: #666666; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;&quot;Name&amp;nbsp;&#39;{0}&#39;&amp;nbsp;is&amp;nbsp;not&amp;nbsp;a&amp;nbsp;valid {1}&quot;&lt;/span&gt;,&amp;nbsp;name,&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;typeof&lt;/span&gt;(MyObject).Name));&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;background-color: Transparent; color: blue; font-family: Courier New; font-size: 11px; font-weight: normal;&quot;&gt;return&lt;/span&gt;&amp;nbsp;match;&lt;br /&gt;
}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;At this point our object does pretty much everything we want it to do. This class is fairly testable, and is designed in such a way that we can add extra information to it. We can also add extra properties for any attributes we want like descriptions.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;td class=&quot;subtitle&quot; colspan=&quot;2&quot;&gt;&lt;span id=&quot;intellitTxt&quot; style=&quot;font-size: x-large;&quot;&gt;&lt;a class=&quot;pageTitle&quot; href=&quot;http://www.blogger.com/post-create.g?blogID=794787326736776526&quot; id=&quot;#Page4&quot;&gt;Conclusion&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;content&quot; colspan=&quot;2&quot;&gt;&lt;br /&gt;
&lt;div class=&quot;KonaBody&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;For many people, an enumeration is the correct solution, and for others the solution is a lookup table. I do not think those should be used together, but some people might have a reason to do so. It is important to keep in mind the circumstances of your exact situation when deciding, because I think there are plenty of times when an object should be used instead of either one.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Using the method outlined in this article should allow you to get around using an enumeration or a lookup table. It is an alternative that lets you extend enumerations, and has some other pros and cons. In some ways they are not as easy to work with as enumerations, but they are also safer in some ways.&lt;br /&gt;
&lt;br /&gt;
&lt;table class=&quot;articleViewer&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;abstract&quot;&gt;&lt;span id=&quot;abstractLabel&quot;&gt;Enumerations are a  commonly used and known tool built into programming languages. They are  however not the only way of doing things. In this article, Brendan  outlines an alternative to using enumerations. He discusses some of the  reasons why you might use an alternative and uses source code to explain  how to achieve a comparable equivalent to enumerations.&lt;/span&gt;&lt;/td&gt;      &lt;td class=&quot;photo&quot;&gt;&lt;a href=&quot;http://aspalliance.com/author.aspx?uId=60273&quot; id=&quot;authorLink&quot;&gt;&lt;img border=&quot;0&quot; id=&quot;photo&quot; src=&quot;http://aspalliance.com/images/photos/cf4d3e43-894b-45bf-b70e-6edc43d80a4f_80_80.jpg&quot; style=&quot;border-style: none;&quot; /&gt;&lt;/a&gt;&lt;/td&gt;     &lt;/tr&gt;
&lt;tr&gt;     &lt;td colspan=&quot;2&quot;&gt;by &lt;span class=&quot;author&quot; id=&quot;author&quot;&gt;&lt;a href=&quot;http://aspalliance.com/author.aspx?uId=60273&quot;&gt;Brendan Enrick&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arab-prog-dotnet.blogspot.com/feeds/6685859786002943751/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arab-prog-dotnet.blogspot.com/2011/01/using-objects-instead-of-enumerations.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/794787326736776526/posts/default/6685859786002943751'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/794787326736776526/posts/default/6685859786002943751'/><link rel='alternate' type='text/html' href='http://arab-prog-dotnet.blogspot.com/2011/01/using-objects-instead-of-enumerations.html' title='Using Objects Instead of Enumerations'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07205416342873541287</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-794787326736776526.post-5002861197558132435</id><published>2011-01-22T22:55:00.007+02:00</published><updated>2011-02-01T11:47:04.480+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="dotnet"/><title type='text'>Why .net is famous - Why ASP.NET ??</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;b&gt;Author: &lt;a href=&quot;http://www.articlesbase.com/authors/tops-technology/681688&quot; title=&quot;TOPS Technology&quot;&gt;TOPS Technology&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;a href=&quot;http://www.tops-int.com/tops-int/services/microsoft-technologies.html&quot; target=&quot;_blank&quot; title=&quot;Microsoft Technology&quot;&gt;Microsoft Technology&lt;/a&gt;&lt;/div&gt;&lt;blockquote class=&quot;&quot; style=&quot;text-align: left;&quot;&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Microsoft .NET (pronounced &quot;dot net&quot;) is a software component that runs on the Windows operating system. .NET provides tools and libraries that enable developers to create Windows software much faster and easier. .NET benefits end-users by providing applications of higher capability, quality and security. The .NET Framework must be installed on a user&#39;s PC to run .NET applications.&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;ASP.NET is a technology for building powerful, dynamic Web applications and is part of the .NET Framework.&lt;br /&gt;
One can code ASP.NET applications in most .NET compatible languages including VB.NET, C#, and J#. ASP.NET pages, commonly known as web forms are compiled and stored on the web server for providing better performance. Web forms give you the flexibly to build powerful forms-based website pages. While building web forms based website pages you can use ASP.NET server controls to create common user interface (UI) elements and code them for accomplishing common tasks. These feature rich web controls allow you to build your web forms rapidly and make it usable as custom components.&lt;br /&gt;
So many top level technicians select Microsoft platform with ASP.NET with following reasons. &lt;/div&gt;&lt;/blockquote&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;li&gt;&lt;b&gt;Easy Programming Model&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;blockquote class=&quot;&quot; style=&quot;text-align: left;&quot;&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;ASP.NET makes building real world Web applications dramatically easier. &lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;ASP.NET server controls enable an &lt;br /&gt;
HTML-like style of declarative programming that let you build great pages with far less code than with classic ASP.  Displaying data, validating user input, and uploading files are all amazingly easy. Best of all, ASP.NET pages work in all browsers including Netscape, Opera, AOL, and Internet Explorer.&lt;/div&gt;&lt;/blockquote&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;li&gt;&lt;b&gt;Flexible Language Options&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;blockquote class=&quot;&quot; style=&quot;text-align: left;&quot;&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;ASP.NET lets you leverage your current programming language skills.  Unlike classic ASP, which supports only interpreted VBScript and JScript, ASP.NET now supports more than 25 .NET languages (built-in support for VB.NET, C#, and JScript.NET), giving you unprecedented flexibility in your choice of language.&lt;/div&gt;&lt;/blockquote&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;li&gt;&lt;b&gt;Great Tool Support&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;blockquote class=&quot;&quot; style=&quot;text-align: left;&quot;&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;You can harness the full power of ASP.NET using any text editor, even Notepad.  But Visual Studio .NET adds the productivity of Visual Basic-style development to the Web. Now you can visually design ASP.NET Web Forms using familiar drag-drop-doubleclick techniques, and enjoy full-fledged code support including statement completion and color-coding. VS.NET also provides integrated support for debugging and deploying ASP.NET Web applications. The Enterprise versions of Visual Studio .NET deliver life-cycle features to help organizations plan, analyze, design, build, test, and coordinate teams that develop ASP.NET Web applications.  These include UML class modeling, database.&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;modeling (conceptual, logical, and physical models), testing tools (functional, performance and scalability), and enterprise frameworks and templates, all available within the integrated Visual Studio .NET environment.&lt;/div&gt;&lt;/blockquote&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;li&gt;&lt;b&gt;Rich Class Framework&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;blockquote class=&quot;&quot; style=&quot;text-align: left;&quot;&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Application features that used to be hard to implement, or required a 3rd-party component, can now be added in just a few lines of code using the .NET Framework.  The .NET Framework offers over 4500 classes that encapsulate rich functionality like XML, data access, file upload, regular expressions, image generation, performance monitoring and logging, transactions, message queuing, SMTP mail, and much more. With Improved Performance and Scalability ASP.NET lets you use serve more users with the same hardware.&lt;/div&gt;&lt;/blockquote&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;li&gt;&lt;b&gt;Compiled execution&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;blockquote class=&quot;&quot; style=&quot;text-align: left;&quot;&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;ASP.NET is much faster than classic ASP, while preserving the &quot;just hit save&quot; update model of ASP.  However, no explicit compile step is required. ASP.NET will automatically detect any changes, dynamically compile the files if needed, and store the compiled results to reuse for subsequent requests. Dynamic compilation ensures that your application is always up to date, and compiled execution makes it fast.  Most applications migrated from classic &lt;br /&gt;
ASP see a 3x to 5x increase in pages served.&lt;/div&gt;&lt;/blockquote&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;li&gt;&lt;b&gt;Rich output caching&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;blockquote&gt;ASP.NET output caching can dramatically improve the performance and scalability of your application. When output caching is enabled on a page, ASP.NET executes the page just once, and saves the result in memory in addition to sending it to the user.  When another user requests the same page, ASP.NET serves the cached result from memory without re-executing the page. Output caching is configurable, and can be used to cache individual regions or an entire page. Output caching can dramatically improve the performance of data-driven pages by eliminating the need to query the database on every request.&lt;/blockquote&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;li&gt;&lt;b&gt;Web-Farm&lt;/b&gt;&lt;b&gt; Session State&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;blockquote&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;ASP.NET session state lets you share session data user-specific state values across all machines in your Web farm.  Now a user can hit different servers in the Web farm over multiple requests and still have full access to her session.  And since business components created with the .NET Framework are free-threaded, you no longer need to worry about thread affinity.&lt;/div&gt;&lt;/blockquote&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;li&gt;&lt;b&gt;Enhanced Reliability&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;blockquote&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;ASP.NET ensures that your application is always available to your users.&lt;/div&gt;&lt;/blockquote&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;li&gt;&lt;b&gt;Memory Leak, DeadLock and Crash Protection &lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;blockquote&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;ASP.NET automatically detects and recovers from errors like deadlocks and memory leaks to ensure your application is always available to your users.  For example, say that your application has a small memory leak, and that after a week the leak has tied up a significant percentage of your server&#39;s virtual memory. ASP.NET will detect this condition, automatically start up another copy of the ASP.NET worker process, and direct all new requests to the new process. Once the old process has finished processing its pending requests, it is gracefully disposed and the leaked memory is released. Automatically, without administrator intervention or any interruption of service, ASP.NET has recovered from the error.&lt;/div&gt;&lt;/blockquote&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;li&gt;&lt;b&gt;Easy Deployment&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;blockquote&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;ASP.NET takes the pain out of deploying server applications. &quot;No touch&quot; application deployment. ASP.NET dramatically simplifies installation of your application. With ASP.NET, you can deploy an entire application as easily as an HTML page, just copy it to the server.  No need to run regsvr32 to register any components, and configuration settings are stored in an XML file within the application.&lt;/div&gt;&lt;/blockquote&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;li&gt;&lt;b&gt;Dynamic update of running application&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;blockquote&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;ASP.NET now lets you update compiled components without restarting the web server. In the past with classic COM components, the developer would have to restart the web server each time he deployed an update.  With ASP.NET, you simply copy the component over the existing DLL, ASP.NET will automatically detect the change and start using the new code.&lt;/div&gt;&lt;/blockquote&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;li&gt;&lt;b&gt;Easy Migration Path&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;blockquote&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;You don&#39;t have to migrate your existing applications to start using ASP.NET. ASP.NET runs on IIS side-by-side with classic ASP on Windows 2000 and Windows XP&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;platforms. Your existing ASP applications continue to be processed by ASP.DLL, while new ASP.NET pages are processed by the new ASP.NET engine. You can migrate application by application, or single pages.  And ASP.NET even lets you continue to use your existing classic COM business components.&lt;/div&gt;&lt;/blockquote&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;li&gt;&lt;b&gt;XML Web Services&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;blockquote&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;XML Web services allow applications to communicate and share data over the Internet, regardless of operating system or programming language. ASP.NET makes exposing and calling XML Web Services simple. Any class can be converted into an XML Web Service with just a few lines of code, and can be called by any SOAP client.  Likewise, ASP.NET makes it incredibly easy to call XML Web Services from your application. No knowledge of networking, XML, or SOAP is required.&lt;/div&gt;&lt;/blockquote&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;li&gt;&lt;b&gt;Mobile Web Device Support&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;blockquote&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;ASP.NET Mobile Controls let you easily target cell phones, PDAs and over 80 mobile Web devices. You write your application just once, and the mobile controls automatically generate WAP/WML, HTML, or iMode as required by the requesting device.&lt;/div&gt;&lt;/blockquote&gt;&lt;blockquote class=&quot;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;If you have any requirement in .Net, please feel free to &lt;a href=&quot;http://www.tops-int.com/tops-int/contact-us.html&quot; target=&quot;_blank&quot; title=&quot;Contact Us&quot;&gt;Contact Us&lt;/a&gt; Your privacy is guaranteed, we won&#39;t share your information.&lt;/li&gt;
&lt;/ul&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;Article Source: &lt;a href=&quot;http://www.articlesbase.com/online-education-articles/why-net-is-famous-why-aspnet-3594106.html&quot; title=&quot;Why .net is famous - Why ASP.NET ??&quot;&gt;http://www.articlesbase.com/online-education-articles/why-net-is-famous-why-aspnet-3594106.html&lt;/a&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;border: 1px inset; height: 110px; margin: 0px; overflow: auto; padding: 6px; text-align: center; width: 640px;&quot;&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;u&gt;&lt;i&gt;&lt;b&gt;About the Author&lt;/b&gt;&lt;/i&gt;&lt;/u&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;i&gt;&lt;br /&gt;
&lt;/i&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;i&gt;TOPS Technologies stands for Trainining Outsourcing and Placement Services. We have offices in Ahmedabad Baroda Surat Rajkot Maninagar and Udaipur. To know more about our company please visit our website http://www.tops-int.com&lt;/i&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arab-prog-dotnet.blogspot.com/feeds/5002861197558132435/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arab-prog-dotnet.blogspot.com/2011/01/why.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/794787326736776526/posts/default/5002861197558132435'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/794787326736776526/posts/default/5002861197558132435'/><link rel='alternate' type='text/html' href='http://arab-prog-dotnet.blogspot.com/2011/01/why.html' title='Why .net is famous - Why ASP.NET ??'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07205416342873541287</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-794787326736776526.post-6381509028156638345</id><published>2011-01-22T21:30:00.014+02:00</published><updated>2011-02-01T11:45:10.929+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="code"/><title type='text'>C# Codes</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span class=&quot;short_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Create a directory&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;it does not&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;exist&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;/ul&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #007700;&quot;&gt;if&amp;nbsp;(!&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Directory&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Exists&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;location&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;))        &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Directory&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;CreateDirectory&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;location&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;short_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;How&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;to read&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;the hard drive&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;serial&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;number&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;/ul&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #007700;&quot;&gt;public&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;string&amp;nbsp;GetHDDSerialNumber&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;string&amp;nbsp;drive&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;) &lt;br /&gt;
{&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #ff8000;&quot;&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;if&amp;nbsp;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;drive&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;==&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #dd0000;&quot;&gt;&quot;&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;||&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;drive&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;==&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;)        &lt;br /&gt;
&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;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;drive&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #dd0000;&quot;&gt;&quot;C&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;;        &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #007700;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ff8000;&quot;&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;ManagementObject&amp;nbsp;disk&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&amp;nbsp;new&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;ManagementObject&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dd0000;&quot;&gt;&quot;win32_logicaldisk.deviceid=\&quot;&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;+&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;drive&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dd0000;&quot;&gt;&quot;:\&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #ff8000;&quot;&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;disk&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Get&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;();        &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #ff8000;&quot;&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;return&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;disk&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #dd0000;&quot;&gt;&quot;VolumeSerialNumber&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;ToString&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;();        &lt;br /&gt;
}&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span class=&quot;short_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Get&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;a random number&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;between&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;two concrete&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;/ul&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Random&amp;nbsp;Rnd&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&amp;nbsp;new&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Random&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;();&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;int&amp;nbsp;A&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Rnd&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Next&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span class=&quot;short_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Change&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;the keyboard language&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;to&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Arabic&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;or&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;English&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;/ul&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #007700;&quot;&gt;public&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;enum&amp;nbsp;Languge&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;:&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Arabic&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;English&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;}&lt;br /&gt;
&lt;br /&gt;
public&amp;nbsp;static&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;void&amp;nbsp;SetLang&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Languge&amp;nbsp;Lang&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;try&lt;br /&gt;
&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;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;string&amp;nbsp;MyLang&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if&amp;nbsp;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Lang&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;==&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Languge&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Arabic&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&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;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;MyLang&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #dd0000;&quot;&gt;&quot;Arabic&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else&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;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;MyLang&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #dd0000;&quot;&gt;&quot;English&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;foreach&amp;nbsp;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;InputLanguage&amp;nbsp;ThisLang&amp;nbsp;in&amp;nbsp;InputLanguage&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;InstalledInputLanguages&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&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;if&amp;nbsp;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;ThisLang&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Culture&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;EnglishName&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Contains&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;MyLang&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&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;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;InputLanguage&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;CurrentInputLanguage&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;ThisLang&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;catch&amp;nbsp;{&amp;nbsp;}&lt;br /&gt;
}&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;short_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;To get&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;the number&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;of seconds&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;that&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;passed&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;the&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;device starts&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;/ul&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Int64&amp;nbsp;SecondsFromStart&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Environment&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;TickCount&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;1000&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span class=&quot;short_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Way of sending&lt;/span&gt; &lt;span class=&quot;hps atn&quot; title=&quot;Click for alternate translations&quot;&gt;e-&lt;/span&gt;&lt;span class=&quot;&quot; title=&quot;Click for alternate translations&quot;&gt;mail&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;your porgram&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;/ul&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;using&amp;nbsp;System&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;ServiceProcess&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;;        &lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;using&amp;nbsp;System&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Net&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Mail&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;;        &lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;using&amp;nbsp;System&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;;        &lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;using&amp;nbsp;System&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Collections&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #007700;&quot;&gt;       &lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;using&amp;nbsp;System&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;namespace&amp;nbsp;MOJ &lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;{        &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;class&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Email &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;{        &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;bool&amp;nbsp;SendEmail&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;MailAddress&amp;nbsp;FromEmail&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;MailAddress&amp;nbsp;ToEmail&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;string&amp;nbsp;Subject&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;MailAddressCollection&amp;nbsp;ToCC&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;MailAddressCollection&amp;nbsp;ToBCC&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;string&amp;nbsp;Body&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;string&amp;nbsp;SMTP&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;bool&amp;nbsp;IsHTML&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;ArrayList&amp;nbsp;Attachments&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;)        &lt;br /&gt;
&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;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;CheckService&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dd0000;&quot;&gt;&quot;smtpsvc&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;);        &lt;br /&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;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;MailMessage&amp;nbsp;mailMsg&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&amp;nbsp;new&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;MailMessage&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;FromEmail&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;ToEmail&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&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;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;mailMsg&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Subject&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Subject&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Trim&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;ToString&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&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;if&amp;nbsp;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;ToCC&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Count&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;!=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;)&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;mailMsg&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;CC&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Add&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;ToCC&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;ToString&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&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;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;mailMsg&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Bcc&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Add&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;ToBCC&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;ToString&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&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;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;mailMsg&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;IsBodyHtml&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;IsHTML&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&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;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;mailMsg&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;BodyEncoding&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Encoding&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;UTF8&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&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;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;mailMsg&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;SubjectEncoding&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;mailMsg&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;BodyEncoding&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&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;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;mailMsg&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Body&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Body&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Trim&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;ToString&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&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;if&amp;nbsp;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Attachments&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;!=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&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;{        &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;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Attachment&amp;nbsp;mailAttachment&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&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;foreach&amp;nbsp;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Attachment&amp;nbsp;mailAttachment&amp;nbsp;in&amp;nbsp;Attachments&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&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;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;mailMsg&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Attachments&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Add&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;mailAttachment&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&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;}        &lt;br /&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;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;SmtpClient&amp;nbsp;client&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&amp;nbsp;new&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;SmtpClient&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;SMTP&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Trim&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;ToString&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&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;try        &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;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Host&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #dd0000;&quot;&gt;&quot;localhost&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&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;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;client&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Send&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;mailMsg&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&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;}        &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;catch&amp;nbsp;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Exception&amp;nbsp;ex&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;)&amp;nbsp;{&amp;nbsp;throw&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;ex&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&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;return&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;;        &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}        &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;void&amp;nbsp;CheckService&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;string&amp;nbsp;ServiceName&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;)        &lt;br /&gt;
&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;&lt;/span&gt;&lt;span style=&quot;color: #ff8000;&quot;&gt;//Ensure&amp;nbsp;the&amp;nbsp;SMTP&amp;nbsp;Service&amp;nbsp;is&amp;nbsp;installed.        &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;//Loop&amp;nbsp;through&amp;nbsp;all&amp;nbsp;the&amp;nbsp;services&amp;nbsp;on&amp;nbsp;the&amp;nbsp;machine&amp;nbsp;and&amp;nbsp;find&amp;nbsp;the&amp;nbsp;SMTP&amp;nbsp;Service.        &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;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;ServiceController&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;[]&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;services&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;ServiceController&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;GetServices&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&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;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;ServiceController&amp;nbsp;service&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&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;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;bool&amp;nbsp;blnHasSmtpService&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&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;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;string&amp;nbsp;Message&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #dd0000;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;;        &lt;br /&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;foreach&amp;nbsp;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;ServiceController&amp;nbsp;service&amp;nbsp;in&amp;nbsp;services&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&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;{        &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;if&amp;nbsp;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;service&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;ServiceName&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;ToLower&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;!=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;ServiceName&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;ToLower&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&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;continue;        &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;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;blnHasSmtpService&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&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;break;        &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;if&amp;nbsp;(!&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;blnHasSmtpService&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;)&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Message&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;+=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #dd0000;&quot;&gt;&quot;-&amp;nbsp;There&#39;re&amp;nbsp;no&amp;nbsp;SMTP&amp;nbsp;service&amp;nbsp;on&amp;nbsp;your&amp;nbsp;system.&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&amp;amp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Environment&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;NewLine&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;;        &lt;br /&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;if&amp;nbsp;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;service&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Status&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;!=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;ServiceControllerStatus&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Running&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&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;{        &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;try        &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;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;service&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Start&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&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;catch&amp;nbsp;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Exception&amp;nbsp;ex&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;)&amp;nbsp;{&amp;nbsp;throw&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;ex&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&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;}        &lt;br /&gt;
&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;} &lt;br /&gt;
}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;li&gt;To send an e-mail should be the SMTP  service status and operated on your computer and be connected to the  Internet and then can be used SendEmail () to send.&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span class=&quot;short_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Know&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;the screen resolution&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;/ul&gt;&lt;div class=&quot;codeview&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;string&amp;nbsp;ScrRes&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Screen&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;PrimaryScreen&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Bounds&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Width&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;+&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #dd0000;&quot;&gt;&quot;X&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;+&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Screen&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;PrimaryScreen&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Bounds&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #007700;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;/ul&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arab-prog-dotnet.blogspot.com/feeds/6381509028156638345/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arab-prog-dotnet.blogspot.com/2011/01/c-codes.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/794787326736776526/posts/default/6381509028156638345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/794787326736776526/posts/default/6381509028156638345'/><link rel='alternate' type='text/html' href='http://arab-prog-dotnet.blogspot.com/2011/01/c-codes.html' title='C# Codes'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07205416342873541287</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-794787326736776526.post-7986878791157764636</id><published>2011-01-22T17:50:00.002+02:00</published><updated>2011-02-01T11:44:35.127+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="xml"/><title type='text'>XML - Introduction</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;m:smallfrac m:val=&quot;off&quot;&gt;    &lt;m:dispdef&gt;    &lt;m:lmargin m:val=&quot;0&quot;&gt;    &lt;m:rmargin m:val=&quot;0&quot;&gt;    &lt;m:defjc m:val=&quot;centerGroup&quot;&gt;    &lt;m:wrapindent m:val=&quot;1440&quot;&gt;    &lt;m:intlim m:val=&quot;subSup&quot;&gt;    &lt;m:narylim m:val=&quot;undOvr&quot;&gt;   &lt;/m:narylim&gt;&lt;/m:intlim&gt; &lt;/m:wrapindent&gt;  &lt;/m:defjc&gt;&lt;/m:rmargin&gt;&lt;/m:lmargin&gt;&lt;/m:dispdef&gt;&lt;/m:smallfrac&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;/div&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;border-collapse: collapse; border: medium none;&quot;&gt;&lt;tbody style=&quot;text-align: left;&quot;&gt;
&lt;tr style=&quot;text-align: left;&quot;&gt;   &lt;td style=&quot;border: 1pt solid windowtext; padding: 0cm 5.4pt; text-align: left; width: 442.8pt;&quot; valign=&quot;top&quot; width=&quot;590&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;XML Basics&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;XML stands for eXtensible Markup Language.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;XML is designed to transport and store data.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;li&gt;What is XML?&lt;/li&gt;
&lt;/ul&gt;&lt;blockquote class=&quot;&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;XML stands for EXtensible Markup Language&lt;/li&gt;
&lt;li&gt;XML is a markup language much like HTML&lt;/li&gt;
&lt;li&gt;XML was designed to carry data, not to display data&lt;/li&gt;
&lt;li&gt;XML tags are not predefined. You must define your own tags&lt;/li&gt;
&lt;li&gt;XML is designed to be self-descriptive&lt;/li&gt;
&lt;li&gt;XML is a W3C Recommendation&lt;/li&gt;
&lt;/ol&gt;&lt;/blockquote&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;li&gt;The Difference Between XML and HTML :&lt;/li&gt;
&lt;/ul&gt;&lt;blockquote class=&quot;&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;XML is not a replacement for HTML.&lt;/li&gt;
&lt;li&gt;XML and HTML were designed with different goals:&lt;/li&gt;
&lt;li&gt;XML was designed to transport and store data, with focus on what data is.&lt;/li&gt;
&lt;li&gt;HTML was designed to display data, with focus on how data looks.&lt;/li&gt;
&lt;li&gt;HTML is about displaying information, while XML is about carrying information&lt;/li&gt;
&lt;/ol&gt;&lt;/blockquote&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;li&gt;Understanding the Vocabulary:&lt;/li&gt;
&lt;/ul&gt;&lt;blockquote style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;Well-formed XML:&lt;/div&gt;&lt;/blockquote&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;/div&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;li&gt;Rules of Elements:&lt;/li&gt;
&lt;/ul&gt;&lt;blockquote class=&quot;&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Element names cannot contain white space&lt;/li&gt;
&lt;li&gt;Names cannot start with a number or a punctuation mark&lt;/li&gt;
&lt;li&gt;Names cannot start with xml or variants&lt;/li&gt;
&lt;li&gt;No space after the left angle bracket (&amp;lt;)&lt;/li&gt;
&lt;li&gt;The case of start and closing tags must match&lt;/li&gt;
&lt;li&gt;The first element is the root element&lt;/li&gt;
&lt;li&gt;The root element must have start and closing tags&lt;/li&gt;
&lt;li&gt;All child elements must nest within the root&lt;/li&gt;
&lt;li&gt;Nesting elements cannot overlap&lt;/li&gt;
&lt;li&gt;An empty child element can consist of a single tag&lt;/li&gt;
&lt;/ol&gt;&lt;/blockquote&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;li&gt;Rules of Attributes:&lt;a href=&quot;http://www.blogger.com/ATTRIBUTES.XML&quot;&gt;&lt;br /&gt;
&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;blockquote class=&quot;&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Declare them in start tags and processing instructions&lt;/li&gt;
&lt;li&gt;Separate multiple declarations with a space&lt;/li&gt;
&lt;li&gt;An attribute consists of a name and an assignment&lt;/li&gt;
&lt;li&gt;Each name must be unique within an element&lt;/li&gt;
&lt;li&gt;You can reuse names throughout a document&lt;/li&gt;
&lt;li&gt;There are no spaces in names&lt;/li&gt;
&lt;li&gt;Use either single or double quotes for assignments&lt;/li&gt;
&lt;li&gt;&amp;lt;Book Type=&quot;IT&quot;&amp;gt;XML Principles&amp;lt;/Book&amp;gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/blockquote&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;li&gt;Processing instructions to applications&lt;/li&gt;
&lt;/ul&gt;&lt;blockquote class=&quot;&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Use it to send a command to an external application&lt;/li&gt;
&lt;li&gt;Multiple PIs to applications are allowed&lt;/li&gt;
&lt;li&gt;&amp;lt;?MyDbAppSELECT * FROM orders?&amp;gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/blockquote&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;li&gt;Processing instructions to the XML processor –&amp;nbsp; the XML declaration&lt;/li&gt;
&lt;/ul&gt;&lt;blockquote style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;It begins with the XML keyword&lt;/li&gt;
&lt;li&gt;It must appear only once per document at the top of the document&lt;/li&gt;
&lt;li&gt;Use it to declare the XML version and character encoding&lt;/li&gt;
&lt;li&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/blockquote&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; font-size: 11pt; line-height: 115%;&quot;&gt;&lt;br clear=&quot;all&quot; style=&quot;page-break-before: always;&quot; /&gt; &lt;/span&gt;  &lt;br /&gt;
&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;li&gt;Comments:&lt;a href=&quot;http://www.blogger.com/COMMENTS.XML&quot;&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;blockquote class=&quot;&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Do not embed a comment within a tag&lt;/li&gt;
&lt;li&gt;&lt;blockquote&gt;&amp;lt;Books&amp;gt;&amp;lt;!--IT--&amp;gt;&amp;lt;/Books&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Error: &amp;lt;Books&amp;lt;!--IT--&amp;gt;&amp;gt;&amp;lt;/Books&amp;gt;&lt;/blockquote&gt;&lt;/li&gt;
&lt;li&gt;Use the double hyphen (--) only to open and close the comment&lt;/li&gt;
&lt;li&gt;&lt;blockquote&gt;&amp;lt;--Option use–fas option --&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Error:&amp;lt;--option use&amp;nbsp; --d as option--&amp;gt;&lt;/blockquote&gt;&lt;/li&gt;
&lt;li&gt;Do not use a triple hyphen (---) at the end&lt;/li&gt;
&lt;li&gt;&lt;blockquote&gt;&amp;lt;---10 Centigrade --&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Error: &amp;lt;---10 Centigrade ---&amp;gt;&lt;/blockquote&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/blockquote&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ul style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;li&gt;Reserved Characters:&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;/div&gt;&lt;m:smallfrac m:val=&quot;off&quot;&gt;    &lt;m:dispdef&gt;    &lt;m:lmargin m:val=&quot;0&quot;&gt;    &lt;m:rmargin m:val=&quot;0&quot;&gt;    &lt;m:defjc m:val=&quot;centerGroup&quot;&gt;    &lt;m:wrapindent m:val=&quot;1440&quot;&gt;    &lt;m:intlim m:val=&quot;subSup&quot;&gt;    &lt;m:narylim m:val=&quot;undOvr&quot;&gt;   &lt;/m:narylim&gt;&lt;/m:intlim&gt; &lt;/m:wrapindent&gt;  &lt;/m:defjc&gt;&lt;/m:rmargin&gt;&lt;/m:lmargin&gt;&lt;/m:dispdef&gt;&lt;/m:smallfrac&gt;&lt;br /&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;border-collapse: collapse; border: medium none;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;   &lt;td style=&quot;border: 1pt solid windowtext; padding: 0cm 5.4pt; width: 221.4pt;&quot; valign=&quot;top&quot; width=&quot;295&quot;&gt;&lt;div class=&quot;MsoNormal&quot; dir=&quot;RTL&quot; style=&quot;direction: rtl; line-height: normal; margin-bottom: 0.0001pt; text-align: right; unicode-bidi: embed;&quot;&gt;&lt;b&gt;&lt;span dir=&quot;LTR&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&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; Reserved Characters&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0cm 5.4pt; width: 221.4pt;&quot; valign=&quot;top&quot; width=&quot;295&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; dir=&quot;RTL&quot; style=&quot;direction: rtl; line-height: normal; margin-bottom: 0.0001pt; text-align: center; unicode-bidi: embed;&quot;&gt;&lt;b&gt;&lt;span dir=&quot;LTR&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Entity References&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr&gt;   &lt;td style=&quot;border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 221.4pt;&quot; valign=&quot;top&quot; width=&quot;295&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; dir=&quot;RTL&quot; style=&quot;direction: rtl; line-height: normal; margin-bottom: 0.0001pt; text-align: center; unicode-bidi: embed;&quot;&gt;&lt;span dir=&quot;LTR&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span lang=&quot;AR-SY&quot; style=&quot;font-family: &amp;quot;Simplified Arabic&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 221.4pt;&quot; valign=&quot;top&quot; width=&quot;295&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; dir=&quot;RTL&quot; style=&quot;direction: rtl; line-height: normal; margin-bottom: 0.0001pt; text-align: center; unicode-bidi: embed;&quot;&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&lt;span dir=&quot;LTR&quot;&gt;&lt;/span&gt;&amp;amp;amp;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr&gt;   &lt;td style=&quot;border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 221.4pt;&quot; valign=&quot;top&quot; width=&quot;295&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; dir=&quot;RTL&quot; style=&quot;direction: rtl; line-height: normal; margin-bottom: 0.0001pt; text-align: center; unicode-bidi: embed;&quot;&gt;&lt;span dir=&quot;LTR&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;lt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 221.4pt;&quot; valign=&quot;top&quot; width=&quot;295&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; dir=&quot;RTL&quot; style=&quot;direction: rtl; line-height: normal; margin-bottom: 0.0001pt; text-align: center; unicode-bidi: embed;&quot;&gt;&lt;span dir=&quot;LTR&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;amp;lt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr&gt;   &lt;td style=&quot;border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 221.4pt;&quot; valign=&quot;top&quot; width=&quot;295&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; dir=&quot;RTL&quot; style=&quot;direction: rtl; line-height: normal; margin-bottom: 0.0001pt; text-align: center; unicode-bidi: embed;&quot;&gt;&lt;span dir=&quot;LTR&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 221.4pt;&quot; valign=&quot;top&quot; width=&quot;295&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; dir=&quot;RTL&quot; style=&quot;direction: rtl; line-height: normal; margin-bottom: 0.0001pt; text-align: center; unicode-bidi: embed;&quot;&gt;&lt;span dir=&quot;LTR&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr&gt;   &lt;td style=&quot;border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 221.4pt;&quot; valign=&quot;top&quot; width=&quot;295&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; dir=&quot;RTL&quot; style=&quot;direction: rtl; line-height: normal; margin-bottom: 0.0001pt; text-align: center; unicode-bidi: embed;&quot;&gt;&lt;span dir=&quot;LTR&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&#39;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 221.4pt;&quot; valign=&quot;top&quot; width=&quot;295&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; dir=&quot;RTL&quot; style=&quot;direction: rtl; line-height: normal; margin-bottom: 0.0001pt; text-align: center; unicode-bidi: embed;&quot;&gt;&lt;span dir=&quot;LTR&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;amp;apos;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr&gt;   &lt;td style=&quot;border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 221.4pt;&quot; valign=&quot;top&quot; width=&quot;295&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; dir=&quot;RTL&quot; style=&quot;direction: rtl; line-height: normal; margin-bottom: 0.0001pt; text-align: center; unicode-bidi: embed;&quot;&gt;&lt;span dir=&quot;LTR&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 221.4pt;&quot; valign=&quot;top&quot; width=&quot;295&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; dir=&quot;RTL&quot; style=&quot;direction: rtl; line-height: normal; margin-bottom: 0.0001pt; text-align: center; unicode-bidi: embed;&quot;&gt;&lt;span dir=&quot;LTR&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;amp;quot;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr&gt;   &lt;td style=&quot;border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0cm 5.4pt; width: 221.4pt;&quot; valign=&quot;top&quot; width=&quot;295&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; dir=&quot;RTL&quot; style=&quot;direction: rtl; line-height: normal; margin-bottom: 0.0001pt; text-align: center; unicode-bidi: embed;&quot;&gt;&lt;span dir=&quot;LTR&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Space&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0cm 5.4pt; width: 221.4pt;&quot; valign=&quot;top&quot; width=&quot;295&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; dir=&quot;RTL&quot; style=&quot;direction: rtl; line-height: normal; margin-bottom: 0.0001pt; text-align: center; unicode-bidi: embed;&quot;&gt;&lt;span dir=&quot;LTR&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;What Is an XML Vocabulary?&lt;/li&gt;
&lt;/ul&gt;&lt;blockquote class=&quot;&quot;&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Problem: two XML sources cannot be easily combined&lt;/li&gt;
&lt;li&gt;Solution: each XML source shares the same structure, naming, and case&lt;/li&gt;
&lt;/ul&gt;&lt;/blockquote&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;&quot;&gt;&lt;/div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Guidelines for Creating Vocabularies&lt;/li&gt;
&lt;/ul&gt;&lt;blockquote class=&quot;&quot;&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Determine if a vocabulary already exists&lt;/li&gt;
&lt;li&gt;Make your XML easy to read and understand &lt;/li&gt;
&lt;li&gt;Use title case for elements and attribute names&lt;/li&gt;
&lt;li&gt;Avoid abbreviations&lt;/li&gt;
&lt;/ol&gt;&lt;/blockquote&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arab-prog-dotnet.blogspot.com/feeds/7986878791157764636/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arab-prog-dotnet.blogspot.com/2011/01/xml-introduction.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/794787326736776526/posts/default/7986878791157764636'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/794787326736776526/posts/default/7986878791157764636'/><link rel='alternate' type='text/html' href='http://arab-prog-dotnet.blogspot.com/2011/01/xml-introduction.html' title='XML - Introduction'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07205416342873541287</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-794787326736776526.post-4582468607451490301</id><published>2011-01-21T18:05:00.001+02:00</published><updated>2011-01-30T18:10:10.875+02:00</updated><title type='text'>بدء العمل بالمدونة</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;color: #0b5394; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;السلام عليكم&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #0b5394; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span class=&quot;short_text&quot; id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;Peace&lt;/span&gt; &lt;span class=&quot;hps&quot; title=&quot;Click for alternate translations&quot;&gt;be upon you&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;u style=&quot;color: purple;&quot;&gt;بفضل الله وعونه&lt;/u&gt; تم انشاء مدونة&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt; &lt;span style=&quot;color: red;&quot;&gt;المبرمج العربي دوت نت&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&lt;/span&gt; والتي ستجدون من خلالها مواضيع ومقالات تخص مختلف التقنيات البرمجية وبمختلف اللغات&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arab-prog-dotnet.blogspot.com/feeds/4582468607451490301/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arab-prog-dotnet.blogspot.com/2011/01/blog-post.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/794787326736776526/posts/default/4582468607451490301'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/794787326736776526/posts/default/4582468607451490301'/><link rel='alternate' type='text/html' href='http://arab-prog-dotnet.blogspot.com/2011/01/blog-post.html' title='بدء العمل بالمدونة'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07205416342873541287</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>