<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://geeks.ms/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Juan Fco. Berrocal -- DotNET y Yo transmitiendo desde GeeKs.Ms : VB.NET, Estilos</title><link>http://geeks.ms/blogs/jberrocal/archive/tags/VB.NET/Estilos/default.aspx</link><description>Etiquetas: VB.NET, Estilos</description><dc:language /><generator>CommunityServer 2008.5 SP1 (Build: 31106.3070)</generator><item><title>Formulario y Controles con estilos XP en VB.NET 2003</title><link>http://geeks.ms/blogs/jberrocal/archive/2007/02/13/formulario-y-controles-con-estilos-xp-en-vb-net-2003.aspx</link><pubDate>Tue, 13 Feb 2007 17:53:00 GMT</pubDate><guid isPermaLink="false">2a2e7ade-7474-448b-9de5-1515d8bb7d1b:10373</guid><dc:creator>Juan Fco. Berrocal</dc:creator><slash:comments>9</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.ms/blogs/jberrocal/rsscomments.aspx?PostID=10373</wfw:commentRss><comments>http://geeks.ms/blogs/jberrocal/archive/2007/02/13/formulario-y-controles-con-estilos-xp-en-vb-net-2003.aspx#comments</comments><description>&lt;P&gt;Este pequeño "tip" hace tiempo que lo publique en otra pagina, pero ahora lo pongo aqui en geeks.ms para el que lo pueda necesitar.&lt;/P&gt;
&lt;P&gt;1. Creamos una WindowsApplication en VB.NET&lt;BR&gt;&lt;BR&gt;Luego creamos este metodo&lt;BR&gt;&lt;BR&gt;&lt;SPAN&gt;Public Shared &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Sub&lt;/SPAN&gt; main()&lt;/SPAN&gt;&lt;BR&gt;&lt;BR&gt;&lt;SPAN&gt;Application.EnabledVisualStyles() &lt;/SPAN&gt;&lt;SPAN&gt;'Aqui activamos los estilos visuales XP '&lt;/SPAN&gt;&lt;BR&gt;ApplicationRun(&lt;SPAN&gt;New &lt;/SPAN&gt;&lt;SPAN&gt;Form1) &lt;/SPAN&gt;&lt;SPAN&gt;'Aqui le indicamos sobre que lo queremos '&lt;/SPAN&gt;&lt;BR&gt;&lt;BR&gt;&lt;SPAN&gt;End Sub &lt;/SPAN&gt;&lt;BR&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Luego localizamos la propiedad de los&amp;nbsp;controles en este caso sea la propiedad &lt;STRONG&gt;FlatStyle &lt;/STRONG&gt;la pondremos que es igual a &lt;STRONG&gt;System&lt;/STRONG&gt;. &lt;/SPAN&gt;Algo que es curioso es que los TextBox no poseen esta propiedad, pero, inmediatamente hacemos el procedimiento e insertamos un TextBox, cuando compilas, adquieren el estilo XP&lt;BR&gt;sin embargo los botones no.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Un Saludo.&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://geeks.ms/aggbug.aspx?PostID=10373" width="1" height="1"&gt;</description><category domain="http://geeks.ms/blogs/jberrocal/archive/tags/VB.NET/default.aspx">VB.NET</category><category domain="http://geeks.ms/blogs/jberrocal/archive/tags/Controles/default.aspx">Controles</category><category domain="http://geeks.ms/blogs/jberrocal/archive/tags/Estilos/default.aspx">Estilos</category><category domain="http://geeks.ms/blogs/jberrocal/archive/tags/Forms/default.aspx">Forms</category><category domain="http://geeks.ms/blogs/jberrocal/archive/tags/VS.NET2003/default.aspx">VS.NET2003</category></item></channel></rss>