<?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>GeoAvila (Geovanny G. Avila) &#187; Visual Basic</title>
	<atom:link href="http://geoavila.com/category/visual-basic/feed/" rel="self" type="application/rss+xml" />
	<link>http://geoavila.com</link>
	<description>Desarrollo.. de software.</description>
	<lastBuildDate>Tue, 27 Apr 2010 23:30:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Nuevo Diseño gracias a @kreativox</title>
		<link>http://geoavila.com/nuevo-diseno-gracias-a-kreativox/</link>
		<comments>http://geoavila.com/nuevo-diseno-gracias-a-kreativox/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 20:13:31 +0000</pubDate>
		<dc:creator>GeoAvila</dc:creator>
				<category><![CDATA[Visual Basic]]></category>

		<guid isPermaLink="false">http://geoavila.com/?p=230</guid>
		<description><![CDATA[


 Un nuevo diseño ha sido implementado en el sitio, y bueno las gracias son para www.kreativox.com.
Todo fue bastante fácil contar con alguien que sabe de tema de la web, tendencias y diseño, gracias a @kreativox por hacerme entrar en su cartera de clientes al haberme ofrecido varios diseños y haber hecho las modificaciones necesarias [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-6058344163325637";
/* 468x15, creado 17/10/08 */
google_ad_slot = "2693427472";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></-> <p>Un nuevo diseño ha sido implementado en el sitio, y bueno las gracias son para<a href="http://kreativox.com/" target="_blank"> www.kreativox.com</a>.</p>
<p>Todo fue bastante fácil contar con alguien que sabe de tema de la web, tendencias y diseño, gracias a @kreativox por hacerme entrar en su cartera de clientes al haberme ofrecido varios diseños y haber hecho las modificaciones necesarias para que el sitio quedara con un buen diseño y también un tanto mi gusto personal.</p>
<p>Así que no me queda más que recomendar a <a href="http://kreativox.com/" target="_blank">www.kreativox.com</a>, para el diseño de tu sitio web, ya sea personal empresarial y demas.</p>
<p>Nos vemos.</p>
]]></content:encoded>
			<wfw:commentRss>http://geoavila.com/nuevo-diseno-gracias-a-kreativox/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Listar Servicios de Windows con .Net</title>
		<link>http://geoavila.com/listar-servicios-de-windows-con-net/</link>
		<comments>http://geoavila.com/listar-servicios-de-windows-con-net/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 22:26:00 +0000</pubDate>
		<dc:creator>GeoAvila</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Visual Basic]]></category>
		<category><![CDATA[Saber servicios de windows]]></category>
		<category><![CDATA[Servicios de Windows .net]]></category>

		<guid isPermaLink="false">http://geoavila.com/2009/08/14/listar-servicios-de-windows-con-net/</guid>
		<description><![CDATA[


 Bueno una función que nos puede ayudar en determinado momento es listar los servicios activos de Windows un ejemplo sencillo de como hacerlo es hacer usando System.Serviceprocess (NO olvides agregarlo como referencia al proyecto):
PLAIN TEXT
VB.NET:




Imports System


Imports System.ServiceProcess


&#160;


Class Program


Private Shared Sub Main&#40;&#41;


Dim services As ServiceController&#40;&#41; = ServiceController.GetServices&#40;&#41;


&#160;


Console.WriteLine&#40;"Listado de los servicios corriendo : "&#41;


For Each service [...]]]></description>
			<content:encoded><![CDATA[<p>Bueno una función que nos puede ayudar en determinado momento es listar los servicios activos de Windows un ejemplo sencillo de como hacerlo es hacer usando System.Serviceprocess (NO olvides agregarlo como referencia al proyecto):</p>
<div class="igBar"><span id="lvbnet-3"><a href="#" onclick="javascript:showPlainTxt('vbnet-3'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">VB.NET:</span>
<div id="vbnet-3">
<div class="vbnet">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">Imports</span> System</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">Imports</span> System.<span style="color: #0000FF;">ServiceProcess</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">Class</span> Program</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #FF8000;">Private</span> Shared <span style="color: #0600FF;">Sub</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">Dim</span> services <span style="color: #FF8000;">As</span> ServiceController<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> = ServiceController.<span style="color: #0000FF;">GetServices</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Console.<span style="color: #0000FF;">WriteLine</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"Listado de los servicios corriendo : "</span><span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #FF8000;">For</span> <span style="color: #0600FF;">Each</span> service <span style="color: #FF8000;">As</span> ServiceController In services</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">If</span> service.<span style="color: #0000FF;">Status</span> = ServiceControllerStatus.<span style="color: #0000FF;">Running</span> <span style="color: #FF8000;">Then</span> <span style="color: #008080; font-style: italic;">'cambiar por ServiceControllerStatus.Stopped para ver inactivos</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Console.<span style="color: #0000FF;">WriteLine</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Console.<span style="color: #0000FF;">WriteLine</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">" Nombre de servicio: {0}"</span>, service.<span style="color: #0000FF;">ServiceName</span><span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Console.<span style="color: #0000FF;">WriteLine</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">" Nombre mostrado: {0}"</span>, service.<span style="color: #0000FF;">DisplayName</span><span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">End</span> <span style="color: #0600FF;">If</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #FF8000;">Next</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Sub</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Class</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
y en c# sería así.</p>
<div class="igBar"><span id="lcsharp-4"><a href="#" onclick="javascript:showPlainTxt('csharp-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">C#:</span>
<div id="csharp-4">
<div class="csharp">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">using</span> <span style="color: #000000;">System</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">using</span> <span style="color: #000000;">System</span>.<span style="color: #0000FF;">ServiceProcess</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #FF0000;">class</span> Program</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">static</span> <span style="color: #0600FF;">void</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ServiceController<span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> services = ServiceController.<span style="color: #0000FF;">GetServices</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Console.<span style="color: #0000FF;">WriteLine</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"Listado de los servicios corriendo : "</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">foreach</span> <span style="color: #000000;">&#40;</span>ServiceController service <span style="color: #0600FF;">in</span> services<span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>service.<span style="color: #0000FF;">Status</span> == ServiceControllerStatus.<span style="color: #0000FF;">Running</span><span style="color: #000000;">&#41;</span> <span style="color: #008080; font-style: italic;">//cambiar por ServiceControllerStatus.Stopped para ver inactivos</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Console.<span style="color: #0000FF;">WriteLine</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Console.<span style="color: #0000FF;">WriteLine</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">" Nombre de servicio: {0}"</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">service.<span style="color: #0000FF;">ServiceName</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Console.<span style="color: #0000FF;">WriteLine</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">" Nombre mostrado: {0}"</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">service.<span style="color: #0000FF;">DisplayName</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>para saber los procesos que están inactivos usamos la siguiente propiedad.<br />
ServiceControllerStatus.Stopped.</p>
<p>un buen truco espero les sirva.</p>
]]></content:encoded>
			<wfw:commentRss>http://geoavila.com/listar-servicios-de-windows-con-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Test de HD para Video Manual</title>
		<link>http://geoavila.com/test-de-hd-para-video-manual/</link>
		<comments>http://geoavila.com/test-de-hd-para-video-manual/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 21:45:26 +0000</pubDate>
		<dc:creator>GeoAvila</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Mono .NET]]></category>
		<category><![CDATA[Visual Basic]]></category>
		<category><![CDATA[Visual Basic .NET]]></category>

		<guid isPermaLink="false">http://geoavila.com/?p=153</guid>
		<description><![CDATA[Bueno estando en un café libre, pregunté si me podían echar una mano con la compresión de video, para el manual, y bueno he aquí la demo de lo mejor que he conseguido gracias a rodrigo polo, espero que se vea bien en la mayoría de los clientes.
Saludos
(Video: Watch this video on the post page)
Espero [...]]]></description>
			<content:encoded><![CDATA[<p>Bueno estando en un café libre, pregunté si me podían echar una mano con la compresión de video, para el manual, y bueno he aquí la demo de lo mejor que he conseguido gracias a <a href="http://www.rodrigopolo.com/" target="_blank">rodrigo polo</a>, espero que se vea bien en la mayoría de los clientes.</p>
<p>Saludos</p>
<p>(Video: Watch this video on the post page)</p>
<p>Espero sus comentarios, Gracias por la opinión.</p>
<p>Saludos</p>
<p>P.D. presiona el botón HD del plugin para ver el alta de definición</p>
]]></content:encoded>
			<wfw:commentRss>http://geoavila.com/test-de-hd-para-video-manual/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mono .NET 2.2 ha sido liberado</title>
		<link>http://geoavila.com/mono-net-ha-sido-liberado/</link>
		<comments>http://geoavila.com/mono-net-ha-sido-liberado/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 04:29:21 +0000</pubDate>
		<dc:creator>GeoAvila</dc:creator>
				<category><![CDATA[Visual Basic]]></category>
		<category><![CDATA[mono .net 2.2]]></category>

		<guid isPermaLink="false">http://geoavila.com/?p=134</guid>
		<description><![CDATA[Bueno desde hace rato esta en versión beta y ahora han liberado la versión release, y con esta soporta el C# 3, y bueno como tenemos pendiente por allí lo del manual de C#, lo usaremos para poder probarlo, así que acá les dejo el link de descarga http://www.go-mono.com/mono-downloads/.
 
Nos vemos pronto en el manual de C#
]]></description>
			<content:encoded><![CDATA[<p>Bueno desde hace rato esta en versión beta y ahora han liberado la versión release, y con esta soporta el C# 3, y bueno como tenemos pendiente por allí lo del manual de C#, lo usaremos para poder probarlo, así que acá les dejo el link de descarga <a href="http://www.go-mono.com/mono-downloads/">http://www.go-mono.com/mono-downloads/</a>.</p>
<p> </p>
<p>Nos vemos pronto en el manual de C#</p>
]]></content:encoded>
			<wfw:commentRss>http://geoavila.com/mono-net-ha-sido-liberado/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual Studio 2010 Wow..!!!</title>
		<link>http://geoavila.com/visual-studio-2010-wow/</link>
		<comments>http://geoavila.com/visual-studio-2010-wow/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 17:01:53 +0000</pubDate>
		<dc:creator>GeoAvila</dc:creator>
				<category><![CDATA[Visual Basic]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>

		<guid isPermaLink="false">http://geoavila.com/2008/10/21/visual-studio-2010-wow/</guid>
		<description><![CDATA[Se ve venir el Visual Studio 2010, la verdad es que aún no he probado de lleno el 2008 y veo venir ya el 2010, según el estudio dice que únicamente el 20% de código en la mayoría de las aplicaciones es nuevo, algo que es bastante interesante puesto, que no me había puesto a [...]]]></description>
			<content:encoded><![CDATA[<p>Se ve venir el Visual Studio 2010, la verdad es que aún no he probado de lleno el 2008 y veo venir ya el 2010, según el estudio dice que únicamente el 20% de código en la mayoría de las aplicaciones es nuevo, algo que es bastante interesante puesto, que no me había puesto a pensar eso, y también se menciona la que ha mejorado en Ajax UI, también tendremos que darle una vista a esto y algo que ayudará bastante al desarrollo, que hay 22 controles dentro del desarrollo de Ajax, espero lo disfruten.</p>
<p>les dejo un pantallazo.</p>
<p><a href="http://geoavila.com/wp-content/archivos/2008/10/fullui.png" rel="shadowbox"><img src="http://geoavila.com/wp-content/archivos/2008/10/fullui.png" alt="" width="420" height="274" /></a></p>
<p>nota en <a href="http://blogs.msdn.com/somasegar/archive/2008/10/06/visual-studio-team-system-2010.aspx">inglés</a></p>
<p>nos vemos</p>
]]></content:encoded>
			<wfw:commentRss>http://geoavila.com/visual-studio-2010-wow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Saber si un Proceso esta Ejecutandose desde Visual Basic 6</title>
		<link>http://geoavila.com/saber-si-un-proceso-esta-ejecutandose-desde-visual-basic-6/</link>
		<comments>http://geoavila.com/saber-si-un-proceso-esta-ejecutandose-desde-visual-basic-6/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 14:54:59 +0000</pubDate>
		<dc:creator>seba123neo</dc:creator>
				<category><![CDATA[Visual Basic]]></category>
		<category><![CDATA[Proceso  Ejecutandose Visual Basic 6]]></category>

		<guid isPermaLink="false">http://geoavila.com/?p=99</guid>
		<description><![CDATA[Hola,bueno este codigo lo que hace es chequear si un proceso esta corriendo o no,usa una funcion que retorna un valor Boolean(verdadero o falso) segun se detecte si se esta ejecutandose...en este caso al apretar un boton chequea como proceso la calculadora de windows cuyo nombre de proceso es CALC.EXE, ustedes reemplazenlo por el que [...]]]></description>
			<content:encoded><![CDATA[<p>Hola,bueno este codigo lo que hace es chequear si un proceso esta corriendo o no,usa una funcion que retorna un valor <strong>Boolean</strong>(verdadero o falso) segun se detecte si se esta ejecutandose...en este caso al apretar un boton chequea como proceso la calculadora de windows cuyo nombre de proceso es <strong>CALC.EXE,</strong> ustedes reemplazenlo por el que quieran saber...</p>
<div class="igBar"><span id="lvb-6"><a href="#" onclick="javascript:showPlainTxt('vb-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Visual Basic:</span>
<div id="vb-6">
<div class="vb">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Option</span> <span style="color: #b1b100;">Explicit</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Declare</span> <span style="color: #b1b100;">Function</span> OpenProcess Lib <span style="color: #ff0000;">"kernel32"</span> <span style="color:#006600; font-weight:bold;">&#40;</span>ByVal dwDesiredAccess <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span>, ByVal bInheritHandle <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span>, ByVal dwProcessId <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Declare</span> <span style="color: #b1b100;">Function</span> CloseHandle Lib <span style="color: #ff0000;">"kernel32"</span> <span style="color:#006600; font-weight:bold;">&#40;</span>ByVal hObject <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Declare</span> <span style="color: #b1b100;">Function</span> EnumProcesses Lib <span style="color: #ff0000;">"PSAPI.DLL"</span> <span style="color:#006600; font-weight:bold;">&#40;</span>lpidProcess <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span>, ByVal cb <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span>, cbNeeded <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Declare</span> <span style="color: #b1b100;">Function</span> EnumProcessModules Lib <span style="color: #ff0000;">"PSAPI.DLL"</span> <span style="color:#006600; font-weight:bold;">&#40;</span>ByVal hProcess <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span>, lphModule <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span>, ByVal cb <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span>, lpcbNeeded <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Declare</span> <span style="color: #b1b100;">Function</span> GetModuleBaseName Lib <span style="color: #ff0000;">"PSAPI.DLL"</span> Alias <span style="color: #ff0000;">"GetModuleBaseNameA"</span> <span style="color:#006600; font-weight:bold;">&#40;</span>ByVal hProcess <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span>, ByVal hModule <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span>, ByVal lpFileName <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span>, ByVal nSize <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Const</span> PROCESS_VM_READ = &amp;H10</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Const</span> PROCESS_QUERY_INFORMATION = &amp;H400</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Function</span> EstaCorriendo<span style="color:#006600; font-weight:bold;">&#40;</span>ByVal NombreDelProceso <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Boolean</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Const</span> MAX_PATH <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span> = <span style="color: #cc66cc;color:#800000;">260</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Dim</span> lProcesses<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span>, lModules<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span>, N <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span>, lRet <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span>, hProcess <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Dim</span> sName <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">NombreDelProceso = <span style="color: #b1b100;">UCase</span>$<span style="color:#006600; font-weight:bold;">&#40;</span>NombreDelProceso<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">ReDim</span> lProcesses<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">1023</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">If</span> EnumProcesses<span style="color:#006600; font-weight:bold;">&#40;</span>lProcesses<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">0</span><span style="color:#006600; font-weight:bold;">&#41;</span>, <span style="color: #cc66cc;color:#800000;">1024</span> * <span style="color: #cc66cc;color:#800000;">4</span>, lRet<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">Then</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">For</span> N = <span style="color: #cc66cc;color:#800000;">0</span> <span style="color: #b1b100;">To</span> <span style="color:#006600; font-weight:bold;">&#40;</span>lRet \ <span style="color: #cc66cc;color:#800000;">4</span><span style="color:#006600; font-weight:bold;">&#41;</span> - <span style="color: #cc66cc;color:#800000;">1</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">hProcess = OpenProcess<span style="color:#006600; font-weight:bold;">&#40;</span>PROCESS_QUERY_INFORMATION <span style="color: #b1b100;">Or</span> PROCESS_VM_READ, <span style="color: #cc66cc;color:#800000;">0</span>, lProcesses<span style="color:#006600; font-weight:bold;">&#40;</span>N<span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">If</span> hProcess <span style="color: #b1b100;">Then</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">ReDim</span> lModules<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">1023</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">If</span> EnumProcessModules<span style="color:#006600; font-weight:bold;">&#40;</span>hProcess, lModules<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">0</span><span style="color:#006600; font-weight:bold;">&#41;</span>, <span style="color: #cc66cc;color:#800000;">1024</span> * <span style="color: #cc66cc;color:#800000;">4</span>, lRet<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">Then</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sName = <span style="color: #b1b100;">String</span>$<span style="color:#006600; font-weight:bold;">&#40;</span>MAX_PATH, <span style="color: #b1b100;">vbNullChar</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">GetModuleBaseName hProcess, lModules<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">0</span><span style="color:#006600; font-weight:bold;">&#41;</span>, sName, MAX_PATH</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sName = <span style="color: #b1b100;">Left</span>$<span style="color:#006600; font-weight:bold;">&#40;</span>sName, <span style="color: #b1b100;">InStr</span><span style="color:#006600; font-weight:bold;">&#40;</span>sName, <span style="color: #b1b100;">vbNullChar</span><span style="color:#006600; font-weight:bold;">&#41;</span> - <span style="color: #cc66cc;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">If</span> <span style="color: #b1b100;">Len</span><span style="color:#006600; font-weight:bold;">&#40;</span>sName<span style="color:#006600; font-weight:bold;">&#41;</span> = <span style="color: #b1b100;">Len</span><span style="color:#006600; font-weight:bold;">&#40;</span>NombreDelProceso<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">Then</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">If</span> NombreDelProceso = <span style="color: #b1b100;">UCase</span>$<span style="color:#006600; font-weight:bold;">&#40;</span>sName<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">Then</span> EstaCorriendo = <span style="color: #b1b100;">True</span>: <span style="color: #b1b100;">Exit</span> <span style="color: #b1b100;">Function</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">CloseHandle hProcess</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Next</span> N</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Function</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Sub</span> Command1_Click<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">MsgBox</span> EstaCorriendo<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #ff0000;">"calc.exe"</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Sub</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><span style="#b1b100;"><span style="#000000;">saludos.</span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://geoavila.com/saber-si-un-proceso-esta-ejecutandose-desde-visual-basic-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cerrar Formulario con Efecto en VB6</title>
		<link>http://geoavila.com/cerrar-formulario-con-efecto-en-vb6/</link>
		<comments>http://geoavila.com/cerrar-formulario-con-efecto-en-vb6/#comments</comments>
		<pubDate>Tue, 03 Jul 2007 06:44:25 +0000</pubDate>
		<dc:creator>seba123neo</dc:creator>
				<category><![CDATA[Visual Basic]]></category>

		<guid isPermaLink="false">http://geoavila.com/?p=71</guid>
		<description><![CDATA[Este codigo es un ejemplo de como hacer para cerrar un formualrio con efecto de transparencia,a medida que se va cerrando se va haciendo mas trasparente hasta que se hace transparente por completo y es ahi donde se cierra.solo se necesita un control Timer en el formulario.el codigo se puede modificar a gusto para lograr [...]]]></description>
			<content:encoded><![CDATA[<p>Este codigo es un ejemplo de como hacer para cerrar un formualrio con efecto de transparencia,a medida que se va cerrando se va haciendo mas trasparente hasta que se hace transparente por completo y es ahi donde se cierra.solo se necesita un control <strong>Timer </strong>en el formulario.el codigo se puede modificar a gusto para lograr hacer el efecto cuando sea necesario.</p>
<p><strong>En el Formulario pone: </strong></p>
<div class="igBar"><span id="lvb-8"><a href="#" onclick="javascript:showPlainTxt('vb-8'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Visual Basic:</span>
<div id="vb-8">
<div class="vb">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Option</span> <span style="color: #b1b100;">Explicit</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Dim</span> Trans <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Integer</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Const</span> LWA_COLORKEY = <span style="color: #cc66cc;color:#800000;">1</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Const</span> LWA_ALPHA = <span style="color: #cc66cc;color:#800000;">2</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Const</span> LWA_BOTH = <span style="color: #cc66cc;color:#800000;">3</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Const</span> WS_EX_LAYERED = &amp;H80000</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Const</span> GWL_EXSTYLE = -<span style="color: #cc66cc;color:#800000;">20</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Declare</span> <span style="color: #b1b100;">Function</span> SetLayeredWindowAttributes Lib <span style="color: #ff0000;">"user32"</span> _</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#40;</span>ByVal hwnd <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span>, ByVal color <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span>, ByVal x <span style="color: #b1b100;">As</span> Byte, _</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ByVal alpha <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Boolean</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Declare</span> <span style="color: #b1b100;">Function</span> SetWindowLong Lib <span style="color: #ff0000;">"user32"</span> Alias _</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">"SetWindowLongA"</span> <span style="color:#006600; font-weight:bold;">&#40;</span>ByVal hwnd <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span>, ByVal nIndex <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span>, _</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ByVal dwNewLong <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Declare</span> <span style="color: #b1b100;">Function</span> GetWindowLong Lib <span style="color: #ff0000;">"user32"</span> Alias _</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">"GetWindowLongA"</span> <span style="color:#006600; font-weight:bold;">&#40;</span>ByVal hwnd <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span>, ByVal nIndex <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Sub</span> SetTrans<span style="color:#006600; font-weight:bold;">&#40;</span>hwnd <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span>, Trans <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Integer</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Dim</span> Tcall <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Tcall = GetWindowLong<span style="color:#006600; font-weight:bold;">&#40;</span>hwnd, GWL_EXSTYLE<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">SetWindowLong hwnd, GWL_EXSTYLE, Tcall <span style="color: #b1b100;">Or</span> WS_EX_LAYERED</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">SetLayeredWindowAttributes hwnd, <span style="color: #b1b100;">RGB</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">255</span>, <span style="color: #cc66cc;color:#800000;">255</span>, <span style="color: #cc66cc;color:#800000;">0</span><span style="color:#006600; font-weight:bold;">&#41;</span>, Trans, LWA_ALPHA</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Exit</span> <span style="color: #b1b100;">Sub</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Sub</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Sub</span> Form_Load<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Form1.<span style="color: #66cc66;">Show</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Form1.<span style="color: #66cc66;">Enabled</span> = <span style="color: #b1b100;">False</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Timer1.<span style="color: #66cc66;">Interval</span> = <span style="color: #cc66cc;color:#800000;">1</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Trans = <span style="color: #cc66cc;color:#800000;">255</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">SetTrans <span style="color: #b1b100;">Me</span>.<span style="color: #66cc66;">hwnd</span>, Trans</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Sub</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Sub</span> Timer1_Timer<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">If</span> Trans &lt;&gt; <span style="color: #cc66cc;color:#800000;">0</span> <span style="color: #b1b100;">Then</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Trans = Trans - <span style="color: #cc66cc;color:#800000;">1</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">SetTrans <span style="color: #b1b100;">Me</span>.<span style="color: #66cc66;">hwnd</span>, Trans</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">If</span> Trans = <span style="color: #cc66cc;color:#800000;">0</span> <span style="color: #b1b100;">Then</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Form1.<span style="color: #66cc66;">Enabled</span> = <span style="color: #b1b100;">True</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Unload</span> <span style="color: #b1b100;">Me</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Sub</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://geoavila.com/cerrar-formulario-con-efecto-en-vb6/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Activar el Salvapantallas desde VB6</title>
		<link>http://geoavila.com/activar-el-salvapantallas-desde-vb6/</link>
		<comments>http://geoavila.com/activar-el-salvapantallas-desde-vb6/#comments</comments>
		<pubDate>Thu, 21 Jun 2007 02:49:06 +0000</pubDate>
		<dc:creator>seba123neo</dc:creator>
				<category><![CDATA[Visual Basic]]></category>

		<guid isPermaLink="false">http://geoavila.com/?p=70</guid>
		<description><![CDATA[Este codigo permite activar el salvapantallas que tengamos como predeterminado.Solo se necesita un Boton en el Formulario para probar el ejemplo.
En el Formulario Pone: 
PLAIN TEXT
Visual Basic:




Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" _


&#40;ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, _


ByVal lParam As Long&#41; As Long


&#160;


Private Const WM_SYSCOMMAND = &#38;H112&#38;


Private [...]]]></description>
			<content:encoded><![CDATA[<p>Este codigo permite activar el salvapantallas que tengamos como predeterminado.Solo se necesita un Boton en el Formulario para probar el ejemplo.</p>
<p><strong>En el Formulario Pone: </strong></p>
<div class="igBar"><span id="lvb-10"><a href="#" onclick="javascript:showPlainTxt('vb-10'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Visual Basic:</span>
<div id="vb-10">
<div class="vb">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Declare</span> <span style="color: #b1b100;">Function</span> SendMessage Lib <span style="color: #ff0000;">"user32"</span> Alias <span style="color: #ff0000;">"SendMessageA"</span> _</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#40;</span>ByVal hWnd <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span>, ByVal wMsg <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span>, ByVal wParam <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span>, _</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ByVal lParam <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Const</span> WM_SYSCOMMAND = &amp;H112&amp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Const</span> SC_SCREENSAVE = &amp;HF140&amp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Sub</span> Command1_Click<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Dim</span> Ret <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Ret = SendMessage<span style="color:#006600; font-weight:bold;">&#40;</span>Form1.<span style="color: #66cc66;">hWnd</span>, WM_SYSCOMMAND, SC_SCREENSAVE, <span style="color: #cc66cc;color:#800000;">0</span>&amp;<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Sub</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://geoavila.com/activar-el-salvapantallas-desde-vb6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Redimensionar Controles en tiempo de ejecucion con VB6</title>
		<link>http://geoavila.com/redimensionar-controles-en-tiempo-de-ejecucion-con-vb6/</link>
		<comments>http://geoavila.com/redimensionar-controles-en-tiempo-de-ejecucion-con-vb6/#comments</comments>
		<pubDate>Wed, 20 Jun 2007 18:34:27 +0000</pubDate>
		<dc:creator>seba123neo</dc:creator>
				<category><![CDATA[Visual Basic]]></category>

		<guid isPermaLink="false">http://geoavila.com/?p=69</guid>
		<description><![CDATA[Este codigo permite redimensionar controles cuando la aplicacion este ejecutandose.Solo los controles que tengan la funcion Hwnd podran usar esta funcion.Para probar el ejemplo solo necesitas un PictureBox.
En el Formulario pone: 
PLAIN TEXT
Visual Basic:




Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" &#40;ByVal hWnd As Long, ByVal nIndex As Long&#41; As Long


&#160;


Private Declare Function SetWindowLong Lib [...]]]></description>
			<content:encoded><![CDATA[<p>Este codigo permite redimensionar controles cuando la aplicacion este ejecutandose.Solo los controles que tengan la funcion <strong>Hwnd </strong>podran usar esta funcion.Para probar el ejemplo solo necesitas un PictureBox.</p>
<p><strong>En el Formulario pone: </strong></p>
<div class="igBar"><span id="lvb-12"><a href="#" onclick="javascript:showPlainTxt('vb-12'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Visual Basic:</span>
<div id="vb-12">
<div class="vb">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Declare</span> <span style="color: #b1b100;">Function</span> GetWindowLong Lib <span style="color: #ff0000;">"user32"</span> Alias <span style="color: #ff0000;">"GetWindowLongA"</span> <span style="color:#006600; font-weight:bold;">&#40;</span>ByVal hWnd <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span>, ByVal nIndex <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Declare</span> <span style="color: #b1b100;">Function</span> SetWindowLong Lib <span style="color: #ff0000;">"user32"</span> Alias <span style="color: #ff0000;">"SetWindowLongA"</span> <span style="color:#006600; font-weight:bold;">&#40;</span>ByVal hWnd <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span>, ByVal nIndex <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span>, ByVal dwNewLong <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Declare</span> <span style="color: #b1b100;">Function</span> SetWindowPos Lib <span style="color: #ff0000;">"user32"</span> <span style="color:#006600; font-weight:bold;">&#40;</span>ByVal hWnd <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span>, ByVal hWndInsertAfter <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span>, ByVal X <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span>, ByVal Y <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span>, ByVal cX <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span>, ByVal cY <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span>, ByVal wFlags <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Const</span> GWL_STYLE = <span style="color:#006600; font-weight:bold;">&#40;</span>-<span style="color: #cc66cc;color:#800000;">16</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Const</span> WS_THICKFRAME = &amp;H40000</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Const</span> WS_CHILD = &amp;H40000000</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Const</span> SWP_DRAWFRAME = &amp;H20</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Const</span> SWP_NOMOVE = &amp;H2</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Const</span> SWP_NOSIZE = &amp;H1</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Const</span> SWP_NOZORDER = &amp;H4</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Sub</span> dimensionar<span style="color:#006600; font-weight:bold;">&#40;</span>ByVal elControl <span style="color: #b1b100;">As</span> Control<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Dim</span> Style <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">On</span> Local <span style="color: #b1b100;">Error</span> <span style="color: #b1b100;">Resume</span> <span style="color: #b1b100;">Next</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Style = GetWindowLong<span style="color:#006600; font-weight:bold;">&#40;</span>elControl.<span style="color: #66cc66;">hWnd</span>, GWL_STYLE<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Style = Style <span style="color: #b1b100;">Or</span> WS_THICKFRAME</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Style = SetWindowLong<span style="color:#006600; font-weight:bold;">&#40;</span>elControl.<span style="color: #66cc66;">hWnd</span>, GWL_STYLE, Style<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Style = SetWindowPos<span style="color:#006600; font-weight:bold;">&#40;</span>elControl.<span style="color: #66cc66;">hWnd</span>, <span style="color: #b1b100;">Me</span>.<span style="color: #66cc66;">hWnd</span>, <span style="color: #cc66cc;color:#800000;">0</span>, <span style="color: #cc66cc;color:#800000;">0</span>, <span style="color: #cc66cc;color:#800000;">0</span>, <span style="color: #cc66cc;color:#800000;">0</span>, SWP_NOZORDER <span style="color: #b1b100;">Or</span> SWP_NOSIZE <span style="color: #b1b100;">Or</span> SWP_NOMOVE <span style="color: #b1b100;">Or</span> SWP_DRAWFRAME<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Err</span> = <span style="color: #cc66cc;color:#800000;">0</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">On</span> Local <span style="color: #b1b100;">Error</span> <span style="color: #b1b100;">GoTo</span> <span style="color: #cc66cc;color:#800000;">0</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Sub</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Sub</span> Form_Load<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">dimensionar Picture1</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Sub</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://geoavila.com/redimensionar-controles-en-tiempo-de-ejecucion-con-vb6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Efecto Degrade en Formulario con VB6</title>
		<link>http://geoavila.com/efecto-degrade-en-formulario-con-vb6/</link>
		<comments>http://geoavila.com/efecto-degrade-en-formulario-con-vb6/#comments</comments>
		<pubDate>Wed, 20 Jun 2007 18:02:41 +0000</pubDate>
		<dc:creator>seba123neo</dc:creator>
				<category><![CDATA[Visual Basic]]></category>

		<guid isPermaLink="false">http://geoavila.com/?p=68</guid>
		<description><![CDATA[Este codigo permite hacer un efecto degradado de 2 colores en el Fondo del formulario.Podes modificar los valores RGB y asi obtener la combinacion de colores deseada.El codigo se escribe en el evento Resize del Formulario para que al redimensionar el formulario el efecto se aplique a todas las areas,ya que si se pone en [...]]]></description>
			<content:encoded><![CDATA[<p>Este codigo permite hacer un efecto degradado de 2 colores en el Fondo del formulario.Podes modificar los valores <strong>RGB </strong>y asi obtener la combinacion de colores deseada.El codigo se escribe en el evento <strong>Resize</strong> del Formulario para que al redimensionar el formulario el efecto se aplique a todas las areas,ya que si se pone en el evento paint este al redimensionarlo no se aplica,a no ser que se empieze la aplicacion con el formulario totalmente maximizado.</p>
<p><strong>En el Evento Resize del Form pone: </strong></p>
<div class="igBar"><span id="lvb-14"><a href="#" onclick="javascript:showPlainTxt('vb-14'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Visual Basic:</span>
<div id="vb-14">
<div class="vb">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Sub</span> Form_Paint<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Form1.<span style="color: #66cc66;">Cls</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Form1.<span style="color: #66cc66;">AutoRedraw</span> = <span style="color: #b1b100;">True</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Form1.<span style="color: #66cc66;">DrawStyle</span> = <span style="color: #cc66cc;color:#800000;">6</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Form1.<span style="color: #66cc66;">DrawMode</span> = <span style="color: #cc66cc;color:#800000;">13</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Form1.<span style="color: #66cc66;">DrawWidth</span> = <span style="color: #cc66cc;color:#800000;">2</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Form1.<span style="color: #66cc66;">ScaleMode</span> = <span style="color: #cc66cc;color:#800000;">3</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Form1.<span style="color: #66cc66;">ScaleHeight</span> = <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">256</span> * <span style="color: #cc66cc;color:#800000;">2</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">For</span> I = <span style="color: #cc66cc;color:#800000;">0</span> <span style="color: #b1b100;">To</span> <span style="color: #cc66cc;color:#800000;">255</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Form1.<span style="color: #b1b100;">Line</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">0</span>, Y<span style="color:#006600; font-weight:bold;">&#41;</span>-<span style="color:#006600; font-weight:bold;">&#40;</span>Form1.<span style="color: #b1b100;">Width</span>, Y + <span style="color: #cc66cc;color:#800000;">2</span><span style="color:#006600; font-weight:bold;">&#41;</span>, <span style="color: #b1b100;">RGB</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">0</span>, <span style="color: #cc66cc;color:#800000;">250</span>, I<span style="color:#006600; font-weight:bold;">&#41;</span>, BF</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Y = Y + <span style="color: #cc66cc;color:#800000;">2</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Next</span> I</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Sub</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://geoavila.com/efecto-degrade-en-formulario-con-vb6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
