<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Luigi Melisi &#187; Tips and Tricks</title>
	<atom:link href="http://www.luigimelisi.com/tag/tips-and-tricks/feed" rel="self" type="application/rss+xml" />
	<link>http://www.luigimelisi.com</link>
	<description>Development Blog : C# Code Samples,.NET Tips and Tricks</description>
	<lastBuildDate>Thu, 03 Mar 2011 09:01:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Come rimuovere tutti i tag HTML da una stringa con Visual C#</title>
		<link>http://www.luigimelisi.com/tips-and-tricks/come-rimuovere-tutti-i-tag-html-da-una-stringa-con-visual-c.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=come-rimuovere-tutti-i-tag-html-da-una-stringa-con-visual-c</link>
		<comments>http://www.luigimelisi.com/tips-and-tricks/come-rimuovere-tutti-i-tag-html-da-una-stringa-con-visual-c.html#comments</comments>
		<pubDate>Mon, 21 Jun 2010 08:32:00 +0000</pubDate>
		<dc:creator>Luigi Melisi</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[.Net FrameWork]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Regex.Replace]]></category>
		<category><![CDATA[RegularExpressions]]></category>
		<category><![CDATA[System.Text.RegularExpressions]]></category>
		<category><![CDATA[Visual C#]]></category>

		<guid isPermaLink="false">http://www.luigimelisi.com/?p=1197</guid>
		<description><![CDATA[L'esempio riportato di seguito mostra un metodo molto semplice per rimuovere tutti i tag HTML, presenti in una stringa,  utilizzando Visual C#(sharp) e le Regular Expressions : ]]></description>
			<content:encoded><![CDATA[<p>L&#8217;esempio riportato di seguito mostra un metodo molto semplice per rimuovere tutti i tag HTML, presenti in una stringa,  utilizzando Visual C#(sharp) e le Regular Expressions :<br />
</p>
<pre class="brush: csharp; title: ; notranslate">
using System.Text.RegularExpressions;
...
const string HTML_TAG_PATTERN = &quot;&lt;.*?&gt;&quot;;
static string StripHTML (string inputString)
{
    return Regex.Replace(inputString, HTML_TAG_PATTERN, string.Empty);
}
</pre>
<p><a href="http://www.youbuy.it/lastminute.aspx" rel="nofollow" target="_blank"><img class="aligncenter" title="YouBuy.it - Last Minute - Offerte Sottocosto" src="http://images.youbuy.it/adv/last.jpg" alt="last Come rimuovere tutti i tag HTML da una stringa con Visual C#" width="450" height="600" /></a></p>

]]></content:encoded>
			<wfw:commentRss>http://www.luigimelisi.com/tips-and-tricks/come-rimuovere-tutti-i-tag-html-da-una-stringa-con-visual-c.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Come eliminare i file temporanei di Internet con Visual C#</title>
		<link>http://www.luigimelisi.com/tips-and-tricks/come-eliminare-i-file-temporanei-di-internet-con-visual-c.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=come-eliminare-i-file-temporanei-di-internet-con-visual-c</link>
		<comments>http://www.luigimelisi.com/tips-and-tricks/come-eliminare-i-file-temporanei-di-internet-con-visual-c.html#comments</comments>
		<pubDate>Fri, 18 Jun 2010 09:16:17 +0000</pubDate>
		<dc:creator>Luigi Melisi</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[.Net FrameWork]]></category>
		<category><![CDATA[Code Samples]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[System.IO]]></category>
		<category><![CDATA[Temporary Internet files]]></category>
		<category><![CDATA[Visual C#]]></category>

		<guid isPermaLink="false">http://www.luigimelisi.com/?p=1176</guid>
		<description><![CDATA[Ecco un semplice metodo per eliminare la cache di Microsoft Internet Explorer con Visual C#
]]></description>
			<content:encoded><![CDATA[<p>Ecco una semplice procedura per eliminare la cache di Microsoft Internet Explorer con Visual C#</p>
<pre class="brush: csharp; title: ; notranslate">
using System.IO;
...
void clearIECache()
{
     ClearFolder (new DirectoryInfo (Environment.GetFolderPath
      (Environment.SpecialFolder.InternetCache)));
}
void ClearFolder (DirectoryInfo folder)
{
   foreach (FileInfo file in folder.GetFiles())
      { file.Delete(); }
   foreach (DirectoryInfo subfolder in folder.GetDirectories())
      { ClearFolder(subfolder); }
}
public static void Main( )
{
   new Test().clearIECache ();
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.luigimelisi.com/tips-and-tricks/come-eliminare-i-file-temporanei-di-internet-con-visual-c.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[C#] : Come scansionare un Array con LINQ</title>
		<link>http://www.luigimelisi.com/tips-and-tricks/c-come-scansionare-un-array-con-linq-2.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=c-come-scansionare-un-array-con-linq-2</link>
		<comments>http://www.luigimelisi.com/tips-and-tricks/c-come-scansionare-un-array-con-linq-2.html#comments</comments>
		<pubDate>Sat, 12 Jun 2010 10:05:59 +0000</pubDate>
		<dc:creator>Luigi Melisi</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[.Net FrameWork]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[Code Samples]]></category>
		<category><![CDATA[foreach]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[linq]]></category>
		<category><![CDATA[Visual C#]]></category>

		<guid isPermaLink="false">http://www.luigimelisi.com/?p=1035</guid>
		<description><![CDATA[Come scansionare un Array con LINQ]]></description>
			<content:encoded><![CDATA[
<pre class="brush: csharp; title: ; notranslate">
using System;
using System.Collections;
using System.Collections.Generic;
namespace ForEachExaple
{
     public static class Utility
     {
         public static void ForEach(this IEnumerable coll, Action function)
         {
            IEnumerator en = coll.GetEnumerator();
            while (en.MoveNext())
            function(en.Current);
          }
     }
class Program
{
   static void Main(string[] args)
   {
      var array = new int[] { 1, 2, 3 };
      //Output : 123
      array.ForEach(val =&amp;gt; Console.Write(val));
    }
 }
}
</pre>
<p><a href="http://www.youbuy.it/VenditeRiservateYouBuy.aspx"><img class="aligncenter size-medium wp-image-1031" title="Last Minute" src="http://www.luigimelisi.com/wp-content/uploads/2010/06/last60-225x300.jpg" alt="last60 225x300 [C#] : Come scansionare un Array con LINQ" width="225" height="300" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.luigimelisi.com/tips-and-tricks/c-come-scansionare-un-array-con-linq-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[C#] : Come inviare una mail con gmail</title>
		<link>http://www.luigimelisi.com/tips-and-tricks/c-come-inviare-una-mail-con-gmail.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=c-come-inviare-una-mail-con-gmail</link>
		<comments>http://www.luigimelisi.com/tips-and-tricks/c-come-inviare-una-mail-con-gmail.html#comments</comments>
		<pubDate>Thu, 10 Jun 2010 21:57:29 +0000</pubDate>
		<dc:creator>Luigi Melisi</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[.Net FrameWork]]></category>
		<category><![CDATA[Code Samples]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Visual C#]]></category>

		<guid isPermaLink="false">http://www.luigimelisi.com/?p=983</guid>
		<description><![CDATA[C# : Come inviare una mail con gmail]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.luigimelisi.com/wp-content/uploads/2010/06/pcfuori.jpg"><img class="aligncenter size-full wp-image-1043" title="fuori tutto youbuy" src="http://www.luigimelisi.com/wp-content/uploads/2010/06/pcfuori.jpg" alt="pcfuori [C#] : Come inviare una mail con gmail" width="586" height="180" /></a><br />
Ecco un metodo sempice e veoloce per inviare una <strong>mail da Gmail con C# :</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td class="code"><pre class="vb" style="font-family:monospace;"><span style="color: #F660AB; font-weight: bold;">string</span> host = <span style="color: #800000;">&quot;smtp.gmail.com&quot;</span>;
int port;
//port = 587; // <span style="color: #8D38C9; font-weight: bold;">with</span> TLS
//port = 465; // <span style="color: #8D38C9; font-weight: bold;">with</span> SSL
port = 25; // normal ‐ works <span style="color: #8D38C9; font-weight: bold;">for</span> my gmail account <span style="color: #8D38C9; font-weight: bold;">with</span> enableSSL
<span style="color: #F660AB; font-weight: bold;">string</span> fromEmail = <span style="color: #800000;">&quot;myemail@mydomain.com&quot;</span>;
var fromAddress = <span style="color: #E56717; font-weight: bold;">new</span> MailAddress(fromEmail);
var toAddress = <span style="color: #E56717; font-weight: bold;">new</span> MailAddress(<span style="color: #800000;">&quot;myemail@aDifferentDomain.com&quot;</span>);
MailMessage message = <span style="color: #E56717; font-weight: bold;">new</span> MailMessage(fromAddress, toAddress)
{
Subject = <span style="color: #800000;">&quot;subject&quot;</span>,
Body = <span style="color: #800000;">&quot;body&quot;</span>,
};</pre></td></tr></table></div>

<p><span id="more-983"></span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>14
15
16
17
18
19
20
21
22
23
24
25
26
</pre></td><td class="code"><pre class="vb" style="font-family:monospace;">var smtp = <span style="color: #E56717; font-weight: bold;">new</span> SmtpClient(host, port) {
Credentials=<span style="color: #E56717; font-weight: bold;">new</span> NetworkCredential(fromEmail, <span style="color: #800000;">&quot;password&quot;</span>),
EnableSsl = <span style="color: #00C2FF; font-weight: bold;">true</span>,
Timeout = 30000,
};
try {
smtp.Send(message);
}
catch(SmtpException se) {
//log
}
message.Dispose();
};</pre></td></tr></table></div>


]]></content:encoded>
			<wfw:commentRss>http://www.luigimelisi.com/tips-and-tricks/c-come-inviare-una-mail-con-gmail.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[C#] : Come passare da Excel a Datatable</title>
		<link>http://www.luigimelisi.com/tips-and-tricks/c-come-passare-da-excel-a-datatable.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=c-come-passare-da-excel-a-datatable</link>
		<comments>http://www.luigimelisi.com/tips-and-tricks/c-come-passare-da-excel-a-datatable.html#comments</comments>
		<pubDate>Thu, 10 Jun 2010 21:14:48 +0000</pubDate>
		<dc:creator>Luigi Melisi</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[.Net FrameWork]]></category>
		<category><![CDATA[Code Samples]]></category>
		<category><![CDATA[DataTable]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[oledb]]></category>
		<category><![CDATA[Visual C#]]></category>

		<guid isPermaLink="false">http://www.luigimelisi.com/?p=985</guid>
		<description><![CDATA[
1
2
3
4
5
6
7
8
9
10
string connectionString = string.Format(&#34;Provider = Microsoft.Jet.OLEDB.4.0; data source =
                                                                   {0};Extended Properties=Excel 8.0;&#34;,file);
&#160;
OleDbDataAdapter = new OleDbDataAdapter(&#34;SELECT * FROM  [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="vb" style="font-family:monospace;"><span style="color: #F660AB; font-weight: bold;">string</span> connectionString = <span style="color: #F660AB; font-weight: bold;">string</span>.Format(<span style="color: #800000;">&quot;Provider = Microsoft.Jet.OLEDB.4.0; data source =
                                                                   {0};Extended Properties=Excel 8.0;&quot;</span>,file);
&nbsp;
OleDbDataAdapter = <span style="color: #E56717; font-weight: bold;">new</span> OleDbDataAdapter(<span style="color: #800000;">&quot;SELECT * FROM [TABLES1$]&quot;</span>,connectionString);
&nbsp;
DataSet ds = <span style="color: #E56717; font-weight: bold;">new</span> DataSet();
&nbsp;
adapter.Fill(ds,<span style="color: #800000;">&quot;Name&quot;</span>);
&nbsp;
DataTable dt = ds.Tables[<span style="color: #800000;">&quot;Name&quot;</span>];</pre></td></tr></table></div>


]]></content:encoded>
			<wfw:commentRss>http://www.luigimelisi.com/tips-and-tricks/c-come-passare-da-excel-a-datatable.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[VB.NET] : Inviare una mail in formato HTML</title>
		<link>http://www.luigimelisi.com/tips-and-tricks/vb-net-inviare-una-mail-in-formato-html.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=vb-net-inviare-una-mail-in-formato-html</link>
		<comments>http://www.luigimelisi.com/tips-and-tricks/vb-net-inviare-una-mail-in-formato-html.html#comments</comments>
		<pubDate>Sat, 20 Mar 2010 00:58:34 +0000</pubDate>
		<dc:creator>Luigi Melisi</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[amp]]></category>
		<category><![CDATA[background color]]></category>
		<category><![CDATA[body]]></category>
		<category><![CDATA[body background]]></category>
		<category><![CDATA[ByVal]]></category>
		<category><![CDATA[dim]]></category>
		<category><![CDATA[document write]]></category>
		<category><![CDATA[Function]]></category>
		<category><![CDATA[host ip]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[mailmessage]]></category>
		<category><![CDATA[MessageBody]]></category>
		<category><![CDATA[MessageHead]]></category>
		<category><![CDATA[ReturnMessage]]></category>
		<category><![CDATA[sans serif font]]></category>
		<category><![CDATA[smtp]]></category>
		<category><![CDATA[string]]></category>
		<category><![CDATA[VB.NET]]></category>

		<guid isPermaLink="false">http://www.luigimelisi.com/?p=713</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<pre class="brush: vb; title: ; notranslate">
Function SendEmail(ByVal ToAddress As String, ByVal FromAddress As String, ByVal MessageSubject As String, ByVal MessageBody As String)
Dim MessageHead As String = &quot;&lt;html&gt;&lt;head&gt;&quot;
MessageHead = MessageHead &amp; &quot;&lt;style &quot;
MessageHead = MessageHead &amp; &quot;body {background-color:#F7F7F7; color:#000; font-family:arial,verdana,sans-serif; font-size:12px;}&quot;
MessageHead = MessageHead &amp; &quot;&lt;/style&gt;&lt;/head&gt;&lt;/body&gt;&quot;
Dim MessageFoot As String = &quot;&lt;/body&gt;&lt;/html&gt;&quot;
MessageBody = MessageHead &amp; MessageBody &amp; MessageFoot
Dim ReturnMessage As String = &quot;&quot;
Dim mm As New MailMessage(FromAddress, ToAddress)
Dim smtp As New SmtpClient
mm.Subject = MessageSubject
mm.Body = MessageBody
mm.IsBodyHtml = True
Try
smtp.Host = &quot;0.0.0.0&quot; 'ADD HOST IP
smtp.Send(mm)
ReturnMessage = &quot;La mail è stata inviata&quot;
Catch ex As Exception
ReturnMessage = &quot;Spiacente, c’è stato un problema! &quot; &amp;amp; ex.Message
End Try
SendEmail = ReturnMessage
End Function
</pre>
<p><a rel="nofollow" href="http://www.youbuy.it/lastminute.aspx" target="_blank"><img class="aligncenter" title="YouBuy.it - Last Minute - Offerte Sottocosto" src="http://images.youbuy.it/adv/last.jpg" alt="last [VB.NET] : Inviare una mail in formato HTML" width="450" height="600" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.luigimelisi.com/tips-and-tricks/vb-net-inviare-una-mail-in-formato-html.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[VB.NET] : Popolare una DataTable con un file CVS</title>
		<link>http://www.luigimelisi.com/tips-and-tricks/vb-net-popolare-una-datatable-con-un-file-cvs.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=vb-net-popolare-una-datatable-con-un-file-cvs</link>
		<comments>http://www.luigimelisi.com/tips-and-tricks/vb-net-popolare-una-datatable-con-un-file-cvs.html#comments</comments>
		<pubDate>Sat, 20 Mar 2010 00:54:39 +0000</pubDate>
		<dc:creator>Luigi Melisi</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[ControlChars]]></category>
		<category><![CDATA[DataTable]]></category>
		<category><![CDATA[dim]]></category>
		<category><![CDATA[finalLine]]></category>
		<category><![CDATA[fullFileStr]]></category>
		<category><![CDATA[Function]]></category>
		<category><![CDATA[New]]></category>
		<category><![CDATA[path]]></category>
		<category><![CDATA[row]]></category>
		<category><![CDATA[Split]]></category>
		<category><![CDATA[streamreader]]></category>
		<category><![CDATA[string]]></category>
		<category><![CDATA[VB.NET]]></category>

		<guid isPermaLink="false">http://www.luigimelisi.com/?p=711</guid>
		<description><![CDATA[Di seguito un semplice esempio che mostra come popolare un DataTable utilizzando Vb.Net.]]></description>
			<content:encoded><![CDATA[<p>Di seguito un semplice esempio che mostra come popolare un <strong>DataTable</strong> utilizzando Vb.Net :
<pre class="brush: vb; title: ; notranslate">
Function ReadCSV(ByVal path As String) As System.Data.DataTable
Dim sr As New StreamReader(path)
Dim fullFileStr As String = sr.ReadToEnd()
sr.Close()
sr.Dispose()
Dim lines As String() = fullFileStr.Split(ControlChars.Lf)
Dim recs As New DataTable()
Dim sArr As String() = lines(0).Split(&quot;,&quot;c)
For Each s As String In sArr
recs.Columns.Add(New DataColumn())
Next
Dim row As DataRow
Dim finalLine As String = &quot;&quot;
For Each line As String In lines
row = recs.NewRow()
finalLine = line.Replace(Convert.ToString(ControlChars.Cr), &quot;&quot;)
row.ItemArray = finalLine.Split(&quot;,&quot;c)
recs.Rows.Add(row)
Next
Return recs
End Function&lt;/pre&gt;
</pre>
<p><a href="http://www.youbuy.it/lastminute.aspx" rel="nofollow" target="_blank"><img class="aligncenter" title="YouBuy.it - Last Minute - Offerte Sottocosto" src="http://images.youbuy.it/adv/last.jpg" alt="last [VB.NET] : Popolare una DataTable con un file CVS" width="450" height="600" /></a><br />
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.luigimelisi.com/tips-and-tricks/vb-net-popolare-una-datatable-con-un-file-cvs.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[VB.NET] : Accesso in lettura ad una DataTable</title>
		<link>http://www.luigimelisi.com/tips-and-tricks/vb-net-accesso-in-lettura-ad-una-datatable.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=vb-net-accesso-in-lettura-ad-una-datatable</link>
		<comments>http://www.luigimelisi.com/tips-and-tricks/vb-net-accesso-in-lettura-ad-una-datatable.html#comments</comments>
		<pubDate>Sat, 20 Mar 2010 00:50:35 +0000</pubDate>
		<dc:creator>Luigi Melisi</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[amp]]></category>
		<category><![CDATA[ByVal]]></category>
		<category><![CDATA[Data]]></category>
		<category><![CDATA[data source]]></category>
		<category><![CDATA[DataTable]]></category>
		<category><![CDATA[dim]]></category>
		<category><![CDATA[document write]]></category>
		<category><![CDATA[Function]]></category>
		<category><![CDATA[jet oledb]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[microsoft jet]]></category>
		<category><![CDATA[New]]></category>
		<category><![CDATA[oledbdataadapter]]></category>
		<category><![CDATA[path]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[strConn]]></category>
		<category><![CDATA[string]]></category>
		<category><![CDATA[uri]]></category>
		<category><![CDATA[VB.NET]]></category>

		<guid isPermaLink="false">http://www.luigimelisi.com/?p=709</guid>
		<description><![CDATA[
1
2
3
4
5
6
7
Function ReadAccess(ByVal sqlString As String, ByVal path As String) As System.Data.DataTable
Dim strConn As String = _&#34;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=&#34; &#38;amp; path &#38;amp; &#34;;&#34;
Dim recs As New Data.DataTable()
DIm sql As New OleDbDataAdapter(sqlString,  [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="vb" style="font-family:monospace;"><span style="color: #E56717; font-weight: bold;">Function</span> ReadAccess(<span style="color: #151B8D; font-weight: bold;">ByVal</span> sqlString <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">String</span>, <span style="color: #151B8D; font-weight: bold;">ByVal</span> path <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">String</span>) <span style="color: #151B8D; font-weight: bold;">As</span> System.Data.DataTable
<span style="color: #151B8D; font-weight: bold;">Dim</span> strConn <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">String</span> = _<span style="color: #800000;">&quot;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=&quot;</span> &amp;amp; path &amp;amp; <span style="color: #800000;">&quot;;&quot;</span>
<span style="color: #151B8D; font-weight: bold;">Dim</span> recs <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #E56717; font-weight: bold;">New</span> Data.DataTable()
<span style="color: #151B8D; font-weight: bold;">DIm</span> sql <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #E56717; font-weight: bold;">New</span> OleDbDataAdapter(sqlString, strConn)
sql.Fill(recs)
Return recs
<span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #E56717; font-weight: bold;">Function</span></pre></td></tr></table></div>

<p><script type="text/javascript">// <![CDATA[
var uri = 'http://impit.tradedoubler.com/imp?type(js)g(16492944)a(1765811)' + new String (Math.random()).substring (2, 11);
document.write('<sc'+'ript type="text/javascript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
// ]]&gt;</script><br />
<a href="http://www.youbuy.it/lastminute.aspx"><img class="aligncenter" title="Offerte Last Minute YouBuy.it" src="http://images.youbuy.it/adv/last.jpg" alt="last [VB.NET] : Accesso in lettura ad una DataTable" width="450" height="600" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.luigimelisi.com/tips-and-tricks/vb-net-accesso-in-lettura-ad-una-datatable.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[VB.NET] : Individuare tutte le stampanti installate</title>
		<link>http://www.luigimelisi.com/tips-and-tricks/individuare-tutte-le-stampanti-installate.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=individuare-tutte-le-stampanti-installate</link>
		<comments>http://www.luigimelisi.com/tips-and-tricks/individuare-tutte-le-stampanti-installate.html#comments</comments>
		<pubDate>Sat, 20 Mar 2010 00:45:01 +0000</pubDate>
		<dc:creator>Luigi Melisi</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[ChargeImpresoras]]></category>
		<category><![CDATA[dim]]></category>
		<category><![CDATA[document write]]></category>
		<category><![CDATA[lPrintDoc]]></category>
		<category><![CDATA[lPrinter]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[New]]></category>
		<category><![CDATA[new printing]]></category>
		<category><![CDATA[Overrides]]></category>
		<category><![CDATA[PrintDocument]]></category>
		<category><![CDATA[Printing]]></category>
		<category><![CDATA[Protected]]></category>
		<category><![CDATA[sub]]></category>
		<category><![CDATA[uri]]></category>

		<guid isPermaLink="false">http://www.luigimelisi.com/?p=706</guid>
		<description><![CDATA[
1
2
3
4
5
6
7
Protected Overrides Sub ChargeImpresoras()
Dim lPrintDoc As New Printing.PrintDocument
Dim lPrinter As Object
For Each lPrinter In PrinterSettings.InstalledPrinters
cboPrinters.Items.Add(lPrinter)
Next
End Sub


var uri =  [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="vb" style="font-family:monospace;">Protected Overrides <span style="color: #E56717; font-weight: bold;">Sub</span> ChargeImpresoras()
<span style="color: #151B8D; font-weight: bold;">Dim</span> lPrintDoc <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #E56717; font-weight: bold;">New</span> Printing.PrintDocument
<span style="color: #151B8D; font-weight: bold;">Dim</span> lPrinter <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">Object</span>
<span style="color: #8D38C9; font-weight: bold;">For</span> <span style="color: #8D38C9; font-weight: bold;">Each</span> lPrinter <span style="color: #8D38C9; font-weight: bold;">In</span> PrinterSettings.InstalledPrinters
cboPrinters.Items.Add(lPrinter)
<span style="color: #8D38C9; font-weight: bold;">Next</span>
<span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #E56717; font-weight: bold;">Sub</span></pre></td></tr></table></div>

<p><script type="text/javascript">
var uri = 'http://impit.tradedoubler.com/imp?type(js)g(16492944)a(1765811)' + new String (Math.random()).substring (2, 11);
document.write('<sc'+'ript type="text/javascript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.luigimelisi.com/tips-and-tricks/individuare-tutte-le-stampanti-installate.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Riflessioni sui trend nei sistemi di gestione del codice sorgente</title>
		<link>http://www.luigimelisi.com/programmazione/net_framework/riflessioni-sui-trend-nei-sistemi-di-gestione-del-codice-sorgente.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=riflessioni-sui-trend-nei-sistemi-di-gestione-del-codice-sorgente</link>
		<comments>http://www.luigimelisi.com/programmazione/net_framework/riflessioni-sui-trend-nei-sistemi-di-gestione-del-codice-sorgente.html#comments</comments>
		<pubDate>Sat, 06 Feb 2010 00:00:17 +0000</pubDate>
		<dc:creator>Luigi Melisi</dc:creator>
				<category><![CDATA[.Net Framework]]></category>
		<category><![CDATA[Programmazione]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[.Net FrameWork]]></category>
		<category><![CDATA[codice]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[evoluzione]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[post]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Visual C#]]></category>

		<guid isPermaLink="false">http://www.luigimelisi.com/programmazione/net_framework/riflessioni-sui-trend-nei-sistemi-di-gestione-del-codice-sorgente.html</guid>
		<description><![CDATA[Questo post rappresenta alcune riflessioni sull’evoluzione dei sistemi di gestione del codice sorgente, derivate da una serie di eventi: La diffusione dei sistemi di gestione distribuita del codice (DVCS) soprattutto nei progetti Open Source. Il rilascio&#8230;(read more)
]]></description>
			<content:encoded><![CDATA[<p>Questo post rappresenta alcune riflessioni sull’evoluzione dei sistemi di gestione del codice sorgente, derivate da una serie di eventi: La diffusione dei sistemi di gestione distribuita del codice (DVCS) soprattutto nei progetti Open Source. Il rilascio&#8230;(<a href="http://blogs.msdn.com/italy/archive/2010/02/05/riflessioni-sui-trend-nei-sistemi-di-gestione-del-codice-sorgente.aspx" rel="nofollow">read more</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.luigimelisi.com/programmazione/net_framework/riflessioni-sui-trend-nei-sistemi-di-gestione-del-codice-sorgente.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook lancia la toolbar per Internet Explorer</title>
		<link>http://www.luigimelisi.com/tips-and-tricks/facebook-lancia-la-toolbar-per-internet-explorer.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=facebook-lancia-la-toolbar-per-internet-explorer</link>
		<comments>http://www.luigimelisi.com/tips-and-tricks/facebook-lancia-la-toolbar-per-internet-explorer.html#comments</comments>
		<pubDate>Wed, 03 Feb 2010 16:03:29 +0000</pubDate>
		<dc:creator>Luigi Melisi</dc:creator>
				<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[italiano]]></category>
		<category><![CDATA[lingue]]></category>
		<category><![CDATA[Social Network]]></category>
		<category><![CDATA[sorce code]]></category>
		<category><![CDATA[toolbar]]></category>
		<category><![CDATA[versione]]></category>

		<guid isPermaLink="false">http://www.luigimelisi.com/tips-and-tricks/facebook-lancia-la-toolbar-per-internet-explorer.html</guid>
		<description><![CDATA[Facebook ha reso disponibile per il download la versione per Internet Explorer della toolbar del social network,  circa due mesi dopo la pubblicazione della versione per Firefox.

La toolbar è disponibile in sedici lingue tra cui anche l’italiano, questa è una differenza rispetto alla versione per  [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>Facebook ha reso disponibile per il download la versione per <strong><em>Internet Explorer</em></strong> della <a rel="nofollow" href="http://blog.facebook.com/blog.php?post=272150022130" target="_blank">toolbar</a> del <strong><em>social network</em></strong>,  circa due mesi dopo la pubblicazione della versione per <strong><em>Firefox.</em></strong></p></blockquote>
<p><strong><em></em></strong><br />
La toolbar è disponibile in sedici lingue tra cui anche <strong><em>l’italiano</em></strong>, questa è una differenza rispetto alla versione per Firefox che era stata pubblicata solamente in inglese.</p>
<p><img title="toolbar" src="http://www.tuttotech.com/wp-content/uploads/2010/02/toolbar-300x37.jpg" alt="toolbar 300x37 Facebook lancia la toolbar per Internet Explorer"  /><br />
<span id="more-671"></span></p>
<p>Lo strumento mette a disposizione icone per accedere in <strong><em>modo rapido a varie sezioni di Facebook</em></strong> come la home page del profilo e la inbox e mostra il numero di messaggi e di richieste di amicizia che non sono ancora state lette.</p>
<p><strong><em>Facebook ha anche pubblicato il codice sorgente</em></strong> della toolbar, gli sviluppatori possono quindi modificarla a loro piacimento.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.luigimelisi.com/tips-and-tricks/facebook-lancia-la-toolbar-per-internet-explorer.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VB.NET : Come Invertire una stringa</title>
		<link>http://www.luigimelisi.com/programmazione/net_framework/vb-net-come-invertire-una-stringa.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=vb-net-come-invertire-una-stringa</link>
		<comments>http://www.luigimelisi.com/programmazione/net_framework/vb-net-come-invertire-una-stringa.html#comments</comments>
		<pubDate>Wed, 20 Jan 2010 20:37:10 +0000</pubDate>
		<dc:creator>Luigi Melisi</dc:creator>
				<category><![CDATA[.Net Framework]]></category>
		<category><![CDATA[Programmazione]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[.Net FrameWork]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[charArray]]></category>
		<category><![CDATA[Console]]></category>
		<category><![CDATA[dim]]></category>
		<category><![CDATA[Module]]></category>
		<category><![CDATA[ReverseOrder]]></category>
		<category><![CDATA[string]]></category>
		<category><![CDATA[sub]]></category>
		<category><![CDATA[textInput]]></category>
		<category><![CDATA[WriteLine]]></category>

		<guid isPermaLink="false">http://www.luigimelisi.com/?p=619</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<pre class="brush: vb; title: ; notranslate">
Module RevString
Sub Main()
Dim inputString As String = Console.ReadLine()
ReverseOrder(inputString)
End Sub
Private Sub ReverseOrder(ByVal textInput As String)
Dim text2Rev As String = textInput
Dim reversed As String
Dim charArray() As Char = textInput.ToCharArray()
Array.Reverse(charArray)
reversed = charArray
Console.WriteLine(&quot;&quot;)
Console.WriteLine(&quot;Testo originale: &quot; + text2Rev)
Console.WriteLine(&quot;Testo invertito: &quot; + reversed)
End Sub
End Module
</pre>
<p><a href="http://www.youbuy.it/lastminute.aspx" rel="nofollow" target="_blank"><img class="aligncenter" title="YouBuy.it - Last Minute - Offerte Sottocosto" src="http://images.youbuy.it/adv/last.jpg" alt="last VB.NET : Come Invertire una stringa" width="450" height="600" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.luigimelisi.com/programmazione/net_framework/vb-net-come-invertire-una-stringa.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VB.NET : Una comoda barra di avanzamento</title>
		<link>http://www.luigimelisi.com/programmazione/net_framework/vb-net-una-comoda-barra-di-avanzamento.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=vb-net-una-comoda-barra-di-avanzamento</link>
		<comments>http://www.luigimelisi.com/programmazione/net_framework/vb-net-una-comoda-barra-di-avanzamento.html#comments</comments>
		<pubDate>Wed, 20 Jan 2010 20:34:43 +0000</pubDate>
		<dc:creator>Luigi Melisi</dc:creator>
				<category><![CDATA[.Net Framework]]></category>
		<category><![CDATA[Programmazione]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[.Net FrameWork]]></category>
		<category><![CDATA[frmMDIParent]]></category>
		<category><![CDATA[Integer]]></category>
		<category><![CDATA[ToolStripProgressBar]]></category>
		<category><![CDATA[value]]></category>
		<category><![CDATA[Visible]]></category>

		<guid isPermaLink="false">http://www.luigimelisi.com/?p=617</guid>
		<description><![CDATA[frmMDIParent.ToolStripProgressBar1.Value = 0
frmMDIParent.ToolStripProgressBar1.Visible = True
For i As Integer = 0 To frmMDIParent.ToolStripProgressBar1.Maximum ‐ 1
frmMDIParent.ToolStripProgressBar1.Value = frmMDIParent.ToolStripProgressBar1.Value + 1
Next
]]></description>
			<content:encoded><![CDATA[<blockquote><p><em><strong>frmMDIParent.ToolStripProgressBar1.Value = 0<br />
frmMDIParent.ToolStripProgressBar1.Visible = True<br />
For i As Integer = 0 To frmMDIParent.ToolStripProgressBar1.Maximum ‐ 1<br />
frmMDIParent.ToolStripProgressBar1.Value = frmMDIParent.ToolStripProgressBar1.Value + 1<br />
Next</strong></em></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.luigimelisi.com/programmazione/net_framework/vb-net-una-comoda-barra-di-avanzamento.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VB.NET : Come contare le linee di un richtextbox</title>
		<link>http://www.luigimelisi.com/programmazione/net_framework/vb-net-contare-le-linee-di-un-richtextbox.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=vb-net-contare-le-linee-di-un-richtextbox</link>
		<comments>http://www.luigimelisi.com/programmazione/net_framework/vb-net-contare-le-linee-di-un-richtextbox.html#comments</comments>
		<pubDate>Wed, 20 Jan 2010 20:28:39 +0000</pubDate>
		<dc:creator>Luigi Melisi</dc:creator>
				<category><![CDATA[.Net Framework]]></category>
		<category><![CDATA[Programmazione]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[.Net FrameWork]]></category>
		<category><![CDATA[ByVal]]></category>
		<category><![CDATA[count]]></category>
		<category><![CDATA[dim]]></category>
		<category><![CDATA[msgbox]]></category>
		<category><![CDATA[richtextbox]]></category>
		<category><![CDATA[rtb]]></category>
		<category><![CDATA[string]]></category>
		<category><![CDATA[sub]]></category>

		<guid isPermaLink="false">http://www.luigimelisi.com/?p=614</guid>
		<description><![CDATA[L'esempio riportato di seguito mostra come contare le linee di un RichTextbox utilizzando Vb.Net :
]]></description>
			<content:encoded><![CDATA[<p>L&#8217;esempio riportato di seguito mostra come contare le linee di un RichTextbox utilizzando Vb.Net :</p>
<pre class="brush: csharp; title: ; notranslate">
private sub countlines(byval rtb as richtextbox)
          dim count as string
          count = rtb.lines.count
          msgbox(count)
end sub
</pre>
<p><a href="http://www.youbuy.it/lastminute.aspx" rel="nofollow" target="_blank"><img class="aligncenter" title="YouBuy.it - Last Minute - Offerte Sottocosto" src="http://images.youbuy.it/adv/last.jpg" alt="last VB.NET : Come contare le linee di un richtextbox" width="450" height="600" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.luigimelisi.com/programmazione/net_framework/vb-net-contare-le-linee-di-un-richtextbox.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Come condividere file con un altro pc usando PipeBytes</title>
		<link>http://www.luigimelisi.com/tips-and-tricks/condividere-file-con-un-altro-pc-usando-pipebytes.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=condividere-file-con-un-altro-pc-usando-pipebytes</link>
		<comments>http://www.luigimelisi.com/tips-and-tricks/condividere-file-con-un-altro-pc-usando-pipebytes.html#comments</comments>
		<pubDate>Wed, 20 Jan 2010 08:49:06 +0000</pubDate>
		<dc:creator>Luigi Melisi</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[PipeBytes]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Utility]]></category>

		<guid isPermaLink="false">http://www.luigimelisi.com/?p=609</guid>
		<description><![CDATA[Ecco un semplice ed unico servizio che permette di condividere file con altri utenti senza limiti di dimensioni. 
Stiamo parlando di PipeBytes servizio che non necessita di registrazione.
Basta entrare nel sito, selezionate il file da voler inviare e condividete il codice (o il link) con l’utente  [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.youbuy.it/lastminute.aspx"><img alt="last Come condividere file con un altro pc usando PipeBytes " src="http://images.youbuy.it/adv/last.jpg" title="YouBuy.it : Last Minute - Offerte Sottocosto" class="aligncenter" width="450" height="600" /></a>Ecco un semplice ed unico servizio che permette di <strong>condividere file</strong> con altri utenti senza limiti di dimensioni. <br />
<strong>Stiamo parlando di <a rel="nofollow" href="http://www.pipebytes.com/" target="_blank">PipeBytes</a> servizio che non necessita di registrazione.</strong></p>
<p>Basta entrare nel sito, selezionate il file da voler inviare e condividete <strong>il codice (o il link)</strong> con l’utente destinatario. La novità che rende <strong>PipeBytes</strong> un ottimo servizio, è la possibilità di iniziare a scaricare il file mentre l’utente lo sta ancora caricando online.<span id="more-609"></span></p>
<p>Ciò vuol dire poter risparmiare tempo instaurando, tra mittente e destinatario, un inizio di download/uploads simultaneo come avviene nelle reti P2P a cui PipeBytes si ispira. La vostra sicurezza è inoltre assicurata visto che il vostro file non verrà salvato e condiviso su internet, ma verrà soltanto inviato al vostro destinatario senza perdersi in altre vie.</p>
<p>Quando il vostro destinatario utilizzerà uno di questi due passaggi inizierà l’invio del file, non prima. Come detto il file non verrà salvato ed, inoltre, avrete a disposizione un <strong>player di YouTube</strong> per “restar impegnati” durante il download.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.luigimelisi.com/tips-and-tricks/condividere-file-con-un-altro-pc-usando-pipebytes.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

