<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/"><channel><title>Astuces</title><link>http://blogs.labo-dotnet.com/patrice/category/374.aspx</link><description>Astuces</description><managingEditor>Patrice</managingEditor><dc:language>fr-FR</dc:language><generator>.Text Version 0.95.2004.101</generator><item><dc:creator>Patrice Lamarche</dc:creator><title>[Tips] Où est passé WinCV ?</title><link>http://blogs.labo-dotnet.com/patrice/archive/2006/04/12/10557.aspx</link><pubDate>Wed, 12 Apr 2006 02:58:00 GMT</pubDate><guid>http://blogs.labo-dotnet.com/patrice/archive/2006/04/12/10557.aspx</guid><wfw:comment>http://blogs.labo-dotnet.com/patrice/comments/10557.aspx</wfw:comment><comments>http://blogs.labo-dotnet.com/patrice/archive/2006/04/12/10557.aspx#Feedback</comments><slash:comments>88</slash:comments><wfw:commentRss>http://blogs.labo-dotnet.com/patrice/comments/commentRss/10557.aspx</wfw:commentRss><trackback:ping>http://blogs.labo-dotnet.com/patrice/services/trackbacks/10557.aspx</trackback:ping><description>&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;IMG height=70 src="/patrice/images/12698_90x70_Framework_F.jpg" width=90 border=0&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;FONT size=2&gt;Ceux d'entre vous qui utilisaient quelques outils pratiques pr&amp;#233;sents dans le SDK du framework 1.x peuvent se demander o&amp;#249; se cache WinCV dans le SDK du framework .net 2. La r&amp;#233;ponse est simple, WinCV est int&amp;#233;gr&amp;#233; &amp;#224; Visual Studio et vous pouvez y acc&amp;#233;der gr&amp;#226;ce au Menu View\Show Code Definition.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;Autre solution, faire un click droit sur la classe que vous souhaitez inspecter et s&amp;#233;lection Show Code Definition dans le menu contextuel.&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;
&lt;P align=center&gt;&lt;IMG height=430 src="/patrice/images/wincv2005.jpg" width=603 border=0&gt;&lt;/P&gt;&lt;img src ="http://blogs.labo-dotnet.com/patrice/aggbug/10557.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Patrice Lamarche</dc:creator><title>[Tips] Petit bug VS .net 2003 : Les évènements fantômes dans le compact framework</title><link>http://blogs.labo-dotnet.com/patrice/archive/2005/02/02/5076.aspx</link><pubDate>Wed, 02 Feb 2005 18:00:00 GMT</pubDate><guid>http://blogs.labo-dotnet.com/patrice/archive/2005/02/02/5076.aspx</guid><wfw:comment>http://blogs.labo-dotnet.com/patrice/comments/5076.aspx</wfw:comment><comments>http://blogs.labo-dotnet.com/patrice/archive/2005/02/02/5076.aspx#Feedback</comments><slash:comments>147</slash:comments><wfw:commentRss>http://blogs.labo-dotnet.com/patrice/comments/commentRss/5076.aspx</wfw:commentRss><trackback:ping>http://blogs.labo-dotnet.com/patrice/services/trackbacks/5076.aspx</trackback:ping><description>&lt;P&gt;Ce post aurait pu &amp;#234;tre dans la rubrique VB.net is not C# mais plus que le langage C# qui aurait pu &amp;#234;tre mis en cause, c'est bien l'IDE qui est&amp;nbsp;fautif sur ce petit probl&amp;#232;me qui intervient lorsque l'on d&amp;#233;veloppe des applications en C# pour le Compact Framework.&lt;/P&gt;
&lt;P&gt;Certaines personnes sont venues me voir en me disant que le C# ne g&amp;#233;rait pas l'&amp;#233;v&amp;#232;nement Deactivate lorsqu'ils d&amp;#233;veloppent une application Compact framework. En effet, en regardant la liste des &amp;#233;v&amp;#232;nements disponibles on constate que cet &amp;#233;v&amp;#232;nement est absent de la liste.&lt;/P&gt;
&lt;P&gt;&lt;IMG height=236 src="/patrice/images/missingdeactivate.png" width=492 border=0&gt;&lt;/P&gt;
&lt;P&gt;Bien evidemment, ce n'est pas le langage qui est en faute, c'est Visual Studio qui ne l'affiche pas dans la liste.&lt;/P&gt;
&lt;P&gt;(En VB, l'&amp;#233;v&amp;#232;nement est bien pr&amp;#233;sent dans la liste)&lt;/P&gt;
&lt;P&gt;&lt;IMG height=224 src="/patrice/images/deactivatevb.png" width=485 border=0&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pour r&amp;#233;gler ce probl&amp;#232;me, c'est tr&amp;#232;s simple, il suffit de coder la gestion de l'&amp;#233;v&amp;#232;nement &amp;#224; la mano :&lt;/P&gt;
&lt;P&gt;Cr&amp;#233;er un delegate dans la m&amp;#233;thode InitializeComponent :&lt;/P&gt;&lt;FONT color=#0000ff size=5&gt;
&lt;P&gt;&lt;FONT size=2&gt;this&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.Deactivate+=&lt;FONT color=#0000ff&gt;new&lt;/FONT&gt;&lt;B&gt; System.EventHandler(&lt;/B&gt;&lt;FONT color=#0000ff&gt;this&lt;/FONT&gt;.mydeactivate);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Puis cr&amp;#233;er la m&amp;#233;thode qui sera appel&amp;#233;e lorsque l'&amp;#233;v&amp;#232;nement sera d&amp;#233;clench&amp;#233; :&lt;/P&gt;&lt;FONT color=#0000ff size=5&gt;
&lt;P&gt;&lt;FONT size=2&gt;private&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;B&gt; &lt;/B&gt;&lt;FONT color=#0000ff&gt;void&lt;/FONT&gt;&lt;B&gt; mydeactivate(&lt;/B&gt;&lt;FONT color=#0000ff&gt;object&lt;/FONT&gt;&lt;/FONT&gt;&lt;B&gt;&lt;FONT size=2&gt; sender, System.EventArgs e)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;{&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;/B&gt;&lt;FONT color=#008000&gt;&lt;FONT size=2&gt;//mon code&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;B&gt;
&lt;P&gt;&lt;FONT size=2&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;/B&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;img src ="http://blogs.labo-dotnet.com/patrice/aggbug/5076.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Patrice Lamarche</dc:creator><title>[Astuce] Changer la taille de son code dans VS.net en un clic</title><link>http://blogs.labo-dotnet.com/patrice/archive/2004/11/19/4862.aspx</link><pubDate>Fri, 19 Nov 2004 14:22:00 GMT</pubDate><guid>http://blogs.labo-dotnet.com/patrice/archive/2004/11/19/4862.aspx</guid><wfw:comment>http://blogs.labo-dotnet.com/patrice/comments/4862.aspx</wfw:comment><comments>http://blogs.labo-dotnet.com/patrice/archive/2004/11/19/4862.aspx#Feedback</comments><slash:comments>11</slash:comments><wfw:commentRss>http://blogs.labo-dotnet.com/patrice/comments/commentRss/4862.aspx</wfw:commentRss><trackback:ping>http://blogs.labo-dotnet.com/patrice/services/trackbacks/4862.aspx</trackback:ping><description>&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;IMG height=298 src="/patrice/images/displaybuttons.png" width=377 border=0&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;FONT size=2&gt;Ci-dessous une macro sans pr&amp;#233;tentation&amp;nbsp;mais tr&amp;#232;s pratique si vous faites des pr&amp;#233;sentations ou donnez des cours en faisant des d&amp;#233;mos avec Visual Studio.net. Elle vous permet de r&amp;#233;gler la taille de votre code pour la rendre visible au plus grand nombre. Il ne reste plus qu'a cr&amp;#233;er des boutons pointant vers les proc&amp;#233;dures de la macro et le tour est jou&amp;#233; &lt;a title="" href="" &gt;&lt;img border=0 src="http://messenger.msn.fr/Resource/emoticons/regular_smile.gif"&gt;&lt;/a&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;Imports&lt;/FONT&gt;&lt;FONT size=2&gt; EnvDTE&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;Imports&lt;/FONT&gt;&lt;FONT size=2&gt; System.Diagnostics&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;Public&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Module&lt;/FONT&gt;&lt;FONT size=2&gt; Presentation&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Public&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;FONT size=2&gt; DemoConfig()&lt;/P&gt;
&lt;P&gt;DTE.Properties("FontsAndColors", "TextEditor").Item("FontSize").Value = 16&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Public&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;FONT size=2&gt; WorkingConfig()&lt;/P&gt;
&lt;P&gt;DTE.Properties("FontsAndColors", "TextEditor").Item("FontSize").Value = 10&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Public&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;FONT size=2&gt; Bigger()&lt;/P&gt;
&lt;P&gt;DTE.Properties("FontsAndColors", "TextEditor").Item("FontSize").Value += 1&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Public&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;FONT size=2&gt; Smaller()&lt;/P&gt;
&lt;P&gt;DTE.Properties("FontsAndColors", "TextEditor").Item("FontSize").Value -= 1&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/P&gt;
&lt;P&gt;End&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Module&lt;/P&gt;&lt;/FONT&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src ="http://blogs.labo-dotnet.com/patrice/aggbug/4862.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Patrice Lamarche</dc:creator><title>[Astuce] Insérer automatiquement des smileys dans vos posts sur .Text</title><link>http://blogs.labo-dotnet.com/patrice/archive/2004/04/09/1383.aspx</link><pubDate>Fri, 09 Apr 2004 17:10:00 GMT</pubDate><guid>http://blogs.labo-dotnet.com/patrice/archive/2004/04/09/1383.aspx</guid><wfw:comment>http://blogs.labo-dotnet.com/patrice/comments/1383.aspx</wfw:comment><comments>http://blogs.labo-dotnet.com/patrice/archive/2004/04/09/1383.aspx#Feedback</comments><slash:comments>10</slash:comments><wfw:commentRss>http://blogs.labo-dotnet.com/patrice/comments/commentRss/1383.aspx</wfw:commentRss><trackback:ping>http://blogs.labo-dotnet.com/patrice/services/trackbacks/1383.aspx</trackback:ping><description>&lt;P&gt;Apr&amp;#232;s l'astuce pour customiser vos menus, voici un petit truc tout simple pour ins&amp;#233;rer des smileys dans vos posts. &lt;a title="" href="" &gt;&lt;img border=0 src="http://messenger.msn.fr/Resource/emoticons/regular_smile.gif"&gt;&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Rendez-vous dans la section Options de votre blog et dans la rubrique KeyWords. Saisissez le code de votre smiley (ex: &lt;a title="" href="" &gt;&lt;img border=0 src="http://messenger.msn.fr/Resource/emoticons/regular_smile.gif"&gt;&lt;/a&gt;) dans la zone Word et saisissez un peu d'HTML dans la zone text : &lt;img src=http://messenger.msn.fr/Resource/emoticons/regular_smile.gif border=0&gt;. C'est tout ! .Text vous remplacera automatiquement votre code par un smiley graphique.&lt;/P&gt;
&lt;P&gt;J'en ai mis personnellement 6, et voici ce que la donne dans la section keywords &lt;a title="" href="" &gt;&lt;img src="http://messenger.msn.fr/Resource/emoticons/tongue_smile.gif" border=0&gt;&lt;/a&gt;&lt;/P&gt;
&lt;P align=center&gt;&lt;IMG height=231 src="/patrice/images/smileys.png" width=255 border=0&gt;&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;Pour la liste compl&amp;#232;te de smileys : &lt;A href="http://messenger.msn.fr/Resource/Emoticons.aspx"&gt;http://messenger.msn.fr/Resource/Emoticons.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;@+ Pour d'autres astuces &lt;a title="" href="" &gt;&lt;img src="http://messenger.msn.fr/Resource/emoticons/wink_smile.gif" border=0&gt;&lt;/a&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;&lt;img src ="http://blogs.labo-dotnet.com/patrice/aggbug/1383.aspx" width = "1" height = "1" /&gt;</description></item></channel></rss>