<?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:georss='http://www.georss.org/georss' xmlns:thr='http://purl.org/syndication/thread/1.0' version='2.0'><channel><atom:id>tag:blogger.com,1999:blog-8625674</atom:id><lastBuildDate>Sun, 25 Apr 2010 14:43:02 +0000</lastBuildDate><title>.NET code</title><description>.NET code snippets for developers (VB.NET, ADO.NET, C# and databases).</description><link>http://www.dotnet4all.com/dotnet-code/</link><managingEditor>noreply@blogger.com (XanderZe)</managingEditor><generator>Blogger</generator><openSearch:totalResults>1256</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8625674.post-115946752008777882</guid><pubDate>Thu, 28 Sep 2006 18:15:00 +0000</pubDate><atom:updated>2008-09-11T18:04:52.846+02:00</atom:updated><title>The SqlCommand Guide</title><atom:summary type='text'>Dotnet4all.com has started creating a collection of miniguides that are dedicated to one single component. The first miniguide is 'The SqlCommand Guide'</atom:summary><link>http://www.dotnet4all.com/dotnet-code/2006/09/sqlcommand-guide.html</link><author>noreply@blogger.com (XanderZe)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8625674.post-113629281242825430</guid><pubDate>Tue, 03 Jan 2006 12:53:00 +0000</pubDate><atom:updated>2006-01-03T13:53:32.513+01:00</atom:updated><title>Obtain scrollbar width.</title><atom:summary type='text'>Found the following interesting discussion in the Newsgroups: Obtain scrollbar width.by:Keith Rebello How do I obtain the width of a scrollbar on a Windows Forms control (eg. aListView control)? Reply:by:hirf-spam-me-here@gmx.at (Herfried K. Wagner [MVP]) 'SystemInformation.VerticalScrollBarWidth','SystemInformation.HorizontalScrollBarHeight'.-- Herfried K. Wagner [MVP] Reply:by:Armin Zingler  </atom:summary><link>http://www.dotnet4all.com/dotnet-code/2006/01/obtain-scrollbar-width.html</link><author>noreply@blogger.com (XanderZe)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8625674.post-113621652460123395</guid><pubDate>Mon, 02 Jan 2006 15:42:00 +0000</pubDate><atom:updated>2006-01-02T16:42:04.600+01:00</atom:updated><title>Mail Merge with PDF</title><atom:summary type='text'>Found the following interesting discussion in the Newsgroups: Mail Merge with PDFby:Hai Hello All,Does any know whether we can use VB.net to merge with pdf document?Thank youHai Reply:by:scorpion53061  http://www.dotnetjunkies.com/HowTo/99C3464A-2CFE-4EE5-A74D-9DEE7F6F735D.dcikmay get you started. It is ASP.NET but you may try System.IO operations to simulate the response.write functions and see </atom:summary><link>http://www.dotnet4all.com/dotnet-code/2006/01/mail-merge-with-pdf.html</link><author>noreply@blogger.com (XanderZe)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8625674.post-113621644768086283</guid><pubDate>Mon, 02 Jan 2006 15:40:00 +0000</pubDate><atom:updated>2006-01-02T16:40:47.680+01:00</atom:updated><title>Socket connection in a web app?</title><atom:summary type='text'>Found the following interesting discussion in the Newsgroups: Socket connection in a web app?by:Martin I am a .Net newbie. I have Visual Studio.Net 2003 and have the luxuryof being able to do some R&amp;D/learning in a non-production environment.I want to develop a web application that will get the data that itserves out from two sources: (1) a database (probably MS Access butcould be SQL Server) and</atom:summary><link>http://www.dotnet4all.com/dotnet-code/2006/01/socket-connection-in-web-app.html</link><author>noreply@blogger.com (XanderZe)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8625674.post-113621630742571411</guid><pubDate>Mon, 02 Jan 2006 15:38:00 +0000</pubDate><atom:updated>2006-01-02T16:38:27.426+01:00</atom:updated><title>Quick Tutorial - VB6 to .NET</title><atom:summary type='text'>Found the following interesting discussion in the Newsgroups: Quick Tutorial - VB6 to .NETby:Liddle Feesh Hi,I need a quick tutorial to help me upgrade a simple client-serverapplication currently using ADO to VB.NET (and ADO.NET).Does anyone have a favourite link?-- Liddle Feesh Reply:by:Dick Grier  Hi,I think that you will want to start with Code Advisor(http://msdn.microsoft.com/vbasic/</atom:summary><link>http://www.dotnet4all.com/dotnet-code/2006/01/quick-tutorial-vb6-to-net.html</link><author>noreply@blogger.com (XanderZe)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8625674.post-113621610340929401</guid><pubDate>Mon, 02 Jan 2006 15:35:00 +0000</pubDate><atom:updated>2006-01-02T16:35:03.410+01:00</atom:updated><title>Moving between forms in VB.NET</title><atom:summary type='text'>Found the following interesting discussion in the Newsgroups: Moving between forms in VB.NETby:stmthoma@gapac.com (Steven Thomas)Ok, I am a newbee at vb.net and I have written an application withmultiple forms.  I have created a form named frmbase with all otherforms are inherited from.  frmbase has my menu on it.  I have setfrmbase as the startup form.  This all works great, however when I goto </atom:summary><link>http://www.dotnet4all.com/dotnet-code/2006/01/moving-between-forms-in-vbnet.html</link><author>noreply@blogger.com (XanderZe)</author><thr:total>1</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8625674.post-113621602323670993</guid><pubDate>Mon, 02 Jan 2006 15:33:00 +0000</pubDate><atom:updated>2006-01-02T16:33:43.236+01:00</atom:updated><title>Is form closed?</title><atom:summary type='text'>Found the following interesting discussion in the Newsgroups: Is form closed?by:Tom Another question: Is there a way to determine if a form has been closed?I.E. A property or something? Like an IsClosed or something similar? I haveinstances where I load a new form, and in that new form I have overriddenthe New constructor which may (after reading some data) decide to close theform before it is </atom:summary><link>http://www.dotnet4all.com/dotnet-code/2006/01/is-form-closed.html</link><author>noreply@blogger.com (XanderZe)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8625674.post-113621586438880084</guid><pubDate>Mon, 02 Jan 2006 15:31:00 +0000</pubDate><atom:updated>2006-01-02T16:31:04.390+01:00</atom:updated><title>Determine if property exists at runtime?</title><atom:summary type='text'>Found the following interesting discussion in the Newsgroups: Determine if property exists at runtime?by:Tom Is there a clean way of determining if a propery exists in a form/class atrun time? I know I could do something like:Try    If form/class_property=something Then        'Do exists processing    Else        'Do not exists processing    End ifCatchEnd TryBut I am wondering if there is a </atom:summary><link>http://www.dotnet4all.com/dotnet-code/2006/01/determine-if-property-exists-at.html</link><author>noreply@blogger.com (XanderZe)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8625674.post-113621552359249485</guid><pubDate>Mon, 02 Jan 2006 15:25:00 +0000</pubDate><atom:updated>2006-01-02T16:25:23.593+01:00</atom:updated><title>How to convert VB6 Type To .NET Structure</title><atom:summary type='text'>Found the following interesting discussion in the Newsgroups: Convert VB6 Type To .NET Structureby:AnonymousGood Day All,I have the following VB6 TypeType IAListRecordType    lID As Long    strName As String * IALISTSTRSIZEEnd TypeI need to convert this to VB .NET. How do I do this? I have come up withStructure IATaskListRecordType        Dim lID As Long        Dim strName As String * </atom:summary><link>http://www.dotnet4all.com/dotnet-code/2006/01/how-to-convert-vb6-type-to-net.html</link><author>noreply@blogger.com (XanderZe)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8625674.post-113621545450934449</guid><pubDate>Mon, 02 Jan 2006 15:24:00 +0000</pubDate><atom:updated>2006-01-02T16:24:14.510+01:00</atom:updated><title>How to create a suimple virtual directory with default rights</title><atom:summary type='text'>Found the following interesting discussion in the Newsgroups: Creating a suimple virtual directory with default rightsby:Microsoft I have a web site called www.test.comI have a folder under the wwwroot called \testfolderHow do I turn \testfolder\ into a virtual directory.I don't need rights and settings, I've figured that part out,  I just getlost setting up the  "</atom:summary><link>http://www.dotnet4all.com/dotnet-code/2006/01/how-to-create-suimple-virtual.html</link><author>noreply@blogger.com (XanderZe)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8625674.post-113621536704736600</guid><pubDate>Mon, 02 Jan 2006 15:22:00 +0000</pubDate><atom:updated>2006-01-02T16:22:47.046+01:00</atom:updated><title>Multi column listboxes</title><atom:summary type='text'>Found the following interesting discussion in the Newsgroups: Multi column listboxesby:Ed Staffin Hi,Boy the docs are weak. All I want to do is create a listbox with 2 columns. The docs suggest that if I set the multicolumn property to true, all is well.How do I add items? If I use the add method, it seems to only support one item. Is there some delimiter I have to use? Also, there is a column </atom:summary><link>http://www.dotnet4all.com/dotnet-code/2006/01/multi-column-listboxes.html</link><author>noreply@blogger.com (XanderZe)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8625674.post-113621531775669547</guid><pubDate>Mon, 02 Jan 2006 15:21:00 +0000</pubDate><atom:updated>2006-01-02T16:21:57.756+01:00</atom:updated><title>Unicode to MS-DOS Cyrilic (code page 866)</title><atom:summary type='text'>Found the following interesting discussion in the Newsgroups: Unicode to MS-DOS Cyrilic (code page 866)by:Nikolay Petrov How can I convert a Unicode string to DOS Cyrilic text (code page 866)? Reply:by:Armin Zingler  dim en as System.Text.Encodingdim b as byte()en = System.Text.Encoding.GetEncoding(866)b = en.getbytes("Unicode Text")-- Armin Reply:by:Nikolay Petrov  Thanks</atom:summary><link>http://www.dotnet4all.com/dotnet-code/2006/01/unicode-to-ms-dos-cyrilic-code-page.html</link><author>noreply@blogger.com (XanderZe)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8625674.post-113621525380296408</guid><pubDate>Mon, 02 Jan 2006 15:20:00 +0000</pubDate><atom:updated>2006-01-02T16:20:53.803+01:00</atom:updated><title>Vb.net 2003 Get Text File</title><atom:summary type='text'>Found the following interesting discussion in the Newsgroups: Vb.net 2003 Get Text Fileby:Cor Ligthert As I said in future Reply:by:hirf-spam-me-here@gmx.at (Herfried K. Wagner [MVP]) ....-- Herfried K. Wagner [MVP] Reply:by:Cor Ligthert  Was a time change now I know how to do, so there is no need for me anymorefor othermessages.:-)</atom:summary><link>http://www.dotnet4all.com/dotnet-code/2006/01/vbnet-2003-get-text-file_02.html</link><author>noreply@blogger.com (XanderZe)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8625674.post-113621522065361129</guid><pubDate>Mon, 02 Jan 2006 15:20:00 +0000</pubDate><atom:updated>2006-01-02T16:20:20.653+01:00</atom:updated><title>Program upgrades</title><atom:summary type='text'>Found the following interesting discussion in the Newsgroups: Program upgradesby:Craig Brunton Dear all,I am new to visual basic.NET and have recently finished my first programthat works with our design package to create drawings.  The problem I nowhave is that I have installed the program on the PC's that need it but Ihave just update the program to accommodate a new standard for the </atom:summary><link>http://www.dotnet4all.com/dotnet-code/2006/01/program-upgrades.html</link><author>noreply@blogger.com (XanderZe)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8625674.post-113621518443047712</guid><pubDate>Mon, 02 Jan 2006 15:19:00 +0000</pubDate><atom:updated>2006-01-02T16:19:44.430+01:00</atom:updated><title>RE: SQLCE Problem on Create Table</title><atom:summary type='text'>Found the following interesting discussion in the Newsgroups: RE: SQLCE Problem on Create Tableby:Enver A it throws an Sqlce exceptionUnder Public Class Form1 definition:Private Const filename4 As String = "MUSTERI.SDF"Private connstr4 As String = String.Format("Datasource={0};Password={1}",filename4, "Admin")Private connection4 As SqlCeConnectionUnder Private sub CreateDB Click():Dim engine4 As </atom:summary><link>http://www.dotnet4all.com/dotnet-code/2006/01/re-sqlce-problem-on-create-table.html</link><author>noreply@blogger.com (XanderZe)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8625674.post-113621513467833707</guid><pubDate>Mon, 02 Jan 2006 15:18:00 +0000</pubDate><atom:updated>2006-01-02T16:18:54.680+01:00</atom:updated><title>Q:Importing an Excel file into a VB application</title><atom:summary type='text'>Found the following interesting discussion in the Newsgroups: Q:Importing an Excel file into a VB applicationby:Geoff Jones HiI have a question which I hope somebody can answer. I have written a VBapplication with which I want to import an Excel file, analyze the datawithin it and do some calculations. There are in fact five sheets in theExcel file. My original idea was to import the file into </atom:summary><link>http://www.dotnet4all.com/dotnet-code/2006/01/qimporting-excel-file-into-vb.html</link><author>noreply@blogger.com (XanderZe)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8625674.post-113621511208974750</guid><pubDate>Mon, 02 Jan 2006 15:18:00 +0000</pubDate><atom:updated>2006-01-02T16:18:32.090+01:00</atom:updated><title>Vb.net 2003 Get Text File</title><atom:summary type='text'>Found the following interesting discussion in the Newsgroups: Vb.net 2003 Get Text Fileby:Mis Dep. Dear all   How can i use vb.net 2003 import text file to SQL CEbest reg,Tingnong Reply:by:Cor Ligthert  HI Mis,In my opinion have you on 2 places a better change for an answer on yourquestionmicrosoft.public.dotnet.framework.adonetormicrosoft.public.dotnet.framework.compactframeworkCor Reply:by:Cor </atom:summary><link>http://www.dotnet4all.com/dotnet-code/2006/01/vbnet-2003-get-text-file.html</link><author>noreply@blogger.com (XanderZe)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8625674.post-113621507443505753</guid><pubDate>Mon, 02 Jan 2006 15:17:00 +0000</pubDate><atom:updated>2006-01-02T16:17:54.436+01:00</atom:updated><title>Changing design/apperance in excel from VB.NET</title><atom:summary type='text'>Found the following interesting discussion in the Newsgroups: changing design/apperance in excel from VB.NETby:Tomek Hi,Please help me with this. I'm exporting data to excel file and I want tocustomize its apperance (i.e. bold columns name, auto size colums width,freeze some columns). Is it possible?I'm asking how to do it from Visual Basic .NET not from VBA. It is easyto do it in Excel but I </atom:summary><link>http://www.dotnet4all.com/dotnet-code/2006/01/changing-designapperance-in-excel-from.html</link><author>noreply@blogger.com (XanderZe)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8625674.post-113621498972261979</guid><pubDate>Mon, 02 Jan 2006 15:16:00 +0000</pubDate><atom:updated>2006-01-02T16:16:29.796+01:00</atom:updated><title>Visual Basic.net</title><atom:summary type='text'>Found the following interesting discussion in the Newsgroups: Visual Basic.netby:Dominic Am new to programming and need a little help!  I am developing an App, and wwant a second form to open automatically when the app is run. The second form has options to open other areas of the app.  What is the best way to do this. Can anyone help..?Thanks Reply:by:Lars Netzel  Open the Second form in </atom:summary><link>http://www.dotnet4all.com/dotnet-code/2006/01/visual-basicnet.html</link><author>noreply@blogger.com (XanderZe)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8625674.post-110681760726231277</guid><pubDate>Thu, 27 Jan 2005 09:20:00 +0000</pubDate><atom:updated>2005-01-27T10:20:07.263+01:00</atom:updated><title>How to remove NTFS Folder Permissions Using .NET</title><atom:summary type='text'>Found the following interesting discussion in the Newsgroups: Removing NTFS Folder Permissions Using .NETby:Ram Hey,I'v managed to find a way of adding NTFS permissions to a certain folder,But the problem is, the folder has a couple of inherited permissions which Iwant to delete.How can I remove the folder's NTFS permissions WITHOUT using WMI or specialXP features?Thanks ahead!--Ram Reply:by:</atom:summary><link>http://www.dotnet4all.com/dotnet-code/2005/01/how-to-remove-ntfs-folder-permissions.html</link><author>noreply@blogger.com (XanderZe)</author><thr:total>1</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8625674.post-110681754255391143</guid><pubDate>Thu, 27 Jan 2005 09:19:00 +0000</pubDate><atom:updated>2005-01-27T10:19:02.553+01:00</atom:updated><title>HELP - How to dump an XML string into IE???</title><atom:summary type='text'>Found the following interesting discussion in the Newsgroups: HELP - How to dump an XML string into IE???by:Edward Lee Hi,I have a string of XML in VB dot net.  What I want to do is simply dumpthis string programatically into an IE browser so I can view it as itsraw data form...  Is there any way to do this in VB Dot Net WITHOUTfirst saving the file to disk?  I don't want to do an XSLT, </atom:summary><link>http://www.dotnet4all.com/dotnet-code/2005/01/help-how-to-dump-xml-string-into-ie.html</link><author>noreply@blogger.com (XanderZe)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8625674.post-110681749847367483</guid><pubDate>Thu, 27 Jan 2005 09:18:00 +0000</pubDate><atom:updated>2005-01-27T10:18:18.473+01:00</atom:updated><title>How to implement skins</title><atom:summary type='text'>Found the following interesting discussion in the Newsgroups: how to implement skinsby:DzemoT. I'm going to use skins in my application for the first time. Which is thebest way to implement skins in applications?Any sugestions?Links?Thx Reply:by:Ken Tucker [MVP]  Hi,	Here are some links.http://www.codeproject.com/cs/miscctrl/taskbarnotifier.asp?target=skinhttp://www.codeproject.com/csharp/</atom:summary><link>http://www.dotnet4all.com/dotnet-code/2005/01/how-to-implement-skins.html</link><author>noreply@blogger.com (XanderZe)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8625674.post-110681744674742353</guid><pubDate>Thu, 27 Jan 2005 09:17:00 +0000</pubDate><atom:updated>2005-01-27T10:17:26.746+01:00</atom:updated><title>How to hide data addition</title><atom:summary type='text'>Found the following interesting discussion in the Newsgroups: Hidden data additionby:Eric Dreksler Hello,I was wondering if anyone could tell me a good way to add data to a datagrid(or it's dataset) when the user edits/adds a record in a datagrid.Basically, I want to be able to add a username / timestamp to a record,  I'msure there are plenty of ways to do this, but I'm sure it's been done </atom:summary><link>http://www.dotnet4all.com/dotnet-code/2005/01/how-to-hide-data-addition.html</link><author>noreply@blogger.com (XanderZe)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8625674.post-110681737813794818</guid><pubDate>Thu, 27 Jan 2005 09:16:00 +0000</pubDate><atom:updated>2005-01-27T10:16:18.136+01:00</atom:updated><title>How to get macros</title><atom:summary type='text'>Found the following interesting discussion in the Newsgroups: Getting macrosby:AnonymousDoes anybody know how to get a list of macros in an access database from VB.net? Reply:by:Michael Gray  On Wed, 9 Jun 2004 07:11:02 -0700, "Doug"&lt;anonymous@discussions.microsoft.com&gt; wrote:&gt;Does anybody know how to get a list of macros in an access database from VB.net?You have to add a reference to your </atom:summary><link>http://www.dotnet4all.com/dotnet-code/2005/01/how-to-get-macros.html</link><author>noreply@blogger.com (XanderZe)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8625674.post-110681730894447879</guid><pubDate>Thu, 27 Jan 2005 09:15:00 +0000</pubDate><atom:updated>2005-01-27T10:15:08.943+01:00</atom:updated><title>How to list all global groups in AD</title><atom:summary type='text'>Found the following interesting discussion in the Newsgroups: How to list all global groups in ADby:AnonymousI need to list all my global groups in my Active Directory into a list box. Does anyone know an easy way to do this? I really appreciate any help I can get.Thanks! Reply:by:Ram  Hey Matt,It depends - are you using WinNT, or LDAP protocol?--Ram</atom:summary><link>http://www.dotnet4all.com/dotnet-code/2005/01/how-to-list-all-global-groups-in-ad.html</link><author>noreply@blogger.com (XanderZe)</author><thr:total>0</thr:total></item></channel></rss>