<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://editthis.info/skins/common/feed.css?207"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Visual Basic - Revision history</title>
		<link>http://editthis.info/mesdoc/?title=Visual_Basic&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.15.1</generator>
		<lastBuildDate>Wed, 15 Jul 2026 15:21:56 GMT</lastBuildDate>
		<item>
			<title>81.80.101.92 at 14:41, 29 June 2006</title>
			<link>http://editthis.info/mesdoc/?title=Visual_Basic&amp;diff=1442&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;http://editthis.info/mesdoc/?title=Visual_Basic&amp;amp;diff=1442&amp;amp;oldid=1441&quot;&gt;Show changes&lt;/a&gt;</description>
			<pubDate>Thu, 29 Jun 2006 14:41:53 GMT</pubDate>			<dc:creator>81.80.101.92</dc:creator>			<comments>http://editthis.info/mesdoc/Talk:Visual_Basic</comments>		</item>
		<item>
			<title>81.80.101.92 at 14:38, 29 June 2006</title>
			<link>http://editthis.info/mesdoc/?title=Visual_Basic&amp;diff=1441&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;http://editthis.info/mesdoc/?title=Visual_Basic&amp;amp;diff=1441&amp;amp;oldid=1440&quot;&gt;Show changes&lt;/a&gt;</description>
			<pubDate>Thu, 29 Jun 2006 14:38:10 GMT</pubDate>			<dc:creator>81.80.101.92</dc:creator>			<comments>http://editthis.info/mesdoc/Talk:Visual_Basic</comments>		</item>
		<item>
			<title>81.80.101.92 at 12:32, 29 June 2006</title>
			<link>http://editthis.info/mesdoc/?title=Visual_Basic&amp;diff=1440&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Comment contrôler les caractères qui peuvent être saisis dans un textbox ?==&lt;br /&gt;
&lt;br /&gt;
auteur : Romain Puyfoulhoux&lt;br /&gt;
Une solution consiste à utiliser l'évènement KeyPress, qui a lieu lorsqu'une touche correspondant à un caractère est enfoncée. Les touches comme shift, alt, control et F1 à F12 ne sont pas concernées. La procédure de cet évènement a un argument, KeyAscii, qui est le code du caractère à afficher. Modifiez sa valeur pour afficher le caractère que vous voulez. Donnez-lui une valeur nulle si aucun caractère ne doit être affiché. La fonction chr() renvoie le caractère dont le code est passé en paramètre.&lt;br /&gt;
&lt;br /&gt;
L'exemple suivant interdit tout caractère autre que les chiffres et la touche d'effacement :&lt;br /&gt;
&lt;br /&gt;
vb&lt;br /&gt;
&lt;br /&gt;
 Private Sub Text1_KeyPress(KeyAscii As Integer)&lt;br /&gt;
 If KeyAscii &amp;lt;&amp;gt; 8 Then&lt;br /&gt;
 If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0&lt;br /&gt;
 End If&lt;br /&gt;
 End Sub&lt;br /&gt;
&lt;br /&gt;
Une astuce souvent utilisée consiste à rechercher le caractère entré, dans une chaîne contenant tous les caractères autorisés. Si ce caractère n'est pas dans la chaîne, rien n'est affiché :&lt;br /&gt;
&lt;br /&gt;
vb&lt;br /&gt;
&lt;br /&gt;
 Private Sub Text1_KeyPress(KeyAscii As Integer)&lt;br /&gt;
 Dim allowedKeys As String&lt;br /&gt;
 allowedKeys = &amp;quot;0123456789-,.&amp;quot; &amp;amp; Chr(8)&lt;br /&gt;
 If InStr(allowedKeys, Chr(KeyAscii)) = 0 Then KeyAscii = 0&lt;br /&gt;
 End Sub&lt;/div&gt;</description>
			<pubDate>Thu, 29 Jun 2006 12:32:14 GMT</pubDate>			<dc:creator>81.80.101.92</dc:creator>			<comments>http://editthis.info/mesdoc/Talk:Visual_Basic</comments>		</item>
	</channel>
</rss>