<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="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" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-3994073019475300811</atom:id><lastBuildDate>Tue, 05 Aug 2025 07:59:24 +0000</lastBuildDate><category>binary</category><category>convert</category><category>sql</category><category>add</category><category>application</category><category>ascii</category><category>binding source</category><category>datagrid</category><category>decimal</category><category>delete</category><category>flashnews</category><category>keys</category><category>open</category><category>optimization</category><category>record</category><category>registry</category><category>vb.net</category><category>windows</category><title>MSDN FORUMS TRACKER</title><description></description><link>http://msdntracker.blogspot.com/</link><managingEditor>noreply@blogger.com (Omar)</managingEditor><generator>Blogger</generator><openSearch:totalResults>29</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3994073019475300811.post-1409517480933384091</guid><pubDate>Fri, 05 Nov 2010 00:06:00 +0000</pubDate><atom:updated>2010-11-04T17:06:54.864-07:00</atom:updated><title>Five new themes - Official Gmail Blog</title><description>&lt;a href=&quot;http://gmailblog.blogspot.com/2010/11/five-new-themes.html#links&quot;&gt;Five new themes - Official Gmail Blog&lt;/a&gt;</description><link>http://msdntracker.blogspot.com/2010/11/five-new-themes-official-gmail-blog.html</link><author>noreply@blogger.com (Omar)</author><thr:total>14</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3994073019475300811.post-6933739762127270391</guid><pubDate>Wed, 27 Oct 2010 21:58:00 +0000</pubDate><atom:updated>2010-10-27T14:58:32.423-07:00</atom:updated><title>Auto-advance to the next conversation</title><description>&lt;a href=&quot;http://gmailblog.blogspot.com/2010/10/new-in-labs-auto-advance-to-next.html&quot;&gt;New in Labs: Auto-advance to the next conversation - Official Gmail Blog&lt;/a&gt;</description><link>http://msdntracker.blogspot.com/2010/10/auto-advance-to-next-conversation.html</link><author>noreply@blogger.com (Omar)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3994073019475300811.post-4392221365447895977</guid><pubDate>Tue, 26 Oct 2010 23:23:00 +0000</pubDate><atom:updated>2010-10-26T16:23:33.731-07:00</atom:updated><title>Help the Gmail team improve tasks</title><description>&lt;a href=&quot;http://gmailblog.blogspot.com/2010/10/help-us-improve-tasks.html&quot;&gt;Help us improve Tasks - Official Gmail Blog&lt;/a&gt;</description><link>http://msdntracker.blogspot.com/2010/10/help-gmail-team-improve-tasks.html</link><author>noreply@blogger.com (Omar)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3994073019475300811.post-6403060429771562441</guid><pubDate>Thu, 20 Mar 2008 12:09:00 +0000</pubDate><atom:updated>2008-03-20T05:26:22.372-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">optimization</category><category domain="http://www.blogger.com/atom/ns#">sql</category><title>What is an optimizer in MS SQL server ?</title><description>Original post by sam.SQL at &lt;a href=&quot;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2995794&amp;amp;SiteID=1&quot;&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2995794&amp;amp;SiteID=1&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;The question:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;What does mean by Optimizer in MS SQL ? What is it ?&lt;br /&gt;How do you use it ? what are the benifits of use it ?&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;The accepted answer by Derekman:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The query optimizer is the component of SQL server that determines the most efficient way to execute a query based upon the distribution statistics and histograms maintained within sql server.  When you pass a query to sql server the query is optimized based on the estimated &quot;cost&quot; of the query for the different possible ways to exeute the statement based on the table(s) and index(es) available.  SQL Server query optimizer reviews the different options in which to execute the query and decides on the most efficient way based on overall cost.  Most, but not all, queries are optimized automatically and you do not need to do anything to invoke query optimization.   There are however &quot;query hints&quot; that allow you to over ride a query plan recommended by the optimizer.&lt;br /&gt;&lt;br /&gt;Please review BOL and the below link for a more detailed explanation.&lt;br /&gt;&lt;br /&gt;Best of Luck!!</description><link>http://msdntracker.blogspot.com/2008/03/what-is-optimizer-in-ms-sql-server.html</link><author>noreply@blogger.com (Omar)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3994073019475300811.post-5870629093558824008</guid><pubDate>Thu, 20 Mar 2008 12:00:00 +0000</pubDate><atom:updated>2008-03-20T05:09:29.074-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">add</category><category domain="http://www.blogger.com/atom/ns#">delete</category><category domain="http://www.blogger.com/atom/ns#">keys</category><category domain="http://www.blogger.com/atom/ns#">registry</category><title>Add registry key and delete it with vb.net</title><description>Original post by &lt;span style=&quot;font-weight: bold;&quot;&gt;Natural_Orange&lt;/span&gt; at &lt;a href=&quot;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1828643&amp;amp;SiteID=1&quot;&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1828643&amp;amp;SiteID=1&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;The question:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;My program has an option for running at startup.&lt;br /&gt;I need a way to add a registry key to:&lt;br /&gt;HKEY_Current_User\Software\Microsoft\Windows\CurrentVersion\Run\&lt;br /&gt;And Remove it as well.&lt;br /&gt;&lt;br /&gt;I&#39;ve looked in to some other stuff but it seems way to complicated for what i need.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;The accepted answer by Moayad Mardini:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To add a value to that key :&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;My.Computer.Registry.SetValue(&quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run&quot;, YourProgramName, YourProgramPath, Microsoft.Win32.RegistryValueKind.String)&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;Then to delete it :&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;My.Computer.Registry.CurrentUser.OpenSubKey(&quot;Software\Microsoft\Windows\CurrentVersion\Run&quot;, True).DeleteValue(YourProgramName)&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;Hope this helps</description><link>http://msdntracker.blogspot.com/2008/03/add-registry-key-and-delete-it-with.html</link><author>noreply@blogger.com (Omar)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3994073019475300811.post-135062025676050553</guid><pubDate>Thu, 20 Mar 2008 11:52:00 +0000</pubDate><atom:updated>2008-03-20T05:00:46.959-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">record</category><category domain="http://www.blogger.com/atom/ns#">sql</category><category domain="http://www.blogger.com/atom/ns#">vb.net</category><title>How to add a new record (vb.net+SQL)</title><description>Original post by &lt;span style=&quot;font-weight: bold;&quot;&gt;Jarge&lt;/span&gt; at &lt;a href=&quot;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2483346&amp;amp;SiteID=1&quot;&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2483346&amp;amp;SiteID=1&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;The question:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Ok i have an unbound text box&lt;br /&gt;&lt;br /&gt;i also have a command button that does nothing.&lt;br /&gt;&lt;br /&gt;I need to be able to have whatever i type into the text box to be entered into a table.&lt;br /&gt;&lt;br /&gt;how can i do this?&lt;br /&gt;&lt;br /&gt;for the record i know extremely little about VBA, i can copy and paste, and edit bits if im told what, when and where to edit but apart from that i&#39;m useless.&lt;br /&gt;&lt;br /&gt;Any help will be greatly appreciated.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;The accepted answer by Spotty:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;From what you said, you are leaving out real important points&lt;br /&gt;&lt;br /&gt;A table,  what sort of database are you using, does you applicable actually already use the database in any way already ?&lt;br /&gt;&lt;br /&gt;What version of VB are you using  ?&lt;br /&gt;&lt;br /&gt;All these points determine a solution.   The technology you are probably going to be using is called ADO.NET and you are going to be using a Command Object.   A web search on ADO.NET + VB.NET + INSERT QUERY will probably reveal quite a few basic examples.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Something a simple as may work.&lt;br /&gt;&lt;blockquote&gt;        Dim con As SqlConnection&lt;br /&gt;       Try&lt;br /&gt;           con = New SqlConnection(&quot;Server=(local)\SQLEXPRESS;Initial Catalog=MyDatabase;Integrated Security=SSPI&quot;)&lt;br /&gt;           con.Open()&lt;br /&gt;           Dim cmd As New SqlCommand()&lt;br /&gt;           cmd.Connection = con&lt;br /&gt;           cmd.CommandText = &quot;INSERT INTO Employee (FirstName) VALUES (@FirstName)&quot;&lt;br /&gt;           &#39; 2. Map parameters&lt;br /&gt;           cmd.Parameters.Add(&quot;@FirstName&quot;, SqlDbType.NVarChar, 10, &quot;FirstName&quot;)&lt;br /&gt;           cmd.Parameters(&quot;@FirstName&quot;).Value = Textbox1.text&lt;br /&gt;           cmd.ExecuteNonQuery()&lt;br /&gt;       Finally&lt;br /&gt;           con.Close()&lt;br /&gt;       End Try&lt;br /&gt;&lt;/blockquote&gt;</description><link>http://msdntracker.blogspot.com/2008/03/how-to-add-new-record-vbnetsql.html</link><author>noreply@blogger.com (Omar)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3994073019475300811.post-3510010607523546431</guid><pubDate>Thu, 20 Mar 2008 11:47:00 +0000</pubDate><atom:updated>2008-03-20T04:52:29.560-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">application</category><category domain="http://www.blogger.com/atom/ns#">open</category><category domain="http://www.blogger.com/atom/ns#">windows</category><title>List Currently Opened Windows  with VB.net</title><description>Original post by Jupiter13 at &lt;a href=&quot;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2592441&amp;amp;SiteID=1&quot;&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2592441&amp;amp;SiteID=1&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;The question:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;                                                                                                                                                                                                                                                                                                                                         I am trying to list all of the currently open windows that are in the taskbar.  Does anybody know how to do that?&lt;br /&gt;&lt;br /&gt;Thanks in advance.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;The accepted answer by Tall Dude:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If you just want the applications,&lt;br /&gt;&lt;br /&gt;(not all windows,) try:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;Public Class Form1&lt;br /&gt;&lt;br /&gt;   &#39; Derived from code at:&lt;br /&gt;&lt;br /&gt;   &#39; http://www.thescarms.com/vbasic/alttab.aspx&lt;br /&gt;&lt;br /&gt;   Declare Function EnumWindows Lib &quot;user32&quot; _&lt;br /&gt;&lt;br /&gt;   (ByVal lpEnumFunc As CallBack, ByVal lParam As Integer) As Integer&lt;br /&gt;&lt;br /&gt;   Declare Function GetForegroundWindow Lib &quot;user32&quot; () As Integer&lt;br /&gt;&lt;br /&gt;   Declare Function GetParent Lib &quot;user32&quot; (ByVal hwnd As Integer) As Integer&lt;br /&gt;&lt;br /&gt;   Declare Function GetWindow Lib &quot;user32&quot; _&lt;br /&gt;&lt;br /&gt;   (ByVal hwnd As Integer, ByVal wCmd As Integer) As Integer&lt;br /&gt;&lt;br /&gt;   Declare Function GetWindowInteger Lib &quot;user32&quot; Alias &quot;GetWindowLongA&quot; _&lt;br /&gt;&lt;br /&gt;   (ByVal hwnd As Integer, ByVal nIndex As Integer) As Integer&lt;br /&gt;&lt;br /&gt;   Declare Function GetWindowText Lib &quot;user32&quot; Alias &quot;GetWindowTextA&quot; _&lt;br /&gt;&lt;br /&gt;   (ByVal hwnd As Integer, ByVal lpString As String, ByVal cch As Integer) As Integer&lt;br /&gt;&lt;br /&gt;   Declare Function IsIconic Lib &quot;user32&quot; (ByVal hwnd As Integer) As Integer&lt;br /&gt;&lt;br /&gt;   Declare Function IsWindowVisible Lib &quot;user32&quot; (ByVal hwnd As Integer) As Integer&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   &#39;&lt;br /&gt;&lt;br /&gt;   &#39; Constants used with APIs&lt;br /&gt;&lt;br /&gt;   &#39;&lt;br /&gt;&lt;br /&gt;   Public Const SW_SHOW = 5&lt;br /&gt;&lt;br /&gt;   Public Const SW_RESTORE = 9&lt;br /&gt;&lt;br /&gt;   Public Const GW_OWNER = 4&lt;br /&gt;&lt;br /&gt;   Public Const GWL_HWNDPARENT = (-8)&lt;br /&gt;&lt;br /&gt;   Public Const GWL_EXSTYLE = (-20)&lt;br /&gt;&lt;br /&gt;   Public Const WS_EX_TOOLWINDOW = &amp;amp;H80&lt;br /&gt;&lt;br /&gt;   Public Const WS_EX_APPWINDOW = &amp;amp;H40000&lt;br /&gt;&lt;br /&gt;   &#39;&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;   Public Delegate Function CallBack(ByVal hwnd As Integer, ByVal lParam As Integer) As Boolean&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   Public Shared Function fEnumWindowsCallBack(ByVal hwnd As Integer, ByVal lParam As Integer) As Boolean&lt;br /&gt;&lt;br /&gt;       Dim lReturn As Integer&lt;br /&gt;&lt;br /&gt;       Dim lExStyle As Integer&lt;br /&gt;&lt;br /&gt;       Dim bNoOwner As Boolean&lt;br /&gt;&lt;br /&gt;       Dim sWindowText As String&lt;br /&gt;&lt;br /&gt;       &#39;&lt;br /&gt;&lt;br /&gt;       &#39; This callback function is called by Windows (from&lt;br /&gt;&lt;br /&gt;       &#39; the EnumWindows API call) for EVERY window that exists.&lt;br /&gt;&lt;br /&gt;       &#39; It populates the listbox with a list of windows that we&lt;br /&gt;&lt;br /&gt;       &#39; are interested in.&lt;br /&gt;&lt;br /&gt;       &#39;&lt;br /&gt;&lt;br /&gt;       &#39; Windows to display are those that:&lt;br /&gt;&lt;br /&gt;       &#39;   -   are not this app&#39;s&lt;br /&gt;&lt;br /&gt;       &#39;   -   are visible&lt;br /&gt;&lt;br /&gt;       &#39;   -   do not have a parent&lt;br /&gt;&lt;br /&gt;       &#39;   -   have no owner and are not Tool windows OR&lt;br /&gt;&lt;br /&gt;       &#39;       have an owner and are App windows&lt;br /&gt;&lt;br /&gt;       &#39;&lt;br /&gt;&lt;br /&gt;       If hwnd &lt;&gt; Form1.Handle Then&lt;br /&gt;&lt;br /&gt;           If IsWindowVisible(hwnd) Then&lt;br /&gt;&lt;br /&gt;               If GetParent(hwnd) = 0 Then&lt;br /&gt;&lt;br /&gt;                   bNoOwner = (GetWindow(hwnd, GW_OWNER) = 0)&lt;br /&gt;&lt;br /&gt;                   lExStyle = GetWindowInteger(hwnd, GWL_EXSTYLE)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;                   If (((lExStyle And WS_EX_TOOLWINDOW) = 0) And bNoOwner) Or _&lt;br /&gt;&lt;br /&gt;                       ((lExStyle And WS_EX_APPWINDOW) And Not bNoOwner) Then&lt;br /&gt;&lt;br /&gt;                       &#39;&lt;br /&gt;&lt;br /&gt;                       &#39; Get the window&#39;s caption.&lt;br /&gt;&lt;br /&gt;                       &#39;&lt;br /&gt;&lt;br /&gt;                       sWindowText = Space$(256)&lt;br /&gt;&lt;br /&gt;                       lReturn = GetWindowText(hwnd, sWindowText, Len(sWindowText))&lt;br /&gt;&lt;br /&gt;                       If lReturn Then&lt;br /&gt;&lt;br /&gt;                           &#39;&lt;br /&gt;&lt;br /&gt;                           &#39; Add it to our list.&lt;br /&gt;&lt;br /&gt;                           &#39;&lt;br /&gt;&lt;br /&gt;                           sWindowText = Trim(sWindowText)&lt;br /&gt;&lt;br /&gt;                           Form1.ListBox1.Items.Add(sWindowText)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;                       End If&lt;br /&gt;&lt;br /&gt;                   End If&lt;br /&gt;&lt;br /&gt;               End If&lt;br /&gt;&lt;br /&gt;           End If&lt;br /&gt;&lt;br /&gt;       End If&lt;br /&gt;&lt;br /&gt;       fEnumWindowsCallBack = True&lt;br /&gt;&lt;br /&gt;   End Function&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   Private Sub Button1_Click(ByVal sender As System.Object, _&lt;br /&gt;&lt;br /&gt;   ByVal e As System.EventArgs) Handles Button1.Click&lt;br /&gt;&lt;br /&gt;       ListBox1.Items.Clear()&lt;br /&gt;&lt;br /&gt;       EnumWindows(AddressOf fEnumWindowsCallBack, 0)&lt;br /&gt;&lt;br /&gt;   End Sub&lt;br /&gt;&lt;br /&gt;End Class&lt;/blockquote&gt;</description><link>http://msdntracker.blogspot.com/2008/03/list-currently-opened-windows-with.html</link><author>noreply@blogger.com (Omar)</author><thr:total>3</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3994073019475300811.post-6661481570094414424</guid><pubDate>Thu, 20 Mar 2008 11:44:00 +0000</pubDate><atom:updated>2008-03-20T04:47:23.186-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">binary</category><category domain="http://www.blogger.com/atom/ns#">convert</category><category domain="http://www.blogger.com/atom/ns#">decimal</category><title>convert binary to octal ,hexadecimal and decimal numbers</title><description>This is the second part of the &lt;a href=&quot;http://msdntracker.blogspot.com/2008/03/convert-ascii-codecharacter-to-binary.html&quot;&gt;previous&lt;/a&gt; question.&lt;br /&gt;&lt;br /&gt;The response by &lt;span style=&quot;font-weight: bold;&quot;&gt;Martin Xie - MSFT:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;B&lt;/span&gt;&lt;span&gt;y means of Convert class,  you can first convert Binary to Decimal Intger, and then convert Decimal to Octal and Hexadecimal string.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;Imports Microsoft.VisualBasic&lt;br /&gt;&lt;br /&gt;Imports System&lt;br /&gt;&lt;br /&gt;Imports System.Collections.Generic&lt;br /&gt;&lt;br /&gt;Imports System.Text&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;         Friend Class Program&lt;br /&gt;&lt;br /&gt;                  Shared Sub Main(ByVal args As String())&lt;br /&gt;&lt;br /&gt;       &lt;br /&gt;&lt;br /&gt;       Dim bin As String = &quot;1000001&quot;    &#39;Binary string&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;       Dim decimalValue As Integer&lt;br /&gt;&lt;br /&gt;       Dim hexValue As String&lt;br /&gt;&lt;br /&gt;       Dim OctalValue As String&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;       decimalValue = Convert.ToInt32(bin, 2)   &#39;First convert Binary to Decimal Intger&lt;br /&gt;&lt;br /&gt;       Console.WriteLine(&quot;Decimal:&quot; &amp;amp; decimalValue)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;       OctalValue = Oct(decimalValue)     &#39;Convert Decimal to Octal string&lt;br /&gt;&lt;br /&gt;       Console.WriteLine(&quot;Octal:&quot; &amp;amp; OctalValue)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;       hexValue = Hex(decimalValue)       &#39;Convert Decimal to Hexadecimal string&lt;br /&gt;&lt;br /&gt;       Console.WriteLine(&quot;Hexadecimal:&quot; &amp;amp; hexValue)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;       Console.Read()&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;                  End Sub&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;         End Class&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The output will be:&lt;br /&gt;&lt;br /&gt;Decimal: 65&lt;br /&gt;&lt;br /&gt;Octal: 101&lt;br /&gt;&lt;br /&gt;Hexadecimal: 41&lt;/span&gt;</description><link>http://msdntracker.blogspot.com/2008/03/convert-binary-to-octal-hexadecimal-and.html</link><author>noreply@blogger.com (Omar)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3994073019475300811.post-1750266108820186635</guid><pubDate>Thu, 20 Mar 2008 11:33:00 +0000</pubDate><atom:updated>2008-03-20T04:43:06.985-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ascii</category><category domain="http://www.blogger.com/atom/ns#">binary</category><category domain="http://www.blogger.com/atom/ns#">convert</category><title>Convert ASCII Code/Character to Binary Number</title><description>Original post by &lt;span style=&quot;font-weight: bold;&quot;&gt;rattlesnake316&lt;/span&gt;  at &lt;a href=&quot;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2159243&amp;amp;SiteID=1&quot;&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2159243&amp;amp;SiteID=1&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;The question:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Hello! Hope someone could help me on converting ASCII characters to Binary&lt;br /&gt;Also,hope you know how to convert Boolean Number to Octal or Hexadecimal or Decimal number.&lt;br /&gt;Thanks in advance!&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;The accepted answer by Martin Xie - MSFT  :&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Hi rattlesnake,&lt;br /&gt;&lt;br /&gt;ASCII can only represent character codes between 0 and 127.&lt;br /&gt;&lt;br /&gt;About converting ASCII characters to Binary,&lt;br /&gt;&lt;br /&gt;e.g. convert AscII value 66 of character B to Binary like this:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;Imports Microsoft.VisualBasic&lt;br /&gt;&lt;br /&gt;Imports System&lt;br /&gt;&lt;br /&gt;Imports System.Collections.Generic&lt;br /&gt;&lt;br /&gt;Imports System.Text&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;         Friend Class Program&lt;br /&gt;&lt;br /&gt;         Shared Sub Main(ByVal args As String())&lt;br /&gt;&lt;br /&gt;           &lt;br /&gt;&lt;br /&gt;               Dim myChar As Char = &quot;B&quot;c&lt;br /&gt;&lt;br /&gt;               Dim j As Integer = 0&lt;br /&gt;&lt;br /&gt;               Dim ascii As Integer = System.Convert.ToInt32(myChar)&lt;br /&gt;&lt;br /&gt;               Console.WriteLine(&quot;ASCII:&quot; &amp;amp; ascii)&lt;br /&gt;&lt;br /&gt;               Dim binTempResult As String = &quot;&quot;&lt;br /&gt;&lt;br /&gt;                    Do While ascii &gt; 0&lt;br /&gt;&lt;br /&gt;                          j = ascii Mod 2&lt;br /&gt;&lt;br /&gt;                          binTempResult &amp;amp;= j.ToString()&lt;br /&gt;&lt;br /&gt;                          ascii = ascii \ 2&lt;br /&gt;&lt;br /&gt;                    Loop&lt;br /&gt;&lt;br /&gt;   &lt;br /&gt;&lt;br /&gt;               &#39;reverse output&lt;br /&gt;&lt;br /&gt;               Dim arr As Char() = binTempResult.ToCharArray()&lt;br /&gt;&lt;br /&gt;               Array.Reverse(arr)&lt;br /&gt;&lt;br /&gt;               Dim binResult As String = New String(arr)&lt;br /&gt;&lt;br /&gt;               System.Console.Write(binResult)&lt;br /&gt;&lt;br /&gt;               Console.Read()&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;         End Sub&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;         End Class&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;The output will be:&lt;br /&gt;&lt;br /&gt;ASCII:66&lt;br /&gt;&lt;br /&gt;1000010</description><link>http://msdntracker.blogspot.com/2008/03/convert-ascii-codecharacter-to-binary.html</link><author>noreply@blogger.com (Omar)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3994073019475300811.post-7203142367746495590</guid><pubDate>Thu, 20 Mar 2008 11:28:00 +0000</pubDate><atom:updated>2008-03-20T04:33:30.384-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">binding source</category><title>Problem applying a filter to binding source</title><description>The original post by &lt;span style=&quot;font-weight: bold;&quot;&gt;Kelly R. Martin  &lt;/span&gt;at &lt;a href=&quot;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1013527&amp;amp;SiteID=1&quot;&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1013527&amp;amp;SiteID=1&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The question:&lt;br /&gt;&lt;br /&gt;Upon updateing a combobox to select the sex of a farm animal I am attempting to filter out the opposite sex in the next ID box.Can anyone see where my issue is here. I have rewritten this many time to no avail. I have read through the msdn help on this and all appears to be done correctly. Also... How would I use one of these filters to show only discrete items?&lt;br /&gt;&lt;br /&gt;http://imkaudio.com/error/nocolumnerror.bmp&lt;br /&gt;&lt;br /&gt;And here is the code&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;Public Class Form1&lt;br /&gt;&lt;br /&gt;Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load&lt;br /&gt;&lt;br /&gt;&#39;TODO: This line of code loads data into the &#39;Ct10DataSet.animal&#39; table. You can move, or remove it, as needed.&lt;br /&gt;&lt;br /&gt;Me.AnimalTableAdapter.Fill(Me.Ct10DataSet.animal)&lt;br /&gt;&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged&lt;br /&gt;&lt;br /&gt;Me.AnimalBindingSource1.Filter = &quot;Sex = &quot; &amp;amp; ComboBox1.SelectedValue.ToString()&lt;br /&gt;&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;End Class&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;The Accepted answer by ahmedilyas :&lt;br /&gt;&lt;br /&gt;try this:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;Me.AnimalBindingSource1.Filter = &quot;Sex = &#39;&quot; &amp;amp; ComboBox1.Text &amp;amp; &quot;&#39;&quot;&lt;/blockquote&gt;</description><link>http://msdntracker.blogspot.com/2008/03/problem-applying-filter-to-binding.html</link><author>noreply@blogger.com (Omar)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3994073019475300811.post-3711704281281769909</guid><pubDate>Thu, 20 Mar 2008 11:01:00 +0000</pubDate><atom:updated>2008-03-20T04:08:19.989-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">flashnews</category><title>The digg button added</title><description>We finally added the digg button. Please digg only posts that you read, so you help us spread the net.&lt;br /&gt;How we installed the Digg button on blogger?&lt;br /&gt;Find out here how this has been done : &lt;a href=&quot;http://howtosuccesswithblogging.blogspot.com/2008/03/addition-of-digg-button-to-blogger.html&quot;&gt;http://howtosuccesswithblogging.blogspot.com/2008/03/addition-of-digg-button-to-blogger.html &lt;/a&gt;</description><link>http://msdntracker.blogspot.com/2008/03/digg-button-added.html</link><author>noreply@blogger.com (Omar)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3994073019475300811.post-7363460829933626701</guid><pubDate>Thu, 20 Mar 2008 10:53:00 +0000</pubDate><atom:updated>2008-03-20T04:01:19.195-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">datagrid</category><title>Resize datagrid content to take up the entire datagrid control</title><description>Original post by &lt;span style=&quot;font-weight: bold;&quot;&gt;Wopfather &lt;/span&gt;at &lt;a href=&quot;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2618182&amp;amp;SiteID=1&quot;&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2618182&amp;amp;SiteID=1&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;The Question:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I have a form with datagrid on it, but when i fill the grid with a table, the columns do not take up the entire space that is available in the datagrid.  Also the individual column sizes do not show all the data in the field, i have to resize it using drag feature, but i have the space on the form when i first load it and i want the columns to take up all the space available in the datagrid.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;The accepted answer by Riquel Dong – MSFT:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Based on your post, you need to change the width of the row or column in a DataGrid. You can use the DataGridTableStyle class to implement this.&lt;br /&gt;&lt;br /&gt;it represents the table drawn by the System.Windows.Forms.DataGrid control at run time. Its property GridColumnStyles allows you to create a customized set of column styles. Pleaser read this article Advanced DataGrid Sizing for this problem. It shoulds help your to handle this problem. Here is the code exmaple about sizing the datagrid control. Hope this helps.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;Public Class Form5&lt;br /&gt;&lt;br /&gt;Dim dt As DataTable&lt;br /&gt;&lt;br /&gt;Private Sub Form5_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load&lt;br /&gt;&lt;br /&gt;DataGrid1.Width = 450&lt;br /&gt;&lt;br /&gt;dt = New DataTable&lt;br /&gt;&lt;br /&gt;dt.Columns.Add(&quot;id&quot;, GetType(Integer))&lt;br /&gt;&lt;br /&gt;dt.Columns.Add(&quot;name&quot;, GetType(String))&lt;br /&gt;&lt;br /&gt;dt.Columns.Add(&quot;region&quot;, GetType(String))&lt;br /&gt;&lt;br /&gt;For i As Integer = 0 To 5&lt;br /&gt;&lt;br /&gt;dt.Rows.Add(i, &quot;name &quot; &amp;amp; i.ToString, &quot;region &quot; &amp;amp; i.ToString)&lt;br /&gt;&lt;br /&gt;Next&lt;br /&gt;&lt;br /&gt;Dim style As DataGridTableStyle = New DataGridTableStyle()&lt;br /&gt;&lt;br /&gt;style.MappingName = dt.TableName&lt;br /&gt;&lt;br /&gt;For Each column As DataColumn In dt.Columns&lt;br /&gt;&lt;br /&gt;Dim gridColumn As DataGridTextBoxColumn = New DataGridTextBoxColumn()&lt;br /&gt;&lt;br /&gt;gridColumn.MappingName = column.ColumnName&lt;br /&gt;&lt;br /&gt;gridColumn.HeaderText = column.ColumnName&lt;br /&gt;&lt;br /&gt;gridColumn.Width = 135&lt;br /&gt;&lt;br /&gt;style.GridColumnStyles.Add(gridColumn)&lt;br /&gt;&lt;br /&gt;Next&lt;br /&gt;&lt;br /&gt;DataGrid1.TableStyles.Clear()&lt;br /&gt;&lt;br /&gt;DataGrid1.TableStyles.Add(style)&lt;br /&gt;&lt;br /&gt;DataGrid1.DataSource = dt&lt;br /&gt;&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;End Class&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Riquel</description><link>http://msdntracker.blogspot.com/2008/03/resize-datagrid-content-to-take-up.html</link><author>noreply@blogger.com (Omar)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3994073019475300811.post-8848873170414955818</guid><pubDate>Sun, 02 Mar 2008 13:53:00 +0000</pubDate><atom:updated>2008-05-23T06:27:17.416-07:00</atom:updated><title>About</title><description>&lt;span style=&quot;font-family:trebuchet ms;font-size:130%;&quot;&gt;&lt;span style=&quot;color:#3366ff;&quot;&gt;MSDN Tracker&lt;/span&gt;&lt;span style=&quot;color:#3366ff;&quot;&gt; Blog:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:Trebuchet MS;font-size:130%;color:#3366ff;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:Trebuchet MS;color:#6666cc;&quot;&gt;&lt;em&gt;Blog aim:&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:Trebuchet MS;color:#000000;&quot;&gt;Our blog quest is to keep in track of all successful and answered post in the &lt;a href=&quot;http://forums.microsoft.com/MSDN/&quot;&gt;MSDN Forums&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:Trebuchet MS;&quot;&gt;So you can easily get the top answers from this blog. We have 20 post in different categories, just make a search and you should find what you are searching for!&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:Trebuchet MS;&quot;&gt;&lt;em&gt;Having a good tutorial or article about MS technology?&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:Trebuchet MS;&quot;&gt;We&#39;ll post you article on our blog! Just leave a comment including your tutorial address and I&#39;ll post it here. You&#39;ll get also a link ;)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:Trebuchet MS;&quot;&gt;You can also send it to me by email: &lt;a href=&quot;mailto:omar.abid2006@gmail.com&quot;&gt;omar.abid2006@gmail.com&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;color:#6666cc;&quot;&gt;Other Dot Net blogs:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;&lt;a href=&quot;http://thedotnetsource.blogspot.com/&quot;&gt;The Dot Net Source&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;&lt;a href=&quot;http://omarabid.blogspot.com/&quot;&gt;My Blogger&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;&lt;a href=&quot;http://omarabid.wordpress.com/&quot;&gt;My Wordpress&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Trebuchet MS;color:#6666cc;&quot;&gt;&lt;em&gt;Blog traffic: For webmasters&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:Trebuchet MS;color:#000000;&quot;&gt;December 2007 : 1 080 visitor ( 1 230 page views)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:Trebuchet MS;color:#000000;&quot;&gt;January 2008 : 1 633 visitor ( 2 036 page views)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:#000000;&quot;&gt;&lt;span style=&quot;font-family:Trebuchet MS;&quot;&gt;February 2008 : 2 010 ( 2 885 page views)&lt;br /&gt;March 2008 : 2 660 ( 3 125 page views)&lt;br /&gt;April 2008 : 3 210 ( 4 452 page views)&lt;br /&gt;May 2008 : 3 885 ( 5 062 page views)&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:Trebuchet MS;font-size:130%;color:#3366ff;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;&lt;/span&gt;</description><link>http://msdntracker.blogspot.com/2008/03/about.html</link><author>noreply@blogger.com (Omar)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3994073019475300811.post-3387529110926198964</guid><pubDate>Sun, 09 Dec 2007 15:12:00 +0000</pubDate><atom:updated>2007-12-09T07:16:57.916-08:00</atom:updated><title>Creating a FireWall Program</title><description>&lt;span style=&quot;font-size:100%;&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Original post by &lt;/span&gt;&lt;span style=&quot;font-family: verdana;&quot; id=&quot;_ctl0_MainContent_PostFlatView&quot;&gt;&lt;b&gt;&lt;span class=&quot;inlineLink&quot; onclick=&quot;window.open(&#39;/MSDN/User/Profile.aspx?UserID=552583&amp;SiteID=1&#39;, target=&#39;_self&#39;)&quot;&gt;mjwsoft&lt;/span&gt;                                                                     &lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt; at &lt;/span&gt;&lt;a style=&quot;font-family: verdana;&quot; href=&quot;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2511013&amp;amp;SiteID=1&quot;&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2511013&amp;amp;SiteID=1&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: verdana; font-style: italic;&quot;&gt;The Question : &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: verdana;&quot; id=&quot;_ctl0_MainContent_PostFlatView&quot;&gt;&lt;/span&gt;&lt;/span&gt;                                                                                                                                                                                                               &lt;table style=&quot;font-family: verdana;&quot; align=&quot;left&quot; cellpadding=&quot;0&quot; cellspacing=&quot;2&quot; width=&quot;100%&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td rowspan=&quot;2&quot; class=&quot;spacer&quot;&gt;                                                                         &lt;span style=&quot;font-size:100%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/td&gt;                                                                         &lt;td colspan=&quot;3&quot; class=&quot;txt4t&quot; style=&quot;padding-top: 4px;&quot; width=&quot;100%&quot;&gt;                                                                             &lt;table align=&quot;left&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;90%&quot;&gt;                                                                                 &lt;tbody&gt;&lt;tr&gt;                                                                                     &lt;td class=&quot;txt4lt&quot; style=&quot;&quot; width=&quot;625&quot;&gt;                                                                                         &lt;span style=&quot;font-size:100%;&quot;&gt;&lt;span&gt;Is it possible to program an AV or Firewall in VB Express 2005?&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: verdana; font-style: italic;&quot;&gt;The Accepted answer by &lt;/span&gt;&lt;span style=&quot;font-family: verdana;&quot; id=&quot;_ctl0_MainContent_PostFlatView&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-style: italic;&quot; class=&quot;inlineLink&quot; onclick=&quot;window.open(&#39;/MSDN/User/Profile.aspx?UserID=541139&amp;SiteID=1&#39;, target=&#39;_self&#39;)&quot;&gt;Martin Xie - MSFT&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;                                                                     &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: verdana;&quot; id=&quot;_ctl0_MainContent_PostFlatView&quot;&gt;&lt;span&gt;&lt;p&gt;Hi mjwsoft,&lt;/p&gt; &lt;p align=&quot;left&quot;&gt; &lt;/p&gt; &lt;p align=&quot;left&quot;&gt;I agree with spotty. C++ may be more suitable for programming Firewall.&lt;/p&gt; &lt;p align=&quot;left&quot;&gt;If you wish to do it in VB.NET, you need to P/Invoke Packet Filtering API.&lt;/p&gt; &lt;p align=&quot;left&quot;&gt; &lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;The Firewall service usually is based on packet filtering technology. &lt;/span&gt;&lt;/p&gt; &lt;p align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;Here are some references.&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;/span&gt; &lt;/p&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; &lt;p&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;1. &lt;a title=&quot;http://www.codeproject.com/internet/smfirewall.asp&quot; href=&quot;http://www.codeproject.com/internet/smfirewall.asp&quot;&gt;&lt;u&gt;&lt;span style=&quot;color:#800080;&quot;&gt;Simple Packet - Filter Firewall&lt;/span&gt;&lt;/u&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;    Working of firewall is based on the following steps:&lt;/span&gt;&lt;/p&gt; &lt;ul type=&quot;disc&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt; line-height: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;Extract the packet header &lt;/span&gt; &lt;/li&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt; line-height: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;Check the protocol associated &lt;/span&gt; &lt;/li&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt; line-height: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;Compare with the rules &lt;/span&gt; &lt;/li&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt; line-height: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;Check the source and destination add. If protocol is same &lt;/span&gt; &lt;/li&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt; line-height: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;Check out the port if protocol is TCP &lt;/span&gt; &lt;/li&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt; line-height: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;Drop or pass the packet&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt; &lt;p align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;2. Packet Filtering API on MSDN&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;   &lt;a title=&quot;http://msdn2.microsoft.com/en-us/library/Aa376636.aspx&quot; href=&quot;http://msdn2.microsoft.com/en-us/library/Aa376636.aspx&quot;&gt;&lt;u&gt;&lt;span style=&quot;color:#800080;&quot;&gt;http://msdn2.microsoft.com/en-us/library/Aa376636.aspx&lt;/span&gt;&lt;/u&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;Packet Filtering API allow us to associate filters to IP adapter interfaces. We can implement a functionality similar that included in TCP/IP filter options in TCP/IP properties of a network adapter. &lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;/span&gt; &lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;3. &lt;a title=&quot;http://www.codeproject.com/managedcpp/packetfilteringnet.asp&quot; href=&quot;http://www.codeproject.com/managedcpp/packetfilteringnet.asp&quot;&gt;&lt;u&gt;&lt;span style=&quot;color:#800080;&quot;&gt;Packet Filtering in .NET&lt;/span&gt;&lt;/u&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt; line-height: 115%;&quot;&gt;   Class library to implement packet filtering funcionality in your .NET applications&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;&lt;span style=&quot;font-weight: normal; font-size: 10pt;&quot;&gt;4. In addition, here is a Firewall SDK which &lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;helps deveopers create and manage a firewall control easily.&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;The Gtfctrl.dll wraps all the firewall operations in one &quot;Firewall Panel&quot;, it can be used in VB.Net , C#.Net.&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;a title=&quot;http://www.xanv.com/firewall-sdk.html&quot; href=&quot;http://www.xanv.com/firewall-sdk.html&quot;&gt;&lt;u&gt;&lt;span style=&quot;color:#800080;&quot;&gt;http://www.xanv.com/firewall-sdk.html&lt;/span&gt;&lt;/u&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;/span&gt; &lt;/p&gt; &lt;p&gt;&lt;strong&gt;&lt;span style=&quot;font-weight: normal; font-size: 10pt;&quot;&gt;5. You also can find some ideas in this thread.&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;    &lt;a title=&quot;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2108292&amp;amp;SiteID=1&quot; href=&quot;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2108292&amp;amp;SiteID=1&quot;&gt;&lt;u&gt;&lt;span style=&quot;color:#800080;&quot;&gt;How to build a firewall like AVG Firewall in c#&lt;/span&gt;&lt;/u&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;/span&gt; &lt;/p&gt; &lt;p&gt;&lt;strong&gt;&lt;span style=&quot;font-weight: normal; font-size: 10pt;&quot;&gt;6. &lt;a title=&quot;http://www.programmerworld.net/articles/networking/firewall.php&quot; href=&quot;http://www.programmerworld.net/articles/networking/firewall.php&quot;&gt;&lt;u&gt;&lt;span style=&quot;color:#800080;&quot;&gt;The basics of a firewall&lt;/span&gt;&lt;/u&gt;&lt;/a&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;/span&gt; &lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;/span&gt; &lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;Best regards,&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;Martin&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: verdana;&quot; id=&quot;_ctl0_MainContent_PostFlatView&quot;&gt;&lt;b&gt;&lt;span class=&quot;inlineLink&quot; onclick=&quot;window.open(&#39;/MSDN/User/Profile.aspx?UserID=2428&amp;SiteID=1&#39;, target=&#39;_self&#39;)&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;                                                                     &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;</description><link>http://msdntracker.blogspot.com/2007/12/creating-firewall-program.html</link><author>noreply@blogger.com (Omar)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3994073019475300811.post-795098880087190432</guid><pubDate>Sun, 09 Dec 2007 14:30:00 +0000</pubDate><atom:updated>2007-12-09T06:45:09.613-08:00</atom:updated><title>Great Web Site for DotNet Developers</title><description>Hi Code Searcher,&lt;br /&gt;I just found a great web site by searching the MSDN Forums.&lt;br /&gt;I suddenly found a great website : &lt;a href=&quot;http://www.getfreebudget.com/DevCntr.htm&quot;&gt;http://www.getfreebudget.com/DevCntr.htm&lt;/a&gt; made by Jeff an active MSDN forums member.&lt;br /&gt;It contains hundred of samples controls and lot more.&lt;br /&gt;Take your time visiting it.</description><link>http://msdntracker.blogspot.com/2007/12/great-web-site-for-dotnet-developers.html</link><author>noreply@blogger.com (Omar)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3994073019475300811.post-6291003479209093865</guid><pubDate>Sun, 09 Dec 2007 14:14:00 +0000</pubDate><atom:updated>2007-12-09T06:18:41.973-08:00</atom:updated><title>New Feature in MSDN Forum Tracker</title><description>Hi Developer,&lt;br /&gt;&lt;br /&gt;I had just add  a new feature for the MSDN Forum Tracker Blog.&lt;br /&gt;Now Good Code snippet will be converted depending on their langauge. If it&#39;s VB.net then it will be C# and Vice Versa.&lt;br /&gt;This will help both VB.net and C# developer get the tragted code without looping in different code engine convertion.&lt;br /&gt;&lt;br /&gt;Our Code Convertion is powered by Developer Fusion, you can find it here : &lt;a href=&quot;http://labs.developerfusion.co.uk&quot;&gt;http://labs.developerfusion.co.uk&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If you have other suggestion, don&#39;t hesitate post a comment!</description><link>http://msdntracker.blogspot.com/2007/12/new-feature-in-msdn-forum-tracker.html</link><author>noreply@blogger.com (Omar)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3994073019475300811.post-2346256034104075533</guid><pubDate>Sun, 09 Dec 2007 14:02:00 +0000</pubDate><atom:updated>2007-12-09T06:11:34.361-08:00</atom:updated><title>Convert Binary To Ascii</title><description>Original post by &lt;span id=&quot;_ctl0_MainContent_PostFlatView&quot;&gt;&lt;b&gt;&lt;span class=&quot;inlineLink&quot; onclick=&quot;window.open(&#39;/MSDN/User/Profile.aspx?UserID=780159&amp;SiteID=1&#39;, target=&#39;_self&#39;)&quot;&gt;Spaceman1972&lt;/span&gt;                                                                     &lt;/b&gt;&lt;/span&gt; at &lt;a href=&quot;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2160524&amp;amp;SiteID=1&quot;&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2160524&amp;amp;SiteID=1&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The Question :&lt;br /&gt;&lt;br /&gt;&lt;span id=&quot;_ctl0_MainContent_PostFlatView&quot;&gt;&lt;span&gt;&lt;p align=&quot;left&quot;&gt;Hi,&lt;/p&gt; &lt;p align=&quot;left&quot;&gt; &lt;/p&gt; &lt;p align=&quot;left&quot;&gt;I am reading some binary data through my COM Port.&lt;/p&gt; &lt;p align=&quot;left&quot;&gt; &lt;/p&gt; &lt;p align=&quot;left&quot;&gt;On my form are 2 multi-line text boxes and 14 single line text boxes.&lt;/p&gt; &lt;p align=&quot;left&quot;&gt; &lt;/p&gt; &lt;p align=&quot;left&quot;&gt;Currently I convert the binary data into hex and display it in one of the multi-line text boxes.&lt;/p&gt; &lt;p align=&quot;left&quot;&gt;I convert the binary data into hex as each byte is read and then display it.&lt;/p&gt; &lt;p align=&quot;left&quot;&gt; &lt;/p&gt; &lt;p align=&quot;left&quot;&gt;I would like to also display the binary data into ascii in the other multi-line text box. And also split the whole ascii string into substrings at certain points and display each one in the single line text boxes. I would like to process this all at the same time? How can this be done?&lt;/p&gt; &lt;p align=&quot;left&quot;&gt; &lt;/p&gt; &lt;p align=&quot;left&quot;&gt;Cheers&lt;/p&gt; &lt;p align=&quot;left&quot;&gt;Mark&lt;/p&gt;&lt;br /&gt;&lt;p align=&quot;left&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p align=&quot;left&quot;&gt;The Accepted Answer (By &lt;span id=&quot;_ctl0_MainContent_PostFlatView&quot;&gt;&lt;b&gt;&lt;span class=&quot;inlineLink&quot; onclick=&quot;window.open(&#39;/MSDN/User/Profile.aspx?UserID=541139&amp;SiteID=1&#39;, target=&#39;_self&#39;)&quot;&gt;Martin Xie - MSFT&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;inlineLink&quot; onclick=&quot;window.open(&#39;/MSDN/User/Profile.aspx?UserID=541139&amp;SiteID=1&#39;, target=&#39;_self&#39;)&quot;&gt;)&lt;/span&gt;                                                                     &lt;/span&gt;&lt;/p&gt;    &lt;/span&gt;                                                                                         &lt;/span&gt;&lt;span id=&quot;_ctl0_MainContent_PostFlatView&quot;&gt;&lt;span&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.85pt; line-height: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;Hi Mark,&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.85pt; line-height: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt; &lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.85pt; line-height: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt; &lt;blockquote&gt; &lt;table width=&quot;85%&quot;&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td class=&quot;txt4&quot;&gt;&lt;img src=&quot;http://forums.microsoft.com/MSDN/Themes/default/images/icon-quote.gif&quot; /&gt; &lt;strong&gt;Spaceman1972 wrote:&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td class=&quot;quoteTable&quot;&gt; &lt;table width=&quot;100%&quot;&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td class=&quot;txt4&quot; valign=&quot;top&quot; width=&quot;100%&quot;&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.85pt; line-height: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;Currently I convert the binary data into hex and display it in one of the multi-line text boxes.&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.85pt; line-height: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;I convert the binary data into hex as each byte is read and then display it.&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.85pt; line-height: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/blockquote&gt;&lt;/span&gt; &lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.85pt; line-height: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt; &lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.85pt; line-height: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;By means of Convert class, you can first convert Binary to Decimal Intger, and then convert Decimal to Hexadecimal string, finally assign it to the TextBox.Text property.&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; line-height: normal;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: blue; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt; &lt;div class=&quot;codeseg&quot;&gt; &lt;div class=&quot;codecontent&quot;&gt; &lt;div class=&quot;codesniptitle&quot;&gt;&lt;span style=&quot;width: 100%;&quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;Code Snippet&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; line-height: normal;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: blue; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;Imports&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt; Microsoft.VisualBasic&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; line-height: normal;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: blue; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;Imports&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt; System&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; line-height: normal;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: blue; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;Imports&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt; System.Collections.Generic&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; line-height: normal;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: blue; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;Imports&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt; System.Text&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; line-height: normal;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;         &lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; line-height: normal;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: blue; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;Dim&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt; bin &lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: blue; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;As&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: blue; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;String&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: rgb(163, 21, 21); font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;&quot;1000001&quot;    &lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: green; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;&#39;Binary string&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; line-height: normal;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt; &lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; line-height: normal;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: blue; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;Dim&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt; decimalValue &lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: blue; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;As&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: blue; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;Integer&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; line-height: normal;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: blue; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;Dim&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt; hexValue &lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: blue; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;As&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: blue; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;String&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; line-height: normal;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt; &lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; line-height: normal;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;        decimalValue = Convert.ToInt32(bin, 2)   &lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: green; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;&#39;First convert Binary to Decimal Intger&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; line-height: normal;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt; &lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; line-height: normal;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;        hexValue = Hex(decimalValue)       &lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: green; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;&#39;Convert Decimal to Hexadecimal string&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; line-height: normal;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt; &lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; line-height: normal;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;       TextBox.Text = hexValue          &lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: green; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;&#39;Display it in the multi-line textbox&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt; &lt;p align=&quot;left&quot;&gt; &lt;span id=&quot;_ctl0_MainContent_PostFlatView&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: 10pt; color: blue; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;&lt;span style=&quot;width: 100%;&quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt; &lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; line-height: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: blue; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; line-height: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: blue; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; line-height: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;&lt;/span&gt;&lt;span id=&quot;_ctl0_MainContent_PostFlatView&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: 10pt; color: blue; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; line-height: normal;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt; &lt;blockquote&gt; &lt;table width=&quot;85%&quot;&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td class=&quot;txt4&quot;&gt;&lt;img src=&quot;http://forums.microsoft.com/MSDN/Themes/default/images/icon-quote.gif&quot; /&gt; &lt;strong&gt;Spaceman1972 wrote:&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td class=&quot;quoteTable&quot;&gt; &lt;table width=&quot;100%&quot;&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td class=&quot;txt4&quot; valign=&quot;top&quot; width=&quot;100%&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: blue; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;&lt;/span&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.85pt; line-height: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;I would like to also display the binary data into ascii in the other multi-line text box. And also split the whole ascii string into substrings at certain points and display each one in the single line text boxes. I would like to process this all at the same time? How can this be done?&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: blue; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.85pt; line-height: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/blockquote&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: blue; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;&lt;/span&gt; &lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0.85pt; line-height: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: blue; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt; line-height: 115%; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;You can first convert Binary data to Decimal Intger (as ASCII Codes), and then convert ASCII Codes to ASCII Characters, finally assign it to the TextBox.Text property.&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; line-height: 115%; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;&lt;/span&gt;&lt;/p&gt; &lt;div class=&quot;codeseg&quot;&gt; &lt;div class=&quot;codecontent&quot;&gt; &lt;div class=&quot;codesniptitle&quot;&gt;&lt;span style=&quot;width: 100%;&quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;Code Snippet&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; line-height: normal;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;&lt;span style=&quot;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: blue; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;Dim&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt; bin &lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: blue; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;As&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: blue; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;String&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: rgb(163, 21, 21); font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;&quot;1000001&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;&lt;span style=&quot;&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: green; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;&#39;Binary string (A&#39;s ASCII Code 65)&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; line-height: normal;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: green; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt; &lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; line-height: normal;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;&lt;span style=&quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: blue; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;Dim&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt; decimalAscIIValue &lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: blue; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;As&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: blue; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;Integer&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; line-height: normal;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: blue; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt; &lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; line-height: normal;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;&lt;span style=&quot;&quot;&gt;        &lt;/span&gt;decimalAscIIValue = Convert.ToInt32(bin, 2)&lt;span style=&quot;&quot;&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: green; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;&#39;First convert Binary to Decimal Intger&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; line-height: normal;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: green; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt; &lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; line-height: normal;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;&lt;span style=&quot;&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: blue; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;Dim&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt; AscIIChar &lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: blue; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;As&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: blue; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;String&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt; = Chr(decimalAscIIValue) &lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: green; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;&#39;Then convert Decimal to ASCII Character&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; line-height: normal;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt; &lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt; background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; line-height: normal;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: black; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;&lt;span style=&quot;&quot;&gt;        &lt;/span&gt;TextBox.Text =  AscIIChar &lt;/span&gt;&lt;span style=&quot;font-size: 10pt; color: green; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;&lt;span style=&quot;&quot;&gt;        &lt;span style=&quot;font-size: 10pt; color: green; line-height: 115%; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;&#39;AscIIChar =A. Display it in the multi-line textbox&lt;/span&gt;     &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt; &lt;div class=&quot;codeseg&quot; align=&quot;left&quot;&gt; &lt;/div&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: 10pt; line-height: 115%; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;I hope this can enlighten you.&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: 10pt; line-height: 115%; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;I believe you can finish the rest task. &lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: 10pt; line-height: 115%; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;&lt;/span&gt; &lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: 10pt; line-height: 115%; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;Best regards,&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-size: 10pt; line-height: 115%; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;;&quot;&gt;Martin Xie&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;</description><link>http://msdntracker.blogspot.com/2007/12/convert-binary-to-ascii.html</link><author>noreply@blogger.com (Omar)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3994073019475300811.post-1408333662359975267</guid><pubDate>Sun, 09 Dec 2007 13:53:00 +0000</pubDate><atom:updated>2007-12-09T06:04:41.258-08:00</atom:updated><title>Getting all the possible combinations of numbers</title><description>&lt;span style=&quot;font-family:verdana;&quot;&gt;Original post by &lt;/span&gt;&lt;span id=&quot;_ctl0_MainContent_PostFlatView&quot;  style=&quot;font-family:verdana;&quot;&gt;&lt;b&gt;&lt;span class=&quot;inlineLink&quot; onclick=&quot;window.open(&#39;/MSDN/User/Profile.aspx?UserID=762492&amp;SiteID=1&#39;, target=&#39;_self&#39;)&quot;&gt;rattlesnake316 &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;inlineLink&quot; onclick=&quot;window.open(&#39;/MSDN/User/Profile.aspx?UserID=762492&amp;SiteID=1&#39;, target=&#39;_self&#39;)&quot;&gt;at &lt;a href=&quot;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2144742&amp;amp;SiteID=1&quot;&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2144742&amp;amp;SiteID=1&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;The Question :&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span id=&quot;_ctl0_MainContent_PostFlatView&quot;  style=&quot;font-family:verdana;&quot;&gt;&lt;span&gt;How can I get all the possible combinations of numbers?&lt;br /&gt;&lt;br /&gt;For example the input numbers are 1, 2 and 3&lt;br /&gt;&lt;br /&gt;How can i get all the possible combinations of these numbers&lt;br /&gt;&lt;br /&gt;For example&lt;br /&gt;1 2 3&lt;br /&gt;3 2 1&lt;br /&gt;3 1 2&lt;br /&gt;2 1 3&lt;br /&gt;2 3 1&lt;br /&gt;1 3 2&lt;br /&gt;&lt;br /&gt;How can i get all of this??? The numbers depends on the input for example the input numbers are from 1 - 9&lt;br /&gt;how can i get all the possible combinations for that.&lt;br /&gt;&lt;br /&gt;Hope someone could help me out here...&lt;br /&gt;&lt;br /&gt;Thanks in advance!&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;font-size:100%;&quot; &gt;The Best Answer by &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span id=&quot;_ctl0_MainContent_PostFlatView&quot;  style=&quot;font-family:verdana;&quot;&gt;&lt;b&gt;&lt;span class=&quot;inlineLink&quot; onclick=&quot;window.open(&#39;/MSDN/User/Profile.aspx?UserID=671110&amp;SiteID=1&#39;, target=&#39;_self&#39;)&quot;&gt;&lt;span style=&quot;font-style: italic;font-size:100%;&quot; &gt;Robert Rossney :&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;&lt;p align=&quot;left&quot;&gt;Recursion is the key.  To find all of the permutations of an n-element set, find, for each element in the set, all of the permutations of the n-element subset that doesn&#39;t contain that element.&lt;/p&gt; &lt;p align=&quot;left&quot;&gt; &lt;/p&gt; &lt;p align=&quot;left&quot;&gt;Here&#39;s an implementation.  It&#39;s not very efficient (an efficient algorithm would keep the current permutation in an array that it passes by reference, instead of accumulating it in a string), but it&#39;s correct:&lt;/p&gt; &lt;p align=&quot;left&quot;&gt; &lt;/p&gt;&lt;span style=&quot;font-size:85%;&quot;&gt; &lt;/span&gt;&lt;p align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 255);font-size:85%;&quot; &gt; &lt;div class=&quot;codeseg&quot;&gt; &lt;div class=&quot;codecontent&quot;&gt; &lt;div class=&quot;codesniptitle&quot;&gt;&lt;span style=&quot;width: 100%;&quot;&gt;Code Snippet&lt;/span&gt;&lt;/div&gt; &lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 255);font-size:100%;&quot; &gt;class&lt;/span&gt;&lt;span style=&quot;font-size:100%;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt;Program&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt; &lt;/span&gt;&lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt;{&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;   static&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;int&lt;/span&gt; count;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt; &lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;   static&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;void&lt;/span&gt; Main(&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;string&lt;/span&gt;[] args)&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt;   {&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;      char&lt;/span&gt;[] set = &lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;char&lt;/span&gt; [] { &lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&#39;a&#39;&lt;/span&gt;, &lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&#39;b&#39;&lt;/span&gt;, &lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&#39;c&#39;&lt;/span&gt; };&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt;      FindPermutations(&lt;span style=&quot;color: rgb(0, 128, 128);&quot;&gt;String&lt;/span&gt;.Empty, set);&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt;&lt;span style=&quot;color: rgb(0, 128, 128);&quot;&gt;      Console&lt;/span&gt;.WriteLine(&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;&quot;{0} permutations found&quot;&lt;/span&gt;, count);&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt;&lt;span style=&quot;color: rgb(0, 128, 128);&quot;&gt;      Console&lt;/span&gt;.ReadLine();&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt;   }&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt; &lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;   static&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;void&lt;/span&gt; FindPermutations(&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;string&lt;/span&gt; permutation, &lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;char&lt;/span&gt;[] set)&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt;   {&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;      if&lt;/span&gt; (set.Length == 1)&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt;      {&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt;&lt;span style=&quot;color: rgb(0, 128, 128);&quot;&gt;         Console&lt;/span&gt;.WriteLine(permutation + set[0]);&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt;         count++;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;         return&lt;/span&gt;;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt;      }&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt; &lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;      for&lt;/span&gt; (&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;int&lt;/span&gt; i = 0; i &lt;&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt;      {&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;         char&lt;/span&gt; n = set[i];&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;         string&lt;/span&gt; newPermutation = permutation + n;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;         char&lt;/span&gt;[] subset = &lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;char&lt;/span&gt;[set.Length - 1];&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;         int&lt;/span&gt; j = 0;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;         for&lt;/span&gt; (&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;int&lt;/span&gt; k = 0; k &lt;&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt;         {&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;            if&lt;/span&gt; (set[k] != n)&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt;            {&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt;               subset[j++] = set[k];&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt;            }&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt;         }&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt;         FindPermutations(newPermutation, subset);&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt;      }&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt;   }&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot;color: rgb(0, 0, 0);&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:100%;&quot; &gt;}&lt;/span&gt;&lt;/p&gt; &lt;p align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:85%;&quot; &gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:85%;&quot; &gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;span style=&quot;color: rgb(51, 51, 255); font-weight: bold;&quot;&gt;The Code converted to VB.net&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;Class&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt; Program&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;Shared&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt; count &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;As&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt; Integer&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;Private&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;Shared&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;Sub&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt; Main(&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;ByVal&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt; args &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;As&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt; String())&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;Dim&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt; [set] &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;As&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt; Char() = &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;New&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt; Char() {&quot;a&quot;C, &quot;b&quot;C, &quot;c&quot;C}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt;        FindPermutations([String].Empty, [set])&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt;        Console.WriteLine(&quot;{0} permutations found&quot;, count)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt;        Console.ReadLine()&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;End&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;Sub&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;Private&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;Shared&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;Sub&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt; FindPermutations(&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;ByVal&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt; permutation &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;As&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt; String, &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;ByVal&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt; [set] &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;As&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt; Char())&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;If&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt; [set].Length = 1 &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;Then&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt;            Console.WriteLine(permutation + [set](0))&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt;            count += 1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;Return&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;End&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;If&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;For&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt; i &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;As&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt; Integer = 0 &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;To&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt; [set].Length - 1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;Dim&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt; n &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;As&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt; Char = [set](i)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;Dim&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt; newPermutation &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;As&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt; String = permutation + n&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;Dim&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt; subset &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;As&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt; Char() = &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;New&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt; Char([set].Length - 2) {}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;Dim&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt; j &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;As&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt; Integer = 0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;For&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt; k &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;As&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt; Integer = 0 &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;To&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt; [set].Length - 1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;If&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt; [set](k) &lt;&gt; n &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;Then&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt;                    subset(System.Math.Max(System.Threading.Interlocked.Increment(j),j - 1)) = [set](k)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;End&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;If&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;Next&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt;            FindPermutations(newPermutation, subset)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;Next&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;End&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;Sub&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;End&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; class=&quot;keyword&quot; &gt;Class&lt;/span&gt;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    &lt;p align=&quot;left&quot;&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:85%;&quot; &gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;span style=&quot;color: rgb(51, 51, 255); font-weight: bold;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align=&quot;left&quot;&gt;&lt;span style=&quot;color: rgb(0, 128, 128);font-size:85%;&quot; &gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;span style=&quot;color: rgb(51, 51, 255); font-weight: bold;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;</description><link>http://msdntracker.blogspot.com/2007/12/getting-all-possible-combinations-of.html</link><author>noreply@blogger.com (Omar)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3994073019475300811.post-4228704688721577845</guid><pubDate>Sat, 24 Nov 2007 22:59:00 +0000</pubDate><atom:updated>2007-11-24T15:03:49.191-08:00</atom:updated><title>List Box Resort Solution</title><description>Original Post by RobertMc at &lt;a href=&quot;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2454479&amp;amp;SiteID=1&quot;&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2454479&amp;amp;SiteID=1&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;The Question :&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;I have a listbox with roughly 2500 items that were sorted when created. Now I want to re-sort the same listbox using the time and date portion of the string. Shown below are 5 items as is and then how I&#39;d like the re-sort to place them in the listbox.&lt;br /&gt;&lt;br /&gt;Initial Sort&lt;br /&gt;&lt;br /&gt;25536_002 9/20/2007 10:37:04 PM&lt;br /&gt;25536_002 9/20/2007 10:41:04 PM&lt;br /&gt;25536_002 8/27/2007 8:41:17 AM&lt;br /&gt;26875_001 9/20/2007 1:48:18 PM&lt;br /&gt;26875_001 9/19/2007 12:38:12 PM&lt;br /&gt;&lt;br /&gt;Final Sort&lt;br /&gt;&lt;br /&gt;25536_002 8/27/2007 8:41:17 AM&lt;br /&gt;25536_002 9/20/2007 10:37:04 PM&lt;br /&gt;25536_002 9/20/2007 10:41:04 PM&lt;br /&gt;26875_001 9/19/2007 12:38:12 PM&lt;br /&gt;26875_001 9/20/2007 1:48:18 PM&lt;br /&gt;&lt;br /&gt;I am hoping for a simple resolution.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;RobertMC&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;The Accepted Answer (by Solitaire)&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This is not so simple, involving some string manipulation, but I tested it with your sample data and it works.&lt;br /&gt;&lt;br /&gt;Code Block&lt;br /&gt;&lt;em&gt;Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click&lt;br /&gt;Dim L As Integer, strdat As String&lt;br /&gt;L = ListBox1.Items.Count&lt;br /&gt;Dim strdate(L) As String&lt;br /&gt;For x As Integer = 0 To L - 1&lt;br /&gt;ListBox1.SelectedIndex = x&lt;br /&gt;strdat = ListBox1.SelectedItem.ToString.Substring(20)&lt;br /&gt;strdate(x) = strdat.PadRight(13) &amp;amp; (ListBox1.SelectedItem.ToString).Substring(0, 20)&lt;br /&gt;Next x&lt;br /&gt;ListBox1.Items.Clear()&lt;br /&gt;For x As Integer = 0 To L - 1&lt;br /&gt;ListBox1.Items.Add(strdate(x))&lt;br /&gt;Next x&lt;br /&gt;ListBox1.Sorted = True&lt;br /&gt;For x As Integer = 0 To L - 1&lt;br /&gt;ListBox1.SelectedIndex = x&lt;br /&gt;strdat = ListBox1.SelectedItem.ToString.Substring(14)&lt;br /&gt;strdate(x) = strdat &amp;amp; (ListBox1.SelectedItem.ToString).Substring(0, 13)&lt;br /&gt;Next x&lt;br /&gt;ListBox1.Items.Clear()&lt;br /&gt;For x As Integer = 0 To L - 1&lt;br /&gt;ListBox1.Items.Add(strdate(x))&lt;br /&gt;Next x&lt;br /&gt;End Sub&lt;br /&gt;&lt;/em&gt;</description><link>http://msdntracker.blogspot.com/2007/11/list-box-resort-soltion.html</link><author>noreply@blogger.com (Omar)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3994073019475300811.post-8327628396311616845</guid><pubDate>Sat, 24 Nov 2007 22:53:00 +0000</pubDate><atom:updated>2007-11-24T14:59:04.338-08:00</atom:updated><title>How to use Debugger</title><description>Original solution posted by ReneeC at &lt;a href=&quot;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1141328&amp;amp;SiteID=1&quot;&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1141328&amp;amp;SiteID=1&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Sometimes the idea of using the debugger, can be intimdating to those unfamiliar with them.&lt;br /&gt;This is a tutorial based in a standard piece a source code that we will supply for the purposes of this tutorial. We&#39;re going to make a cheap MP3 player. I hope this tutorial is highly interactive and constructive.&lt;br /&gt;Needed Ingredients:&lt;br /&gt;1.) A test directory with about 4 mp3 files. Make them as short as possible.&lt;br /&gt;2.) Create a new Windows project. In the form Designer, add:&lt;br /&gt;     a.) A progressbar called progressbar     b.) Two buttons, One named btPlay and the other called btStop. In their respective           text property boxes  in the designer,  insert Play and Stop.      c.) A windows Media Player control. This probably is not in your toolbox.          Go to  Tools  Choose Toolbox Items  COM  Windows Media Player. It will now         appear at the bottom of your toolbox. Add a media player to your form and name it         wmp in it&#39;s properties window in the forms designer.&lt;br /&gt;3.) Close the Project to write it to a directory and re-open it&lt;br /&gt;4.) Go to the source editor and depress Control-A and then depress the delete Key.&lt;br /&gt;5.) Then select, copy and paste the following source code:&lt;br /&gt;Imports AxWMPLib&lt;br /&gt;Imports WMPLib&lt;br /&gt;&lt;br /&gt;&lt;em&gt;Imports System.Runtime.InteropServices&lt;br /&gt;Public Class Form1&lt;br /&gt;    Protected Friend WithEvents tmr As New Timer&lt;br /&gt;    Private Duration As Single&lt;br /&gt;    Const SongDirectory As String = &quot;InsertYourTestDirectoryPathHere&quot;&lt;br /&gt;&lt;br /&gt;    Private Sub Form1_Load(ByVal sender As Object, _&lt;br /&gt;                           ByVal e As System.EventArgs) Handles Me.Load&lt;br /&gt;        tmr.Interval = 1000 : tmr.Stop()&lt;br /&gt;        dim a as integer = 0 &#39;Demo not relevant to the code&lt;br /&gt;        a = 1                &#39;Demo not relevant to the code&lt;br /&gt;    End Sub&lt;br /&gt;&lt;br /&gt;    Private Sub btPlay_Click(ByVal sender As Object, _&lt;br /&gt;                            ByVal e As System.EventArgs) Handles btPlay.Click&lt;br /&gt;        NewSong()&lt;br /&gt;    End Sub&lt;br /&gt;&lt;br /&gt;    Private Sub NewSong()&lt;br /&gt;        Dim Song as String = &quot;&quot;&lt;br /&gt;        ProgressBar.Value = 0&lt;br /&gt;        Song = ChooseRandomSong()&lt;br /&gt;        if Song &lt;&gt; &quot;&quot; then&lt;br /&gt;             wmp.URL = song&lt;br /&gt;             wmp.Ctlcontrols.play()&lt;br /&gt;        else&lt;br /&gt;          btPlay.enabled = false&lt;br /&gt;          beep()&lt;br /&gt;        end if&lt;br /&gt;    End Sub&lt;br /&gt;&lt;br /&gt;    Private Sub tmr_Tick(ByVal sender As Object, _&lt;br /&gt;                         ByVal e As System.EventArgs) Handles tmr.Tick&lt;br /&gt;&lt;br /&gt;        If wmp.playState = WMPPlayState.wmppsPlaying Then&lt;br /&gt;            ProgressBar.Value = _&lt;br /&gt;              (wmp.Ctlcontrols.currentPosition / Duration) * 100&lt;br /&gt;        Else&lt;br /&gt;            tmr.Stop()&lt;br /&gt;            btPlay.PerformClick()&lt;br /&gt;        End If&lt;br /&gt;    End Sub&lt;br /&gt; &lt;br /&gt;    Private Sub Player_PlayStateChange(ByVal sender As System.Object, _&lt;br /&gt;                                       ByVal e As _                               AxWMPLib._WMPOCXEvents_PlayStateChangeEvent) _&lt;br /&gt;                                       Handles wmp.PlayStateChange&lt;br /&gt;&lt;br /&gt;        Dim NewState As WMPPlayState = e.newState&lt;br /&gt;&lt;br /&gt;        Select Case e.newState&lt;br /&gt;&lt;br /&gt;            Case WMPPlayState.wmppsBuffering&lt;br /&gt;            Case WMPPlayState.wmppsMediaEnded&lt;br /&gt;                ProgressBar.Value = 0&lt;br /&gt;            Case WMPPlayState.wmppsPaused&lt;br /&gt;            Case WMPPlayState.wmppsPlaying&lt;br /&gt;                Duration = wmp.currentMedia.duration&lt;br /&gt;                tmr.Start()&lt;br /&gt;            Case WMPPlayState.wmppsReady&lt;br /&gt;            Case WMPPlayState.wmppsReconnecting&lt;br /&gt;            Case WMPPlayState.wmppsScanForward&lt;br /&gt;            Case WMPPlayState.wmppsScanReverse&lt;br /&gt;            Case WMPPlayState.wmppsStopped&lt;br /&gt;            Case WMPPlayState.wmppsTransitioning&lt;br /&gt;            Case WMPPlayState.wmppsWaiting&lt;br /&gt;            Case Else&lt;br /&gt;        End Select&lt;br /&gt;    End Sub&lt;br /&gt;&lt;br /&gt;    Private Function ChooseRandomSong() As String&lt;br /&gt;        Dim DI As New System.IO.DirectoryInfo(SongDirectory)&lt;br /&gt;        Dim fi() As System.IO.FileInfo = DI.GetFiles()&lt;br /&gt;        Static Song As String = &quot;&quot;&lt;br /&gt;        Static LastSong As String = &quot;&quot;&lt;br /&gt;        Static SongList As New List(Of String) : SongList.Clear()&lt;br /&gt;        For Each file As System.IO.FileInfo In fi&lt;br /&gt;            If file.Extension.ToLower = &quot;.mp3&quot; Then&lt;br /&gt;                SongList.Add(file.FullName)&lt;br /&gt;            End If&lt;br /&gt;        Next&lt;br /&gt;&lt;br /&gt;        If SongList.Count = 0 Then Return &quot;&quot;&lt;br /&gt;        Static rnd As New Random&lt;br /&gt;        Static num As Int32&lt;br /&gt;        Song = LastSong&lt;br /&gt;        While Song = LastSong&lt;br /&gt;            num = rnd.Next(SongList.Count)&lt;br /&gt;            Song = SongList(num)&lt;br /&gt;        End While&lt;br /&gt;        LastSong = Song&lt;br /&gt;        SongList.Clear()&lt;br /&gt;        Return Song&lt;br /&gt;    End Function&lt;br /&gt;End Class&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;Please note the board editor introduces spurious line wraps and may introduce syntax errors around continuations. if you see squiggles after adding everything, make all lines with the continuation character &quot;_&quot; one line, deleting the &quot;_&quot; and the space in front of it.&lt;br /&gt;Be sure to insert your mp3 directory here:&lt;br /&gt;Const SongDirectory As String = &quot;InsertYourTestDirectoryPathHere&quot;&lt;br /&gt;Depress the save all files button above.&lt;br /&gt;Go to View  Toolbars and make sure that the debug toolbar is checked.&lt;br /&gt;&lt;br /&gt;1.) Go to the source editor&lt;br /&gt;2.) Find this line in the load event   tmr.Interval = 1000 : tmr.Stop()   (These are actually two lines of code separated by a &quot;:&quot;.&lt;br /&gt;3.) On exactly the same horizontal level as that line, to the left of the editor, do a single left click. A brown dot should appear.     click until a brown dot does apear. [see Dave&#39;s comments below]&lt;br /&gt;4.) In the debug toolbar, make sure the locals windows is depressed (activated).&lt;br /&gt;5.) Depress the Green right triangle up above.&lt;br /&gt;6.) What happened?&lt;br /&gt;7.) Make sure you can see the Locals window.&lt;br /&gt;8.) In the debugger toolbar, you will see the Green Arrow,  and a [] square.    To the right you will see a button with the a line and arrow pointing into the  middle of lines. This is the &quot;Step Into&quot; control. On its right you will see the the &quot;Step Over&quot; control.&lt;br /&gt;9.) Watching the Locals window, depress the Step Into button and look for a&lt;br /&gt;10.) Depress the Step Into Button and look at a now.&lt;br /&gt;11.) Finally depress the Green arrow.&lt;br /&gt;What Happened?&lt;br /&gt;&lt;br /&gt;1.) Make sure the debugger is not running.  [ ] Button&lt;br /&gt;2.) Go to your single existing break point by putting your cursor on the Brown dot representing the break point and left click on it. The Break point is deleted.&lt;br /&gt; Now let&#39;s see if your project is working.&lt;br /&gt;3.) Making sure your speakers are on, Depress the Green arrow, and your project should appear on the screen.&lt;br /&gt;4.) Depress the Play button and you should hear one of your mp3s startup. Allow it to play through.&lt;br /&gt;5.) While listening, put a new break point on this line:&lt;br /&gt;Private Sub NewSong()&lt;br /&gt;        ProgressBar.Value = 0 &#39; Set a break here and wait for the                              &#39; song to finish.&lt;br /&gt;&lt;br /&gt;6.) Depress the Step Over Button and observe the editor.&lt;br /&gt;&lt;br /&gt;7.) Stop the project [ ].&lt;br /&gt;&lt;br /&gt;8. Repeat step 4 and then 9.&lt;br /&gt;&lt;br /&gt;9.) This time, depress the step into button oberving what happens, depress it again and again and again.&lt;br /&gt;&lt;br /&gt;What was different?&lt;br /&gt;&lt;br /&gt;1.) Stop your project [ ] and delete all of your previous break points.&lt;br /&gt;2.)  Insert a break point at this Next Statement&lt;br /&gt;For Each file As System.IO.FileInfo In fi&lt;br /&gt;If file.Extension.ToLower = &quot;.mp3&quot; Then&lt;br /&gt;SongList.Add(file.FullName)&lt;br /&gt;End If&lt;br /&gt;Next&lt;br /&gt;3.) Start your project with the Green Arrow. Depress the Play Button.&lt;br /&gt;4.) When your breakpoint is reached, place your cursor here:&lt;br /&gt;Static SongList As New List(Of String) : SongList.Clear()&lt;br /&gt; on Songlist&lt;br /&gt;5.) A window will appear. Put your mouse on the + boxes and new windows will appear&lt;br /&gt;6.) Follow the + signs to the end.&lt;br /&gt;7.) Depress the green arrow so you execute the loop again. Repeat steps 4 -6&lt;br /&gt;8.) Repeat 7 again and again.&lt;br /&gt;9.) Stop your Project&lt;br /&gt;10.) Delete all Breakpoints&lt;br /&gt;11. Place a breakpoint Here:&lt;br /&gt;While Song = LastSong&lt;br /&gt;            num = rnd.Next(SongList.Count)&lt;br /&gt;            Song = SongList(num)&lt;br /&gt;        End While&lt;br /&gt;LastSong = Song&lt;br /&gt;SongList.Clear()Return Song ‘ Set your breakpoint here.&lt;br /&gt;12.) Start your project&lt;br /&gt;13.) Depress Play&lt;br /&gt;What is the contents of Song?&lt;br /&gt;1.) Stop your project.&lt;br /&gt;2.) Delete your breakpoints.&lt;br /&gt;3.) Place a point here:&lt;br /&gt;      Private Sub btPlay_Click(ByVal sender As Object, _&lt;br /&gt;4.) Start your project&lt;br /&gt;5.) Press Play......&lt;br /&gt;6.) After observing that. Stop your project and delete all break points&lt;br /&gt;7.) Place a break point here:&lt;br /&gt;&lt;br /&gt;Private Sub tmr_Tick(ByVal sender As Object, _&lt;br /&gt;                         ByVal e As System.EventArgs) Handles tmr.Tick&lt;br /&gt;&lt;br /&gt;        If wmp.playState = WMPPlayState.wmppsPlaying Then&lt;br /&gt;            ProgressBar.Value = _&lt;br /&gt;              (wmp.Ctlcontrols.currentPosition / Duration) * 100&lt;br /&gt;        Else&lt;br /&gt;            tmr.Stop()&lt;br /&gt;            btPlay.PerformClick()&lt;br /&gt;        End If&lt;br /&gt;    End Sub&lt;br /&gt;At tmr.stop&lt;br /&gt;8.) Start your prject with the green arrow&lt;br /&gt;9.) Depress Play&lt;br /&gt;10.) Listen to the music until the end and watch the screen......</description><link>http://msdntracker.blogspot.com/2007/11/how-to-use-debugger.html</link><author>noreply@blogger.com (Omar)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3994073019475300811.post-1476380510813169617</guid><pubDate>Sat, 17 Nov 2007 17:16:00 +0000</pubDate><atom:updated>2007-11-17T09:18:57.066-08:00</atom:updated><title>Solution for a pattern (Regular Expression)</title><description>&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;Original post by cheatcountry at &lt;/span&gt;&lt;a href=&quot;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2362267&amp;amp;SiteID=1&quot;&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2362267&amp;amp;SiteID=1&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;&lt;strong&gt;The Question :&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;If I want the first letter in what I am looking for to be a value of a variable then how do I reference that variable in my reg expression?&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;&lt;strong&gt;The accepted answer : (By Gunjan246 )&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;string var = &quot;A&quot;;&lt;br /&gt;string pattern = @&quot;\s&quot; + var + &quot;[A-Z]{0,4}\s&quot;;&lt;/span&gt;</description><link>http://msdntracker.blogspot.com/2007/11/solution-for-pattern-regular-expression.html</link><author>noreply@blogger.com (Omar)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3994073019475300811.post-2011486084252565237</guid><pubDate>Sat, 17 Nov 2007 17:00:00 +0000</pubDate><atom:updated>2007-11-17T09:02:43.882-08:00</atom:updated><title>Debugger HELP (General Dot Net)</title><description>&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;Original post by MaxSpd at &lt;/span&gt;&lt;a href=&quot;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2422508&amp;amp;SiteID=1&quot;&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2422508&amp;amp;SiteID=1&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;The Question :&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;I have a project i am working on usint VB.net software and got into a jom...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;here is the issue:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I created a project and wrote some code and slapped on the stuff into the windows application form1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I saved it all and exited...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Came back a few days later opened the project...put some more code and alligned the windows application form1.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Saved All&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Run the debugger and it will only show the form1 from when i originally saved it and not when its all cleaned up and all the buttons and text boxes are alligned all pretty and only the code entered at that time is working at the time of the debgger...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;When i stop and go back the new code is still there and the updated form1 is nice and neat...run the debugger again...same deal...only shows and runs the form1 code from the first save...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I save again and exit VB.net&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;go back and start the VB.net...all new code is there, form1 is nice and neat...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;run the debugger...still only runs original code and not new code...still shows the unaligned form1 i slapped labels, buttons and textboxes into originally...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;How can i make the debugger run the new code and pull up the updated version of the form1 with aligned labels, buttons and textboxes that show in design view???&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;The accepted answer : (By Dave 299)&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;&lt;br /&gt;Under Tools  Options click on Show all Settings at the bottom, then expand the Projects and Solutions branch and select Build and Run.  Ensure that under &quot;On run when build or deployment errors occur&quot; you have not got Launch Old Version selected.&lt;br /&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;&lt;/span&gt;</description><link>http://msdntracker.blogspot.com/2007/11/debugger-help-general-dot-net.html</link><author>noreply@blogger.com (Omar)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3994073019475300811.post-7261802966452546229</guid><pubDate>Sat, 17 Nov 2007 16:53:00 +0000</pubDate><atom:updated>2007-11-17T08:55:33.023-08:00</atom:updated><title>Importing data from an Excel spreadsheet into a VB 2005 application SQL table</title><description>&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;Original post by Carl Am at &lt;/span&gt;&lt;a href=&quot;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2375068&amp;amp;SiteID=1&quot;&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2375068&amp;amp;SiteID=1&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;&lt;strong&gt;The Question :&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;I am trying to re-write a VB6 application in VB 2005. One of the problems I have is I need to be able to import a spreadsheet into an SQL table. I have my VB 2005 application interface, where I need to enter the filename to import and then click a button. The old VB6 way was the transferspreadsheet command.  I set my application to use an Access database.&lt;br /&gt;&lt;br /&gt;What is the best way to achieve this in VB2005?.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;&lt;strong&gt;The accepted answer : (by gpasp)&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;&lt;br /&gt;Private Sub loadDataFromExcel()&lt;br /&gt;Dim excelFile As String = &quot;c:\someDirectory\someFile.xls&quot; &#39;replace with valid path - file&lt;br /&gt;Dim excelSheet As String = &quot;[Sheet1$]&quot; &#39;replace with valid Sheet Name&lt;br /&gt;Dim sql As String = &quot;SELECT * FROM &quot; &amp;amp; excelSheet &#39; add WHERE and ORDER if required&lt;br /&gt;Dim tableName As String = &quot;theNameYouLike&quot;&lt;br /&gt;Try&lt;br /&gt;Using cn As New OleDb.OleDbConnection&lt;br /&gt;&#39; HDR = YES if first row contain column name else NO&lt;br /&gt;&#39; Excel 8.0 / 9.0 ... depending on your Excel version&lt;br /&gt;cn.ConnectionString = &quot;provider=Microsoft.Jet.OLEDB.4.0;&quot; &amp;amp; _&lt;br /&gt;&quot;data source=&quot; &amp;amp; excelFile &amp;amp; &quot;;&quot; &amp;amp; _&lt;br /&gt;&quot;Extended Properties=&quot;&quot;Excel 8.0;HDR=YES&quot;&quot;&quot;&lt;br /&gt;&lt;br /&gt;Dim da As OleDb.OleDbDataAdapter = New OleDb.OleDbDataAdapter(sql, cn)&lt;br /&gt;cn.Open()&lt;br /&gt;da.Fill(yourDataSetName, tableName)&lt;br /&gt;cn.Close()&lt;br /&gt;End Using&lt;br /&gt;Catch ex As Exception&lt;br /&gt;MessageBox.Show(ex.Message)&lt;br /&gt;End Try&lt;br /&gt;&#39;TODO proccess data to add / update other tables&lt;br /&gt;End Sub&lt;/span&gt;</description><link>http://msdntracker.blogspot.com/2007/11/importing-data-from-excel-spreadsheet.html</link><author>noreply@blogger.com (Omar)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3994073019475300811.post-5982515934473191397</guid><pubDate>Sat, 17 Nov 2007 16:44:00 +0000</pubDate><atom:updated>2007-11-17T08:46:58.327-08:00</atom:updated><title>Filter and Sort a Table in VB 2005 Express</title><description>&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;Orginal post by Konker at &lt;/span&gt;&lt;a href=&quot;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2401261&amp;amp;SiteID=1&quot;&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2401261&amp;amp;SiteID=1&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;&lt;strong&gt;The Question :&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;I am using Visual Basic 2005 Express and wish to create a subset from a SQL database table, and then sort on a column of the subset. I can get the table into visual Basic but cannot then figure out how to create and then sort a subset. &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;&lt;strong&gt;The accepted answer : (by Riquel Dong)&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Hi Knoker,&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Based on your post, my understanding of your question is that you fill the data into a datatable from the database and need to filter and data. You can use filter property and sort property of the BindingSource class to handle this problem.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The BindingSource Filter property is used to filter the in-memory bound data source so that only rows that meet the criteria in the Filter string are made &quot;visible&quot; to the binding mechanism. The BindingSource Sort property is implemented like the ADO.NET DataView Sort property. This means you can name any column and indicate &quot;ASC&quot; (the default) for an ascending sort or &quot;DESC&quot; for a descending sort. For more information about how to use the bindingsource class, visit: http://www.databaseportal.org/Visual-Studio-and-SQL-Server/Using-the-Binding-Source-Class.html. Here is the simple code snippet to use this class. I use the Access database here.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Code BlockImports System.Data.OleDb&lt;br /&gt;&lt;br /&gt;Public Class Form1&lt;br /&gt;&lt;br /&gt;Dim con As OleDbConnection = New OleDbConnection(&quot;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Northwind.mdb&quot;)&lt;br /&gt;&lt;br /&gt;Dim sql As OleDbCommand = New OleDbCommand(&quot;SELECT * FROM Shippers&quot;, con)&lt;br /&gt;&lt;br /&gt;Dim ds As DataSet = New DataSet()&lt;br /&gt;&lt;br /&gt;Dim DataAdapter1 As OleDbDataAdapter = New OleDbDataAdapter()&lt;br /&gt;&lt;br /&gt;Dim bs As New BindingSource&lt;br /&gt;&lt;br /&gt;Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click&lt;br /&gt;&lt;br /&gt;bs.Filter = &quot;ShipperID&gt;&#39;15&#39;&quot;&lt;br /&gt;&lt;br /&gt;bs.Sort = &quot;CompanyName DESC&quot;&lt;br /&gt;&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load&lt;br /&gt;&lt;br /&gt;con.Open()&lt;br /&gt;&lt;br /&gt;DataAdapter1.SelectCommand = sql&lt;br /&gt;&lt;br /&gt;DataAdapter1.MissingSchemaAction = MissingSchemaAction.AddWithKey&lt;br /&gt;&lt;br /&gt;DataAdapter1.Fill(ds, &quot;Shippers&quot;)&lt;br /&gt;&lt;br /&gt;bs.DataSource = ds.Tables(&quot;shippers&quot;)&lt;br /&gt;&lt;br /&gt;DataGridView1.DataSource = bs&lt;br /&gt;&lt;br /&gt;con.Close()&lt;br /&gt;&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;End Class&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Riquel&lt;br /&gt;&lt;/span&gt;</description><link>http://msdntracker.blogspot.com/2007/11/filter-and-sort-table-in-vb-2005.html</link><author>noreply@blogger.com (Omar)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3994073019475300811.post-1410947110648949494</guid><pubDate>Sat, 17 Nov 2007 16:14:00 +0000</pubDate><atom:updated>2007-11-17T08:19:35.139-08:00</atom:updated><title>Tell your story to Microsoft and Win 100 $</title><description>&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;&lt;strong&gt;Microsoft Express Heroes Promotion&lt;br /&gt;Want a chance to show off a cool project you’ve created using Visual Studio or SQL Server Express? We’re looking for your stories! Tell us about something that makes your life easier or is just plain fun and if we like it enough to include in a feature article, we’ll give you a $100 Amazon.com gift certificate!&lt;br /&gt;&lt;br /&gt;Here’s how to enter:&lt;br /&gt;&lt;br /&gt;Send an email to exphero@microsoft.com&lt;br /&gt;Please include your name, email, and a description of how you’re using the Express products. Make sure to tell us enough details that we can understand just how cool it is!&lt;br /&gt;You’re free to submit multiple projects, but please only one per email submission.&lt;br /&gt;If you are selected, we will contact you back via your email address.&lt;br /&gt;Good luck! &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;p&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt; &lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;&lt;strong&gt;For More information have a look @ &lt;a href=&quot;http://msdn2.microsoft.com/fr-fr/vstudio/Aa718400.aspx&quot;&gt;http://msdn2.microsoft.com/fr-fr/vstudio/Aa718400.aspx&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;</description><link>http://msdntracker.blogspot.com/2007/11/tell-your-story-to-microsoft-and-win.html</link><author>noreply@blogger.com (Omar)</author><thr:total>0</thr:total></item></channel></rss>