<rss version="2.0">
  <channel />
  <title>JustAboutDaniel: RSS Feed</title>
  <description>JustAboutDaniel.com news feed for becoming a better programmer.</description>
  <copyright>Copyright 2012</copyright>
  <link>http://justaboutdaniel.com/</link>
  <item id="20" status="enabled">
    <title>Sending an Email C#</title>
    <description>&amp;lt;p&amp;gt;The following is code on how to send an email with C#. I hope you find a good use for the code:&amp;lt;br&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;div id=&amp;#39;0&amp;#39; class=&amp;#39;code&amp;#39;&amp;gt;&amp;lt;script type=&amp;#39;syntaxhighlighter&amp;#39; class=&amp;#39;brush: csharp&amp;#39;&amp;gt;&amp;lt;![CDATA[


NetworkCredential loginInfo = new NetworkCredential(&amp;quot;usernameofmailserver&amp;quot;, &amp;quot;passwordofmailserver&amp;quot;);
MailMessage msg = new MailMessage();
msg.From = new MailAddress(from);
msg.To.Add(new MailAddress(to));
msg.Subject = subject;
msg.Body = body;
msg.IsBodyHtml = true;
SmtpClient client = new SmtpClient(&amp;quot;mailserver&amp;quot;);
client.Port = 80;
client.UseDefaultCredentials = false;
client.Credentials = loginInfo;
client.Send(msg);


]]&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;/div id=&amp;#39;0&amp;#39;&amp;gt; &amp;#160;&amp;#160; &amp;lt;br&amp;gt;&amp;lt;/p&amp;gt;</description>
    <link>http://www.justaboutdaniel.com/ArticleDetails/20/1/Sending-an-Email-C#</link>
    <pubDate>2012-02-18T23:40:01.21</pubDate>
  </item>
  <item id="19" status="enabled">
    <title>Steve Jobs Passes Away at Age 56</title>
    <description>&amp;lt;p&amp;gt;Steve Jobs was an&amp;#160;entrepreneur,&amp;#160;inventor, co-founder, chairman, and executive officer of Apple. &amp;#160;I know this is technically a website for sharing code, but Steve Jobs deserves a mention and praise. Steve Jobs is known as a co-inventor of over 310 patented products. Steve Jobs helped Bring the iPhone, iPad, iTouch, and many other apple products that you love and use probably every day. Steve Jobs on Aug 24, 2011 decided to retire from Apple, because of issues he was dealing with regarding cancer. Steve Jobs will be missed by Apple. The following is currently on Apple&amp;#39;s website:&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;img src=&amp;quot;http://a57.foxnews.com/static/managed/img/Scitech/660/371/apple_site_100511.jpg&amp;quot; title=&amp;quot;Steve Jobs on Apple&amp;quot; s=&amp;quot;&amp;quot; website=&amp;quot;&amp;quot; home=&amp;quot;&amp;quot; page&amp;#39;=&amp;quot;&amp;quot; alt=&amp;quot;&amp;quot;&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/p&amp;gt;</description>
    <link>http://www.justaboutdaniel.com/ArticleDetails/19/1/Steve-Jobs-Passes-Away-at-Age-56</link>
    <pubDate>2011-11-02T22:36:49.23</pubDate>
  </item>
  <item id="17" status="enabled">
    <title>Auto Scrolling / Focusing on an Element With or Without JavaScript / jQuery</title>
    <description>I have heard that auto scrolling was dead, but however I think that autoscrolling can be usefull for many purposes. Such as:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;1. When clicking a link focusing on a paragraph.&amp;lt;br&amp;gt;&amp;#160;&amp;#160;&amp;#160; - FAQs webpage&amp;lt;br&amp;gt;2. When loading a webpage taking users straight to a section of the webpage.&amp;lt;br&amp;gt;&amp;#160;&amp;#160;&amp;#160; - Focusing on the comments that are below a blog post&amp;lt;br&amp;gt;3. Taking user&amp;#39;s to the bottom of a webpage and to the top of a webpage without having to scroll a massive amount, which users tend not to scroll much. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Below are two examples of how to focus a browser on different sections of a webpage. One example is using nothing but HTML and the other example uses jQuery.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;The first example uses the first href in the first li of the ul below. As you can see the link&amp;#39;s href has &amp;quot;#example1&amp;quot; inside. Which is the id of one of the divs. Upon clicking the link the href=&amp;quot;#example1&amp;quot; will go on the address bar at the very end of the URL and instantly your browser will focus on the div with id of &amp;quot;example1&amp;quot;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;The second example uses jQuery which adds an onclick event to the href with id of &amp;quot;linkExample2&amp;quot;. Upon the link being clicked the browser&amp;#39;s scrollbar will scroll for 2 seconds until the div with id of &amp;quot;example2&amp;quot; is within view.&amp;lt;br&amp;gt;&amp;lt;p&amp;gt;&amp;lt;div id=&amp;#39;0&amp;#39; class=&amp;#39;code&amp;#39;&amp;gt;&amp;lt;script type=&amp;#39;syntaxhighlighter&amp;#39; class=&amp;#39;brush: js&amp;#39;&amp;gt;&amp;lt;![CDATA[
&amp;#160;$(document).ready(function() {
&amp;#160; 
&amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; // handle onclick for example 2
&amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; // and animate scrolling to div # of example2
&amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; $(&amp;#39;#linkExample2&amp;#39;).click(function(){
&amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; $(&amp;#39;html, body&amp;#39;).animate({
&amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; scrollTop: $(&amp;quot;#example2&amp;quot;).offset().top
&amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; }, 2000); // 2,000 miliseconds = 2 seconds
&amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; });&amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; 
&amp;#160;});

]]&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;/div id=&amp;#39;0&amp;#39;&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;div id=&amp;#39;1&amp;#39; class=&amp;#39;code&amp;#39;&amp;gt;&amp;lt;script type=&amp;#39;syntaxhighlighter&amp;#39; class=&amp;#39;brush: html&amp;#39;&amp;gt;&amp;lt;![CDATA[ 

 &amp;lt;div id=&amp;quot;example1&amp;quot;&amp;gt;
&amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160; Example 1 - Will be focused on click without the use of JavaScript.
&amp;lt;/div&amp;gt;
&amp;#160;&amp;#160;&amp;#160; &amp;#160;
&amp;#160;&amp;lt;div id=&amp;quot;example2&amp;quot;&amp;gt;
&amp;#160;&amp;#160;&amp;#160; &amp;#160;&amp;#160;&amp;#160; Example 2 - Will be focused on click with the use of JavaScript.
&amp;#160;&amp;lt;/div&amp;gt;

]]&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;/div id=&amp;#39;1&amp;#39;&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/p&amp;gt;</description>
    <link>http://www.justaboutdaniel.com/ArticleDetails/17/1/Auto-Scrolling-/-Focusing-on-an-Element-With-or-Without-JavaScript-/-jQuery</link>
    <pubDate>2011-09-11T20:25:58.32</pubDate>
  </item>
  <item id="18" status="enabled">
    <title>A List of 20 New Features in Visual Studio 2010</title>
    <description>&amp;lt;h2&amp;gt;&amp;lt;span class=&amp;quot;Apple-style-span&amp;quot; style=&amp;quot;font-weight: normal;&amp;quot;&amp;gt;20 New Features in Visual Studio 2010&amp;lt;/span&amp;gt;:&amp;lt;br&amp;gt;&amp;lt;/h2&amp;gt;&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;1. Able to position windows everywhere!&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;2. Access controls in clientside easy with ClientStaticID&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;3. Default Parameters&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;4. RedirectPermanent - For letting search engines know file has been moved!&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;5. Able to have a bigger URL than 260 characters&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;6. jQuery is added once you create a project&amp;#160;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;7. Routing support&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;8. Ability to set meta tags such as Description and Keywords&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;9. Maintaining Selection In GridView&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;10. Control over rendered HTML in &amp;#160;FormView and ListView controls&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;11. ListView enhancement - Layout template is no longer needed.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;12. Chart control for charting data&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;13. New Project Templates&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;14. Clickability for sending an email / going to a new page&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;15. Improved searching&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;16. Multi-Targeting&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;17. Side-By-Side&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;18. JavaScript IntelliSense was improved&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;19. CSS 2.1 improved standard compliance&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;20. QueryExtender Control&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;There is more than 20 new features in Visual Studio 2010 of course, but for this article posting I only covered 20. I didn&amp;#39;t think that there would be many new features, but there is a lot of new features. A was blown away by how many new features there are in VS 2010 once I started searching online.&amp;#160;For brief code examples and explanations on the above features see my presentation on&amp;lt;a href=&amp;quot;http://prezi.com/3om_nnibq6n2/new-features-in-visual-studio-2010/&amp;quot; title=&amp;quot;_blank&amp;quot; target=&amp;quot;http://prezi.com/3om_nnibq6n2/new-features-in-visual-studio-2010/&amp;quot;&amp;gt;&amp;#160;http://prezi.com/3om_nnibq6n2/new-features-in-visual-studio-2010/&amp;lt;/a&amp;gt;.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;As always thank you for stopping by and don&amp;#39;t forget to add comments or create an article.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;</description>
    <link>http://www.justaboutdaniel.com/ArticleDetails/18/1/A-List-of-20-New-Features-in-Visual-Studio-2010</link>
    <pubDate>2011-09-08T23:01:11.103</pubDate>
  </item>
  <item id="16" status="enabled">
    <title>How to Solve Syntax Error on DOCTYPE Error</title>
    <description>&amp;lt;p&amp;gt;&amp;lt;br&amp;gt;This past weekend I was coding something in JavaScript and I kept getting the following error on the FireBug console:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;div id=&amp;#39;0&amp;#39; class=&amp;#39;code&amp;#39;&amp;gt;&amp;lt;script type=&amp;#39;syntaxhighlighter&amp;#39; class=&amp;#39;brush: html&amp;#39;&amp;gt;&amp;lt;![CDATA[
syntax error [Break On This Error]&amp;#160; &amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHT.../xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt; 
]]&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;/div id=&amp;#39;0&amp;#39;&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;I couldn&amp;#39;t figure out how to solve the issue. Until I came accros an article that mention that it was that one of the attributes of a tag might not be being set properly. Well I looked at all of my script and link tags and they were all fine. I finally noticed that in the clobal I was rewriting the path when I shouldn&amp;#39;t have been to a different URL which lead to script file that didn&amp;#39;t exist.&amp;lt;br&amp;gt;Moral of the story check that all of your script tags and link tags do not get overwritten and that the tags have an src attribute that leads to a valid file. Also, it is possible that JavaScript can cause the above error too.&amp;lt;/p&amp;gt;</description>
    <link>http://www.justaboutdaniel.com/ArticleDetails/16/1/How-to-Solve-Syntax-Error-on-DOCTYPE-Error</link>
    <pubDate>2011-08-28T21:15:39.997</pubDate>
  </item>
  <item id="15" status="enabled">
    <title>Magnifying an Image on MouseOver with CSS and HTML</title>
    <description>&amp;lt;br&amp;gt;Magnifying an image with CSS and HTML isn&amp;#39;t very complicated. The following sets styleing to the background of the body&amp;#160; and appropriate links to create the illusion of an image being magnified. There is actually two images that are on the webpage which is actually a dissadvantage since both images have to be loaded onto the webpage. The advantage is that the magnifying is done with only CSS and HTML which is great because I have heard that it is bad to use a lot of JavaScript on&amp;#160; websites that are visited a lot by people using Mobile Devices since Mobile Devices don&amp;#39;t render JavaScript well.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;div id=&amp;#39;0&amp;#39; class=&amp;#39;code&amp;#39;&amp;gt;&amp;lt;script type=&amp;#39;syntaxhighlighter&amp;#39; class=&amp;#39;brush: css&amp;#39;&amp;gt;&amp;lt;![CDATA[
body{
&amp;#160;&amp;#160; &amp;#160;background-color: black;
}

.heading{
&amp;#160;&amp;#160; &amp;#160;
&amp;#160;&amp;#160; &amp;#160;color:black;
&amp;#160;&amp;#160; &amp;#160;background-color:lightYellow;
&amp;#160;&amp;#160; &amp;#160;letter-spacing:20;
&amp;#160;&amp;#160; &amp;#160;font-size:40pt;
&amp;#160;&amp;#160; &amp;#160;font-family: Brush Script MT, Arial;
}

a {text-decoration: none; color:green;}

a:hover { color:white;}

.magnify
{
&amp;#160;&amp;#160; &amp;#160;cursor: default;
&amp;#160;&amp;#160; &amp;#160;list-style: none;
&amp;#160;&amp;#160; &amp;#160;text-align: center;
}

.magnify a
{
&amp;#160;&amp;#160; &amp;#160;cursor: default;
}

.magnify a .preview
{
&amp;#160;&amp;#160; &amp;#160;display: none;
}

.magnify a:hover .preview
{
&amp;#160;&amp;#160; &amp;#160;display: block;
&amp;#160;&amp;#160; &amp;#160;position: absolute;
&amp;#160;&amp;#160; &amp;#160;top: -30px;
&amp;#160;&amp;#160; &amp;#160;left: -20px;
&amp;#160;&amp;#160; &amp;#160;z-index: 1;
}


.magnify img
{
&amp;#160;&amp;#160; &amp;#160;background: #553608;
&amp;#160;&amp;#160; &amp;#160;/*border-color: #aaa #ccc #ddd #bbb;*/
&amp;#160;&amp;#160; &amp;#160;border-color: #725700;
&amp;#160;&amp;#160; &amp;#160;border-style: solid;
&amp;#160;&amp;#160; &amp;#160;border-width: 1px;
&amp;#160;&amp;#160; &amp;#160;color: inherit;
&amp;#160;&amp;#160; &amp;#160;padding: 2px;
&amp;#160;&amp;#160; &amp;#160;vertical-align: top;
&amp;#160;&amp;#160; &amp;#160;width: 218px;
&amp;#160;&amp;#160; &amp;#160;height: 162px;
}

.magnify td
{
&amp;#160;&amp;#160; &amp;#160;background: invisible;
&amp;#160;&amp;#160; &amp;#160;/*border-color: #ddd #bbb #aaa #ccc;*/
&amp;#160;&amp;#160; &amp;#160;border-color: #725700;
&amp;#160;&amp;#160; &amp;#160;border-style: solid;
&amp;#160;&amp;#160; &amp;#160;border-width: 0px;
&amp;#160;&amp;#160; &amp;#160;color: inherit;
&amp;#160;&amp;#160; &amp;#160;display: inline;
&amp;#160;&amp;#160; &amp;#160;margin: 3px;
&amp;#160;&amp;#160; &amp;#160;padding: 0px;
&amp;#160;&amp;#160; &amp;#160;position: relative;
}

.magnify .preview
{
&amp;#160;&amp;#160; &amp;#160;border-color: #000;
&amp;#160;&amp;#160; &amp;#160;width: 300px;
&amp;#160;&amp;#160; &amp;#160;height: 240px;
}

]]&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;/div id=&amp;#39;0&amp;#39;&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;There is a few fixes for IE since IE will display the magnified image a little off OnMouseover&amp;lt;br&amp;gt;if the following fixes are not in place:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;div id=&amp;#39;1&amp;#39; class=&amp;#39;code&amp;#39;&amp;gt;&amp;lt;script type=&amp;#39;syntaxhighlighter&amp;#39; class=&amp;#39;brush: css&amp;#39;&amp;gt;&amp;lt;![CDATA[

.magnify a
{
&amp;#160;&amp;#160; &amp;#160;position: relative;
}

.magnify a:hover
{
&amp;#160;&amp;#160; &amp;#160;display: block;
&amp;#160;&amp;#160; &amp;#160;font-size: 100%;
&amp;#160;&amp;#160; &amp;#160;z-index: 1;
}

.magnify a:hover .preview
{
&amp;#160;&amp;#160; &amp;#160;top: -38px;
&amp;#160;&amp;#160; &amp;#160;left: -50px;
}

.magnify td
{
&amp;#160;&amp;#160; &amp;#160;position: static;
}

]]&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;/div id=&amp;#39;1&amp;#39;&amp;gt;</description>
    <link>http://www.justaboutdaniel.com/ArticleDetails/15/1/Magnifying-an-Image-on-MouseOver-with-CSS-and-HTML</link>
    <pubDate>2011-08-16T06:45:45.49</pubDate>
  </item>
  <item id="14" status="enabled">
    <title>QR Code Uses and How to Create a QR Code</title>
    <description>&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Introduction&amp;lt;/strong&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;QR(Quick Response) codes are 2 dimentionsal barcodes which were used mainly in Japan. However, in recent years the U.S. has started using QR codes. For example, Best Buy uses QR codes on the label tags of their products to provide more information for the item. There is a also a company&amp;#160;called Tesco in Korea&amp;#160;which speciallizes in the food market industry. Which placed posters of the different type of food that they offered whith QR codes. Once the person scanned the QR code for the item it would place the item in a shopping cart. Then the person would purchase the food online. The food would get delivered to the person&amp;#39;s home without having to pay a visit to the local super market.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Dissadvantages&amp;lt;/strong&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;1. A QR code can only have one data type:&amp;lt;br&amp;gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;•URL&amp;lt;br&amp;gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;•Text&amp;lt;br&amp;gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;•Phone number&amp;lt;br&amp;gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;•SMS&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;2. A QR code is limited in amount of information that it can have.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;3. Not everyone has a cell phone.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;4. Not everyone has a cell phone that can read QR codes.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Advantages/Uses&amp;lt;br&amp;gt;&amp;lt;/strong&amp;gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;•Provide additional information&amp;lt;br&amp;gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; •Coupons&amp;lt;br&amp;gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;•URL&amp;lt;br&amp;gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;•Add items to shopping cart&amp;lt;br&amp;gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;•Making Flyers/Posters/Business Cards interactive&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Hints&amp;lt;/strong&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;Make sure to not clutter the QR code. The more information a QR code has the harder it is for QR readers to read a QR code.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;Finally, to create a QR code is simple. There is a .dll which allows for creating QR codes: &amp;lt;a href=&amp;quot;http://twit88.com/platform/projects/list_files/mt-qrcode&amp;quot;&amp;gt;http://twit88.com/platform/projects/list_files/mt-qrcode&amp;lt;/a&amp;gt;. &amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;Example QR codes that were made with the .dll:&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br&amp;gt;&amp;lt;img src=&amp;quot;http://www.justaboutdaniel.com/QRCodeHandler.ashx?text=Hello&amp;amp;scale=3&amp;quot; /&amp;gt;&amp;lt;br&amp;gt;&amp;lt;img src=&amp;quot;http://www.justaboutdaniel.com/QRCodeHandler.ashx?text=http://www.justaboutdaniel.com&amp;amp;scale=3&amp;quot; &amp;#160;/&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Conclusion&amp;lt;/strong&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;To create a QR code without having to write much code simply copy and paste what is below:&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;div class=&amp;#39;code&amp;#39;&amp;gt;&amp;lt;script type=&amp;#39;syntaxhighlighter&amp;#39; class=&amp;#39;brush: html&amp;#39;&amp;gt;&amp;lt;![CDATA[
&amp;lt;img src=&amp;quot;http://www.justaboutdaniel.com/QRCodeHandler.ashx?text=Hello&amp;amp;scale=2&amp;quot; /&amp;gt;

&amp;lt;img src=&amp;quot;http://www.justaboutdaniel.com/QRCodeHandler.ashx?text=http://www.justaboutdaniel.com&amp;amp;scale=2&amp;quot; /&amp;gt;
]]&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;/div id=&amp;#39;0&amp;#39;&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;After the text portion feel free to change it to whatever you like as long as QR code supports your input and change the scale from 1-10 to make the QR code smaller or bigger. Note: The size can also be changed by adding a width and height to your image.&amp;lt;br&amp;gt;&amp;lt;/p&amp;gt;</description>
    <link>http://www.justaboutdaniel.com/ArticleDetails/14/1/QR-Code-Uses-and-How-to-Create-a-QR-Code</link>
    <pubDate>2011-07-10T21:43:26.673</pubDate>
  </item>
  <item id="13" status="enabled">
    <title>Accessing Password Through conn.ConnectionString SQL Server ASP.Net</title>
    <description>&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;br&amp;gt;Using the following code a connection to the database can be made by retrieving the connection string information from the web.config.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;div class=&amp;#39;code&amp;#39;&amp;gt;&amp;lt;script type=&amp;#39;syntaxhighlighter&amp;#39; class=&amp;#39;brush: csharp&amp;#39;&amp;gt;&amp;lt;![CDATA[
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; SqlConnection conn = new SqlConnection();
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; conn.ConnectionString =&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; System.Configuration.ConfigurationManager.ConnectionStrings[&amp;quot;ConnectionStringName&amp;quot;].ToString();
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; SqlCommand comm = new SqlCommand();
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; conn.Open();
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; comm.Connection = conn;
]]&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;However, if in the web.config if the connection string doesn&amp;#39;t include &amp;quot;Integrated Security=True&amp;quot; the password will not be retrievable. Make sure to include the &amp;quot;Integrated Security=True&amp;quot; on your connection string to SQL Server. The following is a connection string with &amp;quot;Integrated Security=True&amp;quot;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;div class=&amp;#39;code&amp;#39;&amp;gt;&amp;lt;script type=&amp;#39;syntaxhighlighter&amp;#39; class=&amp;#39;brush: xml&amp;#39;&amp;gt;&amp;lt;![CDATA[

&amp;#160;&amp;#160;&amp;#160; &amp;lt;add name=&amp;quot;ConnectionStringName&amp;quot; connectionString=&amp;quot;Data Source=server;Initial Catalog=databasename;Integrated Security=True&amp;quot; providerName=&amp;quot;System.Data.SqlClient&amp;quot;/&amp;gt;

&amp;#160;]]&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;/div&amp;gt; &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;lt;/p&amp;gt;</description>
    <link>http://www.justaboutdaniel.com/ArticleDetails/13/1/Accessing-Password-Through-conn.ConnectionString-SQL-Server-ASP.Net</link>
    <pubDate>2011-06-25T19:31:35.25</pubDate>
  </item>
  <item id="12" status="enabled">
    <title>CSharp – Creating /storing a PDF Document with Tables, Paragraphs, watermark, and images</title>
    <description>&amp;lt;p&amp;gt;A while back I had to do a small project. The project involved showing data from the database in a pdf. I searched online and found PDFSharp, iText, and iTextSharp. However, I went with PDFSharp, since it is possible to use PDFSharp for commercial use. However with iText you can post, add javascript, and fill in fields. With PDFSharp it is possible to fill in fields, but there is a small clitch that when you go to type something on the field, the original text hovers over the text you are typing; sort of like a watermark that never goes away. However, for my purposes I didn’t need to populate any fields with any values, &amp;lt;br&amp;gt;which is why I went with PDFSharp. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Creating a PDF using PDFSharp is similar to creating a control (textbox, label, dropdown, etc) in csharp. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;To get started you would first have to create a PDF Document with a section(at least one section is required) by doing the following:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;div class=&amp;#39;code&amp;#39;&amp;gt;&amp;lt;script type=&amp;#39;syntaxhighlighter&amp;#39; class=&amp;#39;brush: csharp&amp;#39;&amp;gt;&amp;lt;![CDATA[
&amp;#160; 

&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; // instantiate new document object
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Document document = new Document();

&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; // Set title, subject, and author
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; document.Info.Title = &amp;quot;Example Creating A Table and Importing Image From File&amp;quot;;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; document.Info.Subject = &amp;quot;Example Creating A Table and Importing Image From File&amp;quot;;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; document.Info.Author = &amp;quot;Daniel Aguayo&amp;quot;;

&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Section section = document.AddSection(); // at least one section is required

]]&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Then you would simple add to the PDF :&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;How to add a paragraph:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;A paragraph object must be instantiated with line breaks and text.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;div class=&amp;#39;code&amp;#39;&amp;gt;&amp;lt;script type=&amp;#39;syntaxhighlighter&amp;#39; class=&amp;#39;brush: csharp&amp;#39;&amp;gt;&amp;lt;![CDATA[

&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Paragraph paragraph = section.AddParagraph();&amp;#160;&amp;#160;&amp;#160; 
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; paragraph.AddText(&amp;quot;Person information person information person information person information and friends. Line breaks are below for 
spacing.&amp;quot;);
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; paragraph.AddLineBreak();
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; paragraph.AddLineBreak();
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; paragraph.AddText(&amp;quot;Person information person information person information person&amp;#160; information and friends.&amp;quot;);
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; paragraph.AddLineBreak();
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; paragraph.AddLineBreak();

]]&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;How to add a table:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;First a table object needs to be instantiated then the columns need to be &amp;lt;br&amp;gt;created. After the columns are created new rows can be added with cells.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;div class=&amp;#39;code&amp;#39;&amp;gt;&amp;lt;script type=&amp;#39;syntaxhighlighter&amp;#39; class=&amp;#39;brush: csharp&amp;#39;&amp;gt;&amp;lt;![CDATA[
&amp;#160;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; // instantiate table object
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Table tbPeople = new Table();
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; tbPeople.Borders.Width = &amp;quot;1cm&amp;quot;;

&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; // add table to section
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; tbPeople = section.AddTable();

&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; // define columns before adding rows
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Column column = tbPeople.AddColumn(&amp;quot;3.5cm&amp;quot;);
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; column.Format.Alignment = ParagraphAlignment.Center;

&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; column = tbPeople.AddColumn(&amp;quot;8cm&amp;quot;);
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; column.Format.Alignment = ParagraphAlignment.Right;

&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; column = tbPeople.AddColumn(&amp;quot;3.5cm&amp;quot;);
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; column.Format.Alignment = ParagraphAlignment.Right;

&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; // set list of people
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; List persons = new List()
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; new Person(20, &amp;quot;John&amp;quot;, &amp;quot;Arizona&amp;quot;),
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; new Person(15, &amp;quot;Homer&amp;quot;, &amp;quot;Hollywood&amp;quot;),
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; new Person(36, &amp;quot;Marry&amp;quot;, &amp;quot;Hollywood&amp;quot;),
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; new Person(40, &amp;quot;Snoopy&amp;quot;, &amp;quot;Los Angeles&amp;quot;)
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; };

&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Row row = tbPeople.AddRow();

&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; // add header for table
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; row.Cells[0].AddParagraph(&amp;quot;Friends&amp;quot;);
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; row.Cells[0].MergeRight = 2;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; row.Cells[0].Format.Font.Size = 14;

&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Row row2 = tbPeople.AddRow();
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; row2.Cells[0].AddParagraph(&amp;quot;Name&amp;quot;);
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; row2.Cells[1].AddParagraph(&amp;quot;Location&amp;quot;);
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; row2.Cells[2].AddParagraph(&amp;quot;Age&amp;quot;);
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; row2.Format.Font.Bold = true;

&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; // create rows
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; foreach (var person in persons)
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; row2 = tbPeople.AddRow();
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; row2.Cells[0].AddParagraph(person.Name);
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; row2.Cells[1].AddParagraph(person.Location);
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; row2.Cells[2].AddParagraph(person.Age.ToString());
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }

]]&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/p&amp;gt;</description>
    <link>http://www.justaboutdaniel.com/ArticleDetails/12/1/CSharp-–-Creating-/storing-a-PDF-Document-with-Tables,-Paragraphs,-watermark,-and-images</link>
    <pubDate>2011-06-11T08:57:48.2</pubDate>
  </item>
  <item id="11" status="enabled">
    <title>C# Beginner - How To Create a Class. Demonstrating the A, B, C's of a class. Plus P.</title>
    <description>A class is composed of Attributes, Constructors, Behaviors, and Properties.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Attributes is a variable that is used within the class.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;A constructor is what is used to set the values of the attributes. The attributes values can also be set without the use of a constructor.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Behaviors are methods that are within a class.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Properties are what are used to set the values of the attributes.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;A normal class looks like the following:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;div class=&amp;#39;code&amp;#39;&amp;gt;&amp;lt;script type=&amp;#39;syntaxhighlighter&amp;#39; class=&amp;#39;brush: csharp&amp;#39;&amp;gt;&amp;lt;![CDATA[

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// 
/// Author: Daniel Aguayo
/// Website: http://www.justaboutdaniel.com
/// Description: Example of how to create a class
/// 
public class FeedBack
{

&amp;#160;&amp;#160;&amp;#160; // always have a default constructor
&amp;#160;&amp;#160;&amp;#160; // constructors
&amp;#160;&amp;#160;&amp;#160; public FeedBack()
&amp;#160;&amp;#160;&amp;#160; {
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; this.email = &amp;quot;&amp;quot;;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; this.comments = &amp;quot;&amp;quot;;
&amp;#160;&amp;#160;&amp;#160; }

&amp;#160;&amp;#160;&amp;#160; public FeedBack(string email, string comments)
&amp;#160;&amp;#160;&amp;#160; {
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; this.email = email;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; this.comments = comments;
&amp;#160;&amp;#160;&amp;#160; }

&amp;#160;&amp;#160;&amp;#160; // behavior
&amp;#160;&amp;#160;&amp;#160; public string SendFeedBack()
&amp;#160;&amp;#160;&amp;#160; {
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; return &amp;quot;Feedback has been sent!&amp;quot;;
&amp;#160;&amp;#160;&amp;#160; }

&amp;#160;&amp;#160;&amp;#160; // attributes and properties
&amp;#160;&amp;#160;&amp;#160; private string email; // attribute
&amp;#160;&amp;#160;&amp;#160; public string Email // property
&amp;#160;&amp;#160;&amp;#160; {
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; get
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; return email;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }

&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; set
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; this.email = value;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }
&amp;#160;&amp;#160;&amp;#160; }

&amp;#160;&amp;#160;&amp;#160; private string comments;
&amp;#160;&amp;#160;&amp;#160; public string Comments
&amp;#160;&amp;#160;&amp;#160; {
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; get
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; return comments;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; set
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; this.comments = value;
&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }
&amp;#160;&amp;#160;&amp;#160; }
}

]]&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;One thing I always remember is that a class is an instance of an object. Meaning that a class represent, for example, a car. A car&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;is composed of color, speed, make, model, year, etc. All are considered attributes and properties can be set. A behavior could be &amp;quot;Move&amp;quot; which would move the car when called upon.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;To use the class you would simple do:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;div class=&amp;#39;code&amp;#39;&amp;gt;&amp;lt;script type=&amp;#39;syntaxhighlighter&amp;#39; class=&amp;#39;brush: csharp&amp;#39;&amp;gt;&amp;lt;![CDATA[
// instantiates a new instance of the FeedBack class
FeedBack fb = new FeedBack(&amp;quot;example@example.com&amp;quot;, &amp;quot;You rock!&amp;quot;);
string results = fb.SendFeedBack(); // calls the behavior 
lblResults.Text = results;

]]&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;There are many ways to set up a class, however I preffer the way that was shown on this example because for me it is easy to understand. As you get better you will understand that as you get better you will do one thing a certain way then whatever you made a few hours later you might say, &amp;quot;I could have done this, this way which could clean up the code a bit more and could have saved me a few seconds in typing a few extra lines of code.&amp;quot;. </description>
    <link>http://www.justaboutdaniel.com/ArticleDetails/11/1/C#-Beginner---How-To-Create-a-Class.-Demonstrating-the-A,-B,-C's-of-a-class.-Plus-P.</link>
    <pubDate>2011-03-21T19:40:23.6</pubDate>
  </item>
</rss>
