<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>Ralph Varjabedian</title>
        <link>http://varjabedian.net/Default.aspx</link>
        <description>Sharing .NET Code and ideas</description>
        <language>en-US</language>
        <copyright>Ralph Varjabedian</copyright>
        <managingEditor>ralph@varjabedian.net</managingEditor>
        <generator>Subtext Version 1.9.5.177</generator>
        <image>
            <title>Ralph Varjabedian</title>
            <url>http://varjabedian.net/images/RSS2Image.gif</url>
            <link>http://varjabedian.net/Default.aspx</link>
            <width>77</width>
            <height>60</height>
        </image>
        <item>
            <title>Remembering Column Sizes and Forms' Dimensions and Locations easily</title>
            <category>.NET</category>
            <link>http://varjabedian.net/archive/2008/07/02/remembering-column-sizes-and-forms-dimensions-and-locations-easily.aspx</link>
            <description>&lt;p&gt;A common task that I encounter when I create Desktop Applications in .NET is that I need to make all my ListCtrls and DataGridViews remember their column sizes when the end user manually changes them. Also another common task is having forms remember their Width, Height, Position and WindowState every time your form opens. I have written some code to do just this. The code is written as Extensions to the ListCtrl, DataGridView and Form classes.&lt;/p&gt;  &lt;p&gt;To use the code, you must add the file Extensions.cs to your project. To add the functionality to a ListCtrl just call ActivateRememberListViewColumns on the ListCtrl instance. To add the functionality to a DataGridView just call ActivateRememberDataGridViewColumns on the DataGridView instance. As for adding it to your Forms, just call ActivateRememberFormSizeAndPosition on the Form instance.&lt;/p&gt;  &lt;p&gt;The code creates a folder called Settings under your working directory and saves the state files there. &lt;/p&gt;  &lt;div class="wlWriterSmartContent" id="scid:fb3a1972-4489-4e52-abe7-25a00bb07fdf:e958c34c-9bd6-4a87-8eee-ee9b88bae2be" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;&lt;p&gt;Download the sample code &lt;a href="http://varjabedian.net/resources/RememberingColumnSizesandFormsDimensions_F604/RememberColumnsExample.zip"&gt;here&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;  &lt;p&gt;Hope this helps.&lt;/p&gt;&lt;img src="http://varjabedian.net/aggbug/16.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Ralph Varjabedian</dc:creator>
            <guid>http://varjabedian.net/archive/2008/07/02/remembering-column-sizes-and-forms-dimensions-and-locations-easily.aspx</guid>
            <pubDate>Wed, 02 Jul 2008 13:52:47 GMT</pubDate>
            <wfw:comment>http://varjabedian.net/comments/16.aspx</wfw:comment>
            <comments>http://varjabedian.net/archive/2008/07/02/remembering-column-sizes-and-forms-dimensions-and-locations-easily.aspx#feedback</comments>
            <wfw:commentRss>http://varjabedian.net/comments/commentRss/16.aspx</wfw:commentRss>
        </item>
        <item>
            <title>TabControl with TabPages having circular Tab Order</title>
            <category>.NET</category>
            <link>http://varjabedian.net/archive/2008/07/02/tabcontrol-with-tabpages-with-circular-tab-order.aspx</link>
            <description>&lt;p&gt;A friend of mine was developing a form for data entry and this form had several pages put as &lt;strong&gt;TabPages&lt;/strong&gt; in a &lt;strong&gt;TabControl&lt;/strong&gt;. The normal behavior of the Tab Order in TabPages is it loops the controls of the full form and the currently selected TabPage. The problem was that his client got used to going from one control to another control using the &lt;strong&gt;Tab key&lt;/strong&gt;. It was frustrating for the client not to be able to smoothly continue from one TabPage to another just by using the Tab key. &lt;/p&gt;  &lt;p&gt;So I helped my friend by developing a class called &lt;strong&gt;TabPageCircularTabOrder&lt;/strong&gt;. Instead of adding TabPage instance to your TabControl, you create an instance of TabPageCircularTabOrder and it will take care of the rest. With this class, when you enter the controls inside a TabPage it will not leave the TabControl when you pass the last control on that page, instead it will open the next TabPage and start with the first control in that page and so on (circular Tab Order within the TabPages). When all the pages are done, the Tab Order continues with the normal Tab Order of the Form. Shift + Tab also is modified to circle the Tab Order in backwards.&lt;/p&gt;  &lt;p&gt;What turned out to be a simple task at first took quite some time, but the final code is simple and small to understand.&lt;/p&gt;  &lt;div class="wlWriterSmartContent" id="scid:fb3a1972-4489-4e52-abe7-25a00bb07fdf:ebb5e346-7b98-494e-8c78-952f14ff2922" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;&lt;p&gt;Download the sample code &lt;a href="http://varjabedian.net/resources/TabControlwithTabPageswithcircularTabOrd_E423/CircularTabPagesExample.zip"&gt;here&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;  &lt;p&gt;Hope this helps. Let me know if you have any comments.&lt;/p&gt;&lt;img src="http://varjabedian.net/aggbug/15.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Ralph Varjabedian</dc:creator>
            <guid>http://varjabedian.net/archive/2008/07/02/tabcontrol-with-tabpages-with-circular-tab-order.aspx</guid>
            <pubDate>Wed, 02 Jul 2008 13:37:49 GMT</pubDate>
            <wfw:comment>http://varjabedian.net/comments/15.aspx</wfw:comment>
            <comments>http://varjabedian.net/archive/2008/07/02/tabcontrol-with-tabpages-with-circular-tab-order.aspx#feedback</comments>
            <wfw:commentRss>http://varjabedian.net/comments/commentRss/15.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Binding ASP.NET TreeView to a DataSet or an ObjectDataSource using VB.NET</title>
            <category>5 minutes tips</category>
            <category>ASP.NET</category>
            <link>http://varjabedian.net/archive/2008/05/29/binding-asp.net-treeview-to-a-dataset-or-an-objectdatasource-using.aspx</link>
            <description>&lt;p&gt;Thank you goes for Adrien Cuisinier who has ported the C# code of this topic to VB.NET. Now you can download the &lt;a href="http://varjabedian.net/resources/treeviewbindingtestVB.zip"&gt;sample application&lt;/a&gt; in VB.NET. You can contact Adrien &lt;a href="mailto:contact@acuisinier.info"&gt;here&lt;/a&gt; if you want to.&lt;/p&gt;&lt;img src="http://varjabedian.net/aggbug/14.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Ralph Varjabedian</dc:creator>
            <guid>http://varjabedian.net/archive/2008/05/29/binding-asp.net-treeview-to-a-dataset-or-an-objectdatasource-using.aspx</guid>
            <pubDate>Thu, 29 May 2008 13:32:11 GMT</pubDate>
            <wfw:comment>http://varjabedian.net/comments/14.aspx</wfw:comment>
            <comments>http://varjabedian.net/archive/2008/05/29/binding-asp.net-treeview-to-a-dataset-or-an-objectdatasource-using.aspx#feedback</comments>
            <wfw:commentRss>http://varjabedian.net/comments/commentRss/14.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Update for Binding ASP.NET TreeView to a DataSet or an ObjectDataSource</title>
            <category>5 minutes tips</category>
            <category>ASP.NET</category>
            <link>http://varjabedian.net/archive/2008/05/14/update-for-binding-asp.net-treeview-to-a-dataset-or-an.aspx</link>
            <description>&lt;p&gt;Hi All,&lt;/p&gt;  &lt;p&gt;The code (the sample) that was with the post &lt;a href="http://www.varjabedian.net/archive/2008/04/22/binding-asp.net-treeview-to-a-dataset-or-an-objectdatasource.aspx"&gt;Binding ASP.NET TreeView to a DataSet or an ObjectDataSource&lt;/a&gt; is updated to account for columns that are of type string. Also the code now can work with DataViews and not just DataSets to enable easier binding with more sources like LINQ via the method AsDataView();&lt;/p&gt;  &lt;p&gt;Let me know if you have any comments. Thanks.&lt;/p&gt;&lt;img src="http://varjabedian.net/aggbug/13.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Ralph Varjabedian</dc:creator>
            <guid>http://varjabedian.net/archive/2008/05/14/update-for-binding-asp.net-treeview-to-a-dataset-or-an.aspx</guid>
            <pubDate>Wed, 14 May 2008 20:43:26 GMT</pubDate>
            <wfw:comment>http://varjabedian.net/comments/13.aspx</wfw:comment>
            <comments>http://varjabedian.net/archive/2008/05/14/update-for-binding-asp.net-treeview-to-a-dataset-or-an.aspx#feedback</comments>
            <wfw:commentRss>http://varjabedian.net/comments/commentRss/13.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Stop the Virus Spread on USB Flash Disks</title>
            <category>5 minutes tips</category>
            <link>http://varjabedian.net/archive/2008/05/04/stop-the-virus-spread-on-usb-flash-disks.aspx</link>
            <description>&lt;p&gt;It is becoming very annoying sharing USB Flash Disks. Most viruses for Flash Disks copy themselves on the root of your drive and set their attributes to hidden and system and modify the autorun.inf to run itself every time the USB Drive is plugged in a computer. I got an idea the other day and so far it is working great. I opened my USB Flash Disk and added an empty file to it and saved it as autorun.inf. Then I modified its security attributes (access lists) to deny access to everybody. And then I set it to read only and hidden. By doing this, when I put my USB Drive into a computer that wants to infect my drive, the virus tries to open and modify the autorun.inf but it fails. Hope this helps.&lt;/p&gt;&lt;img src="http://varjabedian.net/aggbug/12.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Ralph Varjabedian</dc:creator>
            <guid>http://varjabedian.net/archive/2008/05/04/stop-the-virus-spread-on-usb-flash-disks.aspx</guid>
            <pubDate>Sun, 04 May 2008 13:10:44 GMT</pubDate>
            <wfw:comment>http://varjabedian.net/comments/12.aspx</wfw:comment>
            <comments>http://varjabedian.net/archive/2008/05/04/stop-the-virus-spread-on-usb-flash-disks.aspx#feedback</comments>
            <wfw:commentRss>http://varjabedian.net/comments/commentRss/12.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Microsoft Server 2008 Launch in Lebanon</title>
            <category>Events</category>
            <link>http://varjabedian.net/archive/2008/04/30/microsoft-server-2008-launch-in-lebanon.aspx</link>
            <description>&lt;p&gt;For those who are living in Lebanon, Join us on the Wednesday 30th of April 2008 at the Palais des Congrés for the Microsoft Server 2008 Launch. You should register before you go. Hope to see you there.&lt;/p&gt;&lt;img src="http://varjabedian.net/aggbug/11.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Ralph Varjabedian</dc:creator>
            <guid>http://varjabedian.net/archive/2008/04/30/microsoft-server-2008-launch-in-lebanon.aspx</guid>
            <pubDate>Wed, 30 Apr 2008 07:59:08 GMT</pubDate>
            <wfw:comment>http://varjabedian.net/comments/11.aspx</wfw:comment>
            <comments>http://varjabedian.net/archive/2008/04/30/microsoft-server-2008-launch-in-lebanon.aspx#feedback</comments>
            <wfw:commentRss>http://varjabedian.net/comments/commentRss/11.aspx</wfw:commentRss>
        </item>
    </channel>
</rss>