<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>VS2005</title>
        <link>http://blogs.ugidotnet.org/franx_blog/category/2276.aspx</link>
        <description>Visual Studio 2005</description>
        <language>it-IT</language>
        <copyright>Francesco Geri</copyright>
        <managingEditor>fgeri@itconsult.it</managingEditor>
        <generator>Subtext Version 1.9.5.176</generator>
        <item>
            <title>Testo che scompare dalle textbox multilinea in Windows Vista</title>
            <link>http://blogs.ugidotnet.org/franx_blog/archive/2008/07/01/93251.aspx</link>
            <description>&lt;p&gt;Ho riscontrato in una mia applicazione uno strano comportamento. &lt;/p&gt;  &lt;p&gt;Il testo di una textbox multilinea scompariva e riappariva passandogli sopra con il mouse. Oltre ad essere multilinea aveva anche una scrollbar verticale ed era inserita in un controllo SplitContainer che a sua volta era all'interno di una TabPage. Il comportamento si verificava solo con Windows Vista.&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;p&gt;Per riprodurre il problema è sufficiente creare una applicazione Windows Forms, mettere un TabControl, dentro ad un suo TabPage mettere uno SplitContainer, dentro ad un pannello dello SplitContainer mettere un Textbox multilinea con Scrollbar verticale. Natuaralmente bisogna essere su un sistema con &lt;a href="http://blogs.ugidotnet.org/franx_blog/archive/2008/03/30/91960.aspx" target="_blank"&gt;Windows Vista&lt;/a&gt; (su XP tutto OK...)&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.ugidotnet.org/images/blogs_ugidotnet_org/franx_blog/WindowsLiveWriter/Testochescomparedalletextboxmultilineain_7F7E/image_2.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="289" alt="image" src="http://blogs.ugidotnet.org/images/blogs_ugidotnet_org/franx_blog/WindowsLiveWriter/Testochescomparedalletextboxmultilineain_7F7E/image_thumb.png" width="644" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;p&gt;A questo punto basta mandare in esecuzione, scrivere del testo nella textbox muovere un po' il mouse ed osservare il comportamento.&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;p&gt;Per risolvere il problema mi viene in auto questo &lt;a href="http://www.eggheadcafe.com/software/aspnet/30192366/disappearing-text-in-wind.aspx" target="_blank"&gt;post&lt;/a&gt;, in cui si suggeriscono due vie:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Impostare a &lt;span style="color: blue"&gt;False&lt;/span&gt; la proprietà UseVisualStyleBackColor del TabPage       &lt;br /&gt;      &lt;p style="margin: 0px"&gt;&lt;span style="color: blue"&gt;Me&lt;/span&gt;.TabPage1.UseVisualStyleBackColor = &lt;span style="color: blue"&gt;False          &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Sostituire la textbox con una RichTextBox      &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;Impostare la proprietà Backcolor del TabPage ad un valore diverso da Trasparent (nuova soluzione indicatami da &lt;a href="http://blogs.devleap.com/riccardogualandri/default.aspx" target="_blank"&gt;Riccardo&lt;/a&gt;)&lt;/li&gt; &lt;/ol&gt;  &lt;p&gt; &lt;/p&gt;  &lt;p&gt;Da notare che per la prima soluzione occorre impostare la proprietà da codice, per esempio nella load della pagina, in quanto se la si imposta dalla finestra delle proprietà del TabPage la modifica non viene recepita da Visual Studio (succederà solo a me?).&lt;/p&gt;  &lt;p&gt;Inoltre la prima soluzione funziona per l'esempio che ho proposto sopra, ma evidentemente non funziona sempre. Tant'è che per la mia applicazione originale non ha funzionato! Per cui ho adottato la seconda.&lt;/p&gt;  &lt;p&gt;Tutte le soluzioni hanno delle conseguenze grafiche, nel senso che modificano l'aspetto originale della form (nel primo caso lo sfondo del TabPage diventa grigetto, nel secondo il bordo della RichTextBox ha una profondità più marcata rispetto a quello del textbox, nel terzo si deve impostare un colore di sfondo) per cui nessuna delle tre è "perfetta". Tuttavia meglio di niente...&lt;/p&gt;  &lt;p style="font-size: 11pt; background: white; color: black; font-family: consolas; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial"&gt;&lt;/p&gt;&lt;img src="http://blogs.ugidotnet.org/franx_blog/aggbug/93251.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Francesco Geri</dc:creator>
            <guid>http://blogs.ugidotnet.org/franx_blog/archive/2008/07/01/93251.aspx</guid>
            <pubDate>Wed, 02 Jul 2008 07:08:39 GMT</pubDate>
            <wfw:comment>http://blogs.ugidotnet.org/franx_blog/comments/93251.aspx</wfw:comment>
            <comments>http://blogs.ugidotnet.org/franx_blog/archive/2008/07/01/93251.aspx#feedback</comments>
            <slash:comments>2</slash:comments>
            <wfw:commentRss>http://blogs.ugidotnet.org/franx_blog/comments/commentRss/93251.aspx</wfw:commentRss>
            <trackback:ping>http://blogs.ugidotnet.org/franx_blog/services/trackbacks/93251.aspx</trackback:ping>
        </item>
        <item>
            <title>Errore nella creazione di un setup con VS2005 in Vista</title>
            <link>http://blogs.ugidotnet.org/franx_blog/archive/2008/03/11/91660.aspx</link>
            <description>&lt;p&gt;Facendo la build di un progetto di setup con VS2005 in un pc con Vista, potrebbe saltar fuori questo errore:&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.ugidotnet.org/images/blogs_ugidotnet_org/franx_blog/WindowsLiveWriter/ErrorenellacreazionediunsetupconVS2005in_9B90/image_2.png"&gt;&lt;img style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height="109" alt="image" width="244" border="0" src="http://blogs.ugidotnet.org/images/blogs_ugidotnet_org/franx_blog/WindowsLiveWriter/ErrorenellacreazionediunsetupconVS2005in_9B90/image_thumb.png" /&gt;&lt;/a&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;L'errore è questo: &lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;0:Watson 1:1304 2:StreamSupportFiles &lt;br /&gt;
3:streamBinaryToDisk 4:5 &lt;br /&gt;
5:t:\yukon\sql\setup\darwin\sqlcastub\streamca.cpp &lt;br /&gt;
6:238 7:sqlcastub 8:sqlrun.msi&lt;/em&gt; &lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;Premendo OK ne compare un altro: &lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;Error writing to file: Access is denied &lt;br /&gt;
Verify that you have access to that directory&lt;/em&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Questo può succedere se si ha Vista, Visual Studio 2005 Professional ed SQL Server 2005 Developer.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;font color="#0080ff"&gt;Soluzione&lt;/font&gt;&lt;/strong&gt;:&lt;/p&gt;
&lt;ol&gt;
    &lt;li&gt;Avviando VS2005 As Asdministrator non si ha l'errore &lt;/li&gt;
    &lt;li&gt;Installando una versione successiva della dll &lt;em&gt;mergemod.dll&lt;/em&gt; che pare essere la causa del problema (come suggeriscono &lt;a target="_blank" href="http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=113155"&gt;qui&lt;/a&gt;): la versione successiva di quella DLL la si può ottenere installando &lt;a target="_blank" href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/orca_exe.asp"&gt;Orca&lt;/a&gt;. &lt;/li&gt;
&lt;/ol&gt;&lt;img src="http://blogs.ugidotnet.org/franx_blog/aggbug/91660.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Francesco Geri</dc:creator>
            <guid>http://blogs.ugidotnet.org/franx_blog/archive/2008/03/11/91660.aspx</guid>
            <pubDate>Wed, 12 Mar 2008 10:06:56 GMT</pubDate>
            <wfw:comment>http://blogs.ugidotnet.org/franx_blog/comments/91660.aspx</wfw:comment>
            <comments>http://blogs.ugidotnet.org/franx_blog/archive/2008/03/11/91660.aspx#feedback</comments>
            <wfw:commentRss>http://blogs.ugidotnet.org/franx_blog/comments/commentRss/91660.aspx</wfw:commentRss>
            <trackback:ping>http://blogs.ugidotnet.org/franx_blog/services/trackbacks/91660.aspx</trackback:ping>
        </item>
        <item>
            <title>Componente PageSetupDialog</title>
            <link>http://blogs.ugidotnet.org/franx_blog/archive/2008/02/21/91317.aspx</link>
            <description>&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Il componente PageSetupDialog ha un baco (noto) per cui se (nel computer) le impostazioni di misura sono quelle metriche i valori dei margini impostati vengono convertiti in pollici, e quindi diminuiti.&lt;/p&gt;
&lt;p&gt;In pratica, se si esegue la ShowDialog del componente l'utente può imposta il valore 10 per il margine sinistro, preme ok e voi dalla vostra applicazione leggete che ha impostato 3,9!&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;
Il problema è descritto nell'articolo: &lt;a href="http://support.microsoft.com/?id=814355" target="_blank"&gt;http://support.microsoft.com/?id=814355&lt;/a&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;Per ovviare a questo inconveniente possiamo modificare la chiamata alla ShowDialog del componente nel modo seguente:&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;!--
{\rtf1\ansi\ansicpg\lang1024\noproof1252\uc1 \deff0{\fonttbl{\f0\fnil\fcharset0\fprq1 Consolas;}}{\colortbl;??\red0\green0\blue255;\red255\green255\blue255;\red0\green0\blue0;\red0\green128\blue0;}??\fs22 \cf1 Imports\cf0  System.Drawing.Printing\par ??\par ??\cf1 Public\cf0  \cf1 Class\cf0  Form1\par ??\par ??\tab \cf1 Private\cf0  \cf1 Sub\cf0  Button1_Click(\cf1 ByVal\cf0  sender \cf1 As\cf0  System.Object, \cf1 ByVal\cf0  e \cf1 As\cf0  System.EventArgs) _\par ??\tab \cf1 Handles\cf0  Button1.Click\par ??\tab \tab \cf4 ' Inizializza la propriet\'e0 PageSettings \par ??\cf0 \tab \tab \cf1 Me\cf0 .PageSetupDialog1.PageSettings = \cf1 New\cf0  PageSettings\par ??\tab \tab \cf4 ' Apre la finestra delle impostazioni della pagina\par ??\cf0 \tab \tab \cf1 Me\cf0 .PageSetupDialog1.ShowDialog(\cf1 Me\cf0 )\par ??\tab \tab \cf4 '============================================================\par ??\cf0 \tab \tab \cf4 ' Commentare il seguente IF per vedere la differenza\par ??\cf0 \tab \tab \cf4 '============================================================\par ??\cf0 \tab \tab \cf4 ' Esegue la coversione se il sistema corrente \'e8 metrico\par ??\cf0 \tab \tab \cf1 If\cf0  System.Globalization.RegionInfo.CurrentRegion.IsMetric \cf1 Then\par ??\cf0 \tab \tab \tab \cf1 Me\cf0 .PageSetupDialog1.PageSettings.Margins = _\par ??\tab \tab \tab PrinterUnitConvert.Convert(\cf1 Me\cf0 .PageSetupDialog1.PageSettings.Margins, _\par ??\tab \tab \tab PrinterUnit.ThousandthsOfAnInch, PrinterUnit.HundredthsOfAMillimeter)\par ??\tab \tab \cf1 End\cf0  \cf1 If\par ??\cf0 \tab \tab \cf4 ' Riapre la finestra delle impostazioni\par ??\cf0 \tab \tab \cf1 Me\cf0 .PageSetupDialog1.ShowDialog(\cf1 Me\cf0 )\par ??\tab \cf1 End\cf0  \cf1 Sub\par ??\par ??End\cf0  \cf1 Class\par ??}
--&gt;
&lt;div style="background: white none repeat scroll 0% 50%; font-size: 11pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; color: black; font-family: consolas;"&gt;
&lt;p style="margin: 0px;"&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;    1&lt;/span&gt; &lt;span style="color: blue;"&gt;Imports&lt;/span&gt; System.Drawing.Printing&lt;/p&gt;
&lt;p style="margin: 0px;"&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;    2&lt;/span&gt; &lt;/p&gt;
&lt;p style="margin: 0px;"&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;    3&lt;/span&gt; &lt;span style="color: blue;"&gt;Public&lt;/span&gt; &lt;span style="color: blue;"&gt;Class&lt;/span&gt; Form1&lt;/p&gt;
&lt;p style="margin: 0px;"&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;    4&lt;/span&gt; &lt;/p&gt;
&lt;p style="margin: 0px;"&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;    5&lt;/span&gt;   &lt;span style="color: blue;"&gt;Private&lt;/span&gt; &lt;span style="color: blue;"&gt;Sub&lt;/span&gt; Button1_Click(&lt;span style="color: blue;"&gt;ByVal&lt;/span&gt; sender &lt;span style="color: blue;"&gt;As&lt;/span&gt; System.Object, &lt;span style="color: blue;"&gt;ByVal&lt;/span&gt; e &lt;span style="color: blue;"&gt;As&lt;/span&gt; System.EventArgs) _&lt;/p&gt;
&lt;p style="margin: 0px;"&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;    6&lt;/span&gt;   &lt;span style="color: blue;"&gt;Handles&lt;/span&gt; Button1.Click&lt;/p&gt;
&lt;p style="margin: 0px;"&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;    7&lt;/span&gt;     &lt;span style="color: green;"&gt;' Inizializza la proprietà PageSettings &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0px;"&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;    8&lt;/span&gt;     &lt;span style="color: blue;"&gt;Me&lt;/span&gt;.PageSetupDialog1.PageSettings = &lt;span style="color: blue;"&gt;New&lt;/span&gt; PageSettings&lt;/p&gt;
&lt;p style="margin: 0px;"&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;    9&lt;/span&gt;     &lt;span style="color: green;"&gt;' Apre la finestra delle impostazioni della pagina&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0px;"&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;   10&lt;/span&gt;     &lt;span style="color: blue;"&gt;Me&lt;/span&gt;.PageSetupDialog1.ShowDialog(&lt;span style="color: blue;"&gt;Me&lt;/span&gt;)&lt;/p&gt;
&lt;p style="margin: 0px;"&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;   11&lt;/span&gt;     &lt;span style="color: green;"&gt;'============================================================&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0px;"&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;   12&lt;/span&gt;     &lt;span style="color: green;"&gt;' Commentare il seguente IF per vedere la differenza&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0px;"&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;   13&lt;/span&gt;     &lt;span style="color: green;"&gt;'============================================================&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0px;"&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;   14&lt;/span&gt;     &lt;span style="color: green;"&gt;' Esegue la coversione se il sistema corrente è metrico&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0px;"&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;   15&lt;/span&gt;     &lt;span style="color: blue;"&gt;If&lt;/span&gt; System.Globalization.RegionInfo.CurrentRegion.IsMetric &lt;span style="color: blue;"&gt;Then&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0px;"&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;   16&lt;/span&gt;       &lt;span style="color: blue;"&gt;Me&lt;/span&gt;.PageSetupDialog1.PageSettings.Margins = _&lt;/p&gt;
&lt;p style="margin: 0px;"&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;   17&lt;/span&gt;       PrinterUnitConvert.Convert(&lt;span style="color: blue;"&gt;Me&lt;/span&gt;.PageSetupDialog1.PageSettings.Margins, _&lt;/p&gt;
&lt;p style="margin: 0px;"&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;   18&lt;/span&gt;       PrinterUnit.ThousandthsOfAnInch, PrinterUnit.HundredthsOfAMillimeter)&lt;/p&gt;
&lt;p style="margin: 0px;"&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;   19&lt;/span&gt;     &lt;span style="color: blue;"&gt;End&lt;/span&gt; &lt;span style="color: blue;"&gt;If&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0px;"&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;   20&lt;/span&gt;     &lt;span style="color: green;"&gt;' Riapre la finestra delle impostazioni&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0px;"&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;   21&lt;/span&gt;     &lt;span style="color: blue;"&gt;Me&lt;/span&gt;.PageSetupDialog1.ShowDialog(&lt;span style="color: blue;"&gt;Me&lt;/span&gt;)&lt;/p&gt;
&lt;p style="margin: 0px;"&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;   22&lt;/span&gt;   &lt;span style="color: blue;"&gt;End&lt;/span&gt; &lt;span style="color: blue;"&gt;Sub&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0px;"&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;   23&lt;/span&gt; &lt;/p&gt;
&lt;p style="margin: 0px;"&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;   24&lt;/span&gt; &lt;span style="color: blue;"&gt;End&lt;/span&gt; &lt;span style="color: blue;"&gt;Class&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin: 0px;"&gt;&lt;span style="color: blue;"&gt;&lt;/span&gt; &lt;/p&gt;
&lt;/div&gt;&lt;img src="http://blogs.ugidotnet.org/franx_blog/aggbug/91317.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Francesco Geri</dc:creator>
            <guid>http://blogs.ugidotnet.org/franx_blog/archive/2008/02/21/91317.aspx</guid>
            <pubDate>Fri, 22 Feb 2008 11:28:38 GMT</pubDate>
            <wfw:comment>http://blogs.ugidotnet.org/franx_blog/comments/91317.aspx</wfw:comment>
            <comments>http://blogs.ugidotnet.org/franx_blog/archive/2008/02/21/91317.aspx#feedback</comments>
            <wfw:commentRss>http://blogs.ugidotnet.org/franx_blog/comments/commentRss/91317.aspx</wfw:commentRss>
            <trackback:ping>http://blogs.ugidotnet.org/franx_blog/services/trackbacks/91317.aspx</trackback:ping>
        </item>
        <item>
            <title>Add-in per VS2005 : Collapse di una qualunque regione di codice</title>
            <link>http://blogs.ugidotnet.org/franx_blog/archive/2008/02/13/91179.aspx</link>
            <description>Oggi ho installato un add.in per VS 2005 con cui posso finalmente comprimere il codice come mi pare! Evviva!
Questo è il link: http://submain.com/default.aspx?nav=products.smartoutline
[...]&lt;img src="http://blogs.ugidotnet.org/franx_blog/aggbug/91179.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Francesco Geri</dc:creator>
            <guid>http://blogs.ugidotnet.org/franx_blog/archive/2008/02/13/91179.aspx</guid>
            <pubDate>Thu, 14 Feb 2008 08:51:40 GMT</pubDate>
            <wfw:comment>http://blogs.ugidotnet.org/franx_blog/comments/91179.aspx</wfw:comment>
            <comments>http://blogs.ugidotnet.org/franx_blog/archive/2008/02/13/91179.aspx#feedback</comments>
            <slash:comments>2</slash:comments>
            <wfw:commentRss>http://blogs.ugidotnet.org/franx_blog/comments/commentRss/91179.aspx</wfw:commentRss>
            <trackback:ping>http://blogs.ugidotnet.org/franx_blog/services/trackbacks/91179.aspx</trackback:ping>
        </item>
        <item>
            <title>Da oggi al cinema: &amp;quot;Non Usare KeyUp!&amp;quot; - sottotitolo: oggi ce l'ho con la Microsoft!</title>
            <link>http://blogs.ugidotnet.org/franx_blog/archive/2007/12/05/90118.aspx</link>
            <description>&lt;p&gt;Ragazzi, oggi la mia stima nei confronti della Microsoft è un po' calata.&lt;/p&gt;
&lt;p&gt;Dopo essermi lamentato della prepotenza di &lt;a href="http://blogs.ugidotnet.org/franx_blog/archive/2007/12/04/90113.aspx"&gt;outlook&lt;/a&gt;, ora mi trovo a dovermi lamentare anche della gestione eventi di VB.NET.&lt;/p&gt;
&lt;p&gt;Provate a mettere una bella textbox (con nome TextBox1) in un form e scrivere questo codice:&lt;/p&gt;
&lt;div class="CodeFormatContainer"&gt;
&lt;div class="csharpcode"&gt;
&lt;pre class="alt"&gt;&lt;span class="lnum"&gt;   1:  &lt;/span&gt;   Private Sub TextBox1_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyUp&lt;/pre&gt;
&lt;pre&gt;&lt;span class="lnum"&gt;   2:  &lt;/span&gt;      If e.KeyCode = Keys.Return Then&lt;/pre&gt;
&lt;pre class="alt"&gt;&lt;span class="lnum"&gt;   3:  &lt;/span&gt;         MessageBox.Show(&lt;span class="str"&gt;"Premuto invio"&lt;/span&gt;)&lt;/pre&gt;
&lt;pre&gt;&lt;span class="lnum"&gt;   4:  &lt;/span&gt;      End If&lt;/pre&gt;
&lt;pre class="alt"&gt;&lt;span class="lnum"&gt;   5:  &lt;/span&gt;   End Sub&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Poi mandate in esecuzione, portate il focus sulla textbox e premete invio. Compare il messagebox, ri-premete invio per chiuderlo e TAC! Ricompare il messagebox.&lt;/p&gt;
&lt;p&gt;Dunque, succede che la pressione del tasto "invio" mentre è attiva la finestra del messagebox scatena la gestione dell'evento di click sul pulsante (che chiude la fistra) e mette in coda l'evento di keyup. Questo evento viene spedido sul controllo attivo ovvero a textbox1 (dal momento che la messagebox è già chiusa e quindi non se lo può gestire).&lt;/p&gt;
&lt;p&gt;Ci sarà una spiegazione a tutto questo, ma non voglio nemmeno saperla. Secondo me questo funzionamento non è quello che ci si aspetterebbe!&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Comunque se vi capita una situazione del genere poteve ovviare al problema usando l'evento KeyDown o KeyPress al posto di KeyUp. L'importante è &lt;strong&gt;NON USARE KEYUP&lt;/strong&gt;!&lt;/p&gt;&lt;img src="http://blogs.ugidotnet.org/franx_blog/aggbug/90118.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Francesco Geri</dc:creator>
            <guid>http://blogs.ugidotnet.org/franx_blog/archive/2007/12/05/90118.aspx</guid>
            <pubDate>Wed, 05 Dec 2007 17:09:29 GMT</pubDate>
            <wfw:comment>http://blogs.ugidotnet.org/franx_blog/comments/90118.aspx</wfw:comment>
            <comments>http://blogs.ugidotnet.org/franx_blog/archive/2007/12/05/90118.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://blogs.ugidotnet.org/franx_blog/comments/commentRss/90118.aspx</wfw:commentRss>
            <trackback:ping>http://blogs.ugidotnet.org/franx_blog/services/trackbacks/90118.aspx</trackback:ping>
        </item>
        <item>
            <title>VS2005: Come aggiungere reference a DLL che si trovano nella GAC</title>
            <link>http://blogs.ugidotnet.org/franx_blog/archive/2007/11/05/89437.aspx</link>
            <description>Oggi avevo bisogno di aggiungere la reference ad una DLL
&lt;p&gt;in un progetto VS2005 (VB). &lt;/p&gt;
&lt;p&gt;La DLL si trovava nella GAC e con mio malcelato stupore non sono riuscito a trovare la DLL fra quelle elencate nella finestra "Add Reference" di Visual Studio.&lt;/p&gt;
&lt;p&gt;Per cui ho fatto quanto segue:&lt;/p&gt;
&lt;ol&gt;
    &lt;li&gt;ho estratto la DLL dalla GAC (usando il prompt di DOS... ma si può usare un tool come &lt;a target="_blank" href="http://www.nirsoft.net/dot_net_tools/gac_viewer.html"&gt;questo&lt;/a&gt;);&lt;/li&gt;
    &lt;li&gt;l'ho copiata nella cartella "C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PublicAssemblies" &lt;/li&gt;
    &lt;li&gt;Ho riaperto la finestra "Add Reference" e sotto il pannello .NET ho selezionato la mia DLL (ora finalmente presente)&lt;/li&gt;
    &lt;li&gt;ho verificato che avesse il flag CopyLocal=False (ma presumo sia così per forza)&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;La soluzione l'ho trovata cercando un po' e trovando questo &lt;a target="_blank" href="http://weblogs.asp.net/jdanforth/archive/2003/12/16/43841.aspx"&gt;post&lt;/a&gt;.&lt;/p&gt;&lt;img src="http://blogs.ugidotnet.org/franx_blog/aggbug/89437.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Francesco Geri</dc:creator>
            <guid>http://blogs.ugidotnet.org/franx_blog/archive/2007/11/05/89437.aspx</guid>
            <pubDate>Mon, 05 Nov 2007 17:50:19 GMT</pubDate>
            <wfw:comment>http://blogs.ugidotnet.org/franx_blog/comments/89437.aspx</wfw:comment>
            <comments>http://blogs.ugidotnet.org/franx_blog/archive/2007/11/05/89437.aspx#feedback</comments>
            <slash:comments>2</slash:comments>
            <wfw:commentRss>http://blogs.ugidotnet.org/franx_blog/comments/commentRss/89437.aspx</wfw:commentRss>
            <trackback:ping>http://blogs.ugidotnet.org/franx_blog/services/trackbacks/89437.aspx</trackback:ping>
        </item>
        <item>
            <title>VS2005 perde le icone dei componenti della toolbox (e ce ne mette una unica, a caso) - BUG?</title>
            <link>http://blogs.ugidotnet.org/franx_blog/archive/2007/04/04/74703.aspx</link>
            <description>Ciao,&lt;br&gt;
il mio Visual Studio 2005 ha un problema con le icone della toolbox.&lt;br&gt;
Nel pannello "All Windows Forms" alcune icone dei componenti sono andate perdute e sono state sostituite da un'unica icona (che tra l'altro ogni tanto cambia...).&lt;br&gt;...&lt;img src="http://blogs.ugidotnet.org/franx_blog/aggbug/74703.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Francesco Geri</dc:creator>
            <guid>http://blogs.ugidotnet.org/franx_blog/archive/2007/04/04/74703.aspx</guid>
            <pubDate>Thu, 05 Apr 2007 02:16:00 GMT</pubDate>
            <wfw:comment>http://blogs.ugidotnet.org/franx_blog/comments/74703.aspx</wfw:comment>
            <comments>http://blogs.ugidotnet.org/franx_blog/archive/2007/04/04/74703.aspx#feedback</comments>
            <slash:comments>2</slash:comments>
            <wfw:commentRss>http://blogs.ugidotnet.org/franx_blog/comments/commentRss/74703.aspx</wfw:commentRss>
            <trackback:ping>http://blogs.ugidotnet.org/franx_blog/services/trackbacks/74703.aspx</trackback:ping>
        </item>
        <item>
            <title>Se la build di un progetto funziona in debug e fallisce in Release...</title>
            <link>http://blogs.ugidotnet.org/franx_blog/archive/2007/04/02/74495.aspx</link>
            <description>Oggi mi è capitato un problemino con un progetto di un webservice. 
&lt;br&gt;&lt;br&gt;
Il progetto faceva riferimento ad una dll che stava su un percorso di rete condiviso, all'interno della mia intranet.&lt;br&gt;
Capitava che quando facevo la Build del progetto in modalità Debug tutto funzionava bene, mentre in Release falliva...&lt;br&gt;

&lt;img src="http://blogs.ugidotnet.org/franx_blog/aggbug/74495.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Francesco Geri</dc:creator>
            <guid>http://blogs.ugidotnet.org/franx_blog/archive/2007/04/02/74495.aspx</guid>
            <pubDate>Tue, 03 Apr 2007 05:33:00 GMT</pubDate>
            <wfw:comment>http://blogs.ugidotnet.org/franx_blog/comments/74495.aspx</wfw:comment>
            <comments>http://blogs.ugidotnet.org/franx_blog/archive/2007/04/02/74495.aspx#feedback</comments>
            <slash:comments>2</slash:comments>
            <wfw:commentRss>http://blogs.ugidotnet.org/franx_blog/comments/commentRss/74495.aspx</wfw:commentRss>
            <trackback:ping>http://blogs.ugidotnet.org/franx_blog/services/trackbacks/74495.aspx</trackback:ping>
        </item>
        <item>
            <title>Alla ricerca del Tab ASP.NET scomparso da IIS Manager</title>
            <link>http://blogs.ugidotnet.org/franx_blog/archive/2007/03/23/73684.aspx</link>
            <description>&lt;P&gt;Ciao, pu&amp;#242; capitare a causa di non so bene cosa (ma potete vedere &lt;A href="http://dotnet.org.za/ahmeds/archive/2005/04/26/19028.aspx" target=_blank&gt;qui&lt;/A&gt; o &lt;A href="http://www.eggheadcafe.com/forumpost.aspx?topicid=6&amp;amp;forumpostid=20592" target=_blank&gt;qui&lt;/A&gt; o &lt;A href="http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=119449" target=_blank&gt;qui&lt;/A&gt; o &lt;A href="http://www.kbalertz.com/kb_919283.aspx" target=_blank&gt;qui&lt;/A&gt; alcuni esempi) che scompaia da IIS Manager il tab ASP.NET, da cui poter ad esempio scegliere se usare il framework 2.0 o precedente.&lt;/P&gt;
&lt;P&gt;In questi casi potete provare a cancellare alcune chiavi di registro, cito:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" color=#006400 size=2&gt;Microsoft comments: If a previous version was not uninstalled correctly, please regedit eliminate all versions except 2.0.0.0 in the following locations:&lt;BR&gt;&lt;FONT color=#a52a2a&gt;HKEY_CLASSES_ROOT\CLSID\{7D23CCC6-A390-406E-AB67-2F8B7558F6F6}\InprocServer32\&lt;BR&gt;HKEY_CLASSES_ROOT\CLSID\{FD5CD8B1-6FE0-44F3-BBFB-65E3655B096E} \InprocServer32\&lt;BR&gt;HKEY_CLASSES_ROOT\CLSID\{FEDB2179-2335-48F0-AA28-5CDA35A2B36D}\InprocServer32\&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;Oppure provare questo simpatico tool &lt;A href="http://www.denisbauer.com/NETTools/ASPNETVersionSwitcher.aspx" target=_blank&gt;ASP.NET Version Switcher&lt;/A&gt;:&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&lt;IMG src="http://www.denisbauer.com/NETTools/ASPNETVersionSwitcher.jpg"&gt;&lt;/P&gt;&lt;img src="http://blogs.ugidotnet.org/franx_blog/aggbug/73684.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Francesco Geri</dc:creator>
            <guid>http://blogs.ugidotnet.org/franx_blog/archive/2007/03/23/73684.aspx</guid>
            <pubDate>Sat, 24 Mar 2007 00:46:00 GMT</pubDate>
            <wfw:comment>http://blogs.ugidotnet.org/franx_blog/comments/73684.aspx</wfw:comment>
            <comments>http://blogs.ugidotnet.org/franx_blog/archive/2007/03/23/73684.aspx#feedback</comments>
            <wfw:commentRss>http://blogs.ugidotnet.org/franx_blog/comments/commentRss/73684.aspx</wfw:commentRss>
            <trackback:ping>http://blogs.ugidotnet.org/franx_blog/services/trackbacks/73684.aspx</trackback:ping>
        </item>
        <item>
            <title>Creare Report con Visual Studio .NET</title>
            <link>http://blogs.ugidotnet.org/franx_blog/archive/2007/01/25/68594.aspx</link>
            <description>&lt;P&gt;Come creare Report con Visual Studio .NET? &lt;/P&gt;
&lt;P&gt;Ecco alcune possibilit&amp;#224;: &lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;A href="http://www.businessobjects.com/products/reporting/crystalreports/default.asp"&gt;Crystal Report&lt;/A&gt; 
&lt;LI&gt;&lt;A href="http://www.apexsql.com/sql_tools_report.asp"&gt;Apex SQL Report&lt;/A&gt;: si tratta di un tool per scrivere Report per il database Sql Server 
&lt;LI&gt;&lt;A href="http://www.perpetuumsoft.com/Product.aspx?lang=en&amp;pid=21&amp;tid=express&amp;prsp=rssexpr"&gt;Report Sharp-Shooter Express&lt;/A&gt;: &amp;#232; la versione free di &lt;A href="http://www.perpetuumsoft.com/Product.aspx?lang=en&amp;pid=21"&gt;Report Sharp-Shooter&amp;#8482;&lt;/A&gt;. 
&lt;LI&gt;&lt;A href="http://www.stimulsoft.com/StimulReportMoreInfo.aspx"&gt;StimulReport.Net&lt;/A&gt;: invocabile sia da winForms che asp.net&lt;/LI&gt;&lt;/OL&gt;&lt;img src="http://blogs.ugidotnet.org/franx_blog/aggbug/68594.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Francesco Geri</dc:creator>
            <guid>http://blogs.ugidotnet.org/franx_blog/archive/2007/01/25/68594.aspx</guid>
            <pubDate>Fri, 26 Jan 2007 01:37:00 GMT</pubDate>
            <wfw:comment>http://blogs.ugidotnet.org/franx_blog/comments/68594.aspx</wfw:comment>
            <comments>http://blogs.ugidotnet.org/franx_blog/archive/2007/01/25/68594.aspx#feedback</comments>
            <slash:comments>6</slash:comments>
            <wfw:commentRss>http://blogs.ugidotnet.org/franx_blog/comments/commentRss/68594.aspx</wfw:commentRss>
            <trackback:ping>http://blogs.ugidotnet.org/franx_blog/services/trackbacks/68594.aspx</trackback:ping>
        </item>
    </channel>
</rss>