<?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 .NET</title>
	<atom:link href="http://geoavila.com/category/visual-basic-net/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>Impedir que un form se cierre csharp,vb.net</title>
		<link>http://geoavila.com/impedir-que-un-form-se-cierre-csharpvb-net/</link>
		<comments>http://geoavila.com/impedir-que-un-form-se-cierre-csharpvb-net/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 22:42:32 +0000</pubDate>
		<dc:creator>GeoAvila</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Visual Basic .NET]]></category>
		<category><![CDATA[Form Closing]]></category>
		<category><![CDATA[FormClosing]]></category>
		<category><![CDATA[Impedir cierre form .net]]></category>
		<category><![CDATA[Impedir que form se cierre .net]]></category>

		<guid isPermaLink="false">http://geoavila.com/?p=202</guid>
		<description><![CDATA[


 A continuación, este código te ayudará para evitar que un formularion se cierre sin previa validación, para esto usamos la evento FormClosing de los formulacion de Windows Forms.
En Visual Basic .Net es de esta manera
PLAIN TEXT
VB.NET:




Private Sub forma_FormClosing&#40;ByVal sender As Object, ByVal e As FormClosingEventArgs&#41;


Dim valor1 As &#91;Decimal&#93;


Dim valor2 As &#91;Decimal&#93;


valor1 = Convert.ToDecimal&#40;txtval1.Text&#41;


valor2 = [...]]]></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>A continuación, este código te ayudará para evitar que un formularion se cierre sin previa validación, para esto usamos la evento FormClosing de los formulacion de Windows Forms.</p>
<p>En Visual Basic .Net es de esta manera</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: #FF8000;">Private</span> <span style="color: #0600FF;">Sub</span> forma_FormClosing<span style="color: #000000;">&#40;</span><span style="color: #FF8000;">ByVal</span> sender <span style="color: #FF8000;">As</span> <span style="color: #FF0000;">Object</span>, <span style="color: #FF8000;">ByVal</span> e <span style="color: #FF8000;">As</span> FormClosingEventArgs<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> valor1 <span style="color: #FF8000;">As</span> <span style="color: #000000;">&#91;</span>Decimal<span style="color: #000000;">&#93;</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;">Dim</span> valor2 <span style="color: #FF8000;">As</span> <span style="color: #000000;">&#91;</span>Decimal<span style="color: #000000;">&#93;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">valor1 = Convert.<span style="color: #0000FF;">ToDecimal</span><span style="color: #000000;">&#40;</span>txtval1.<span style="color: #0000FF;">Text</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;">valor2 = Convert.<span style="color: #0000FF;">ToDecimal</span><span style="color: #000000;">&#40;</span>txtval2.<span style="color: #0000FF;">Text</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;">If</span> valor1 &lt;&gt; valor2 <span style="color: #FF8000;">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;">MessageBox.<span style="color: #0000FF;">Show</span><span style="color: #000000;">&#40;</span><span style="color: #FF8000;">Me</span>, <span style="color: #808080;">"Los valore deben coincidir"</span>, <span style="color: #808080;">"Error"</span>, MessageBoxButtons.<span style="color: #0600FF;">OK</span>, MessageBoxIcon.<span style="color: #000000;">&#91;</span><span style="color: #FF8000;">Error</span><span style="color: #000000;">&#93;</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;">e.<span style="color: #0600FF;">Cancel</span> = <span style="color: #0600FF;">True</span> <span style="color: #008080; font-style: italic;">'evita que el form se cierre</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;">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: #0600FF;">End</span> <span style="color: #0600FF;">Sub</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></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;">private</span> <span style="color: #0600FF;">void</span> forma_FormClosing<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">object</span> sender, FormClosingEventArgs e<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: #FF0000;">Decimal</span> valor1;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #FF0000;">Decimal</span> valor2;</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;">valor1 = Convert.<span style="color: #0000FF;">ToDecimal</span><span style="color: #000000;">&#40;</span>valor1.<span style="color: #0000FF;">Text</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;">valor2 = Convert.<span style="color: #0000FF;">ToDecimal</span><span style="color: #000000;">&#40;</span>valor2.<span style="color: #0000FF;">Text</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;">if</span> <span style="color: #000000;">&#40;</span>valor1 != valor2<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;">MessageBox.<span style="color: #0000FF;">Show</span><span style="color: #000000;">&#40;</span><span style="color: #0600FF;">this</span>, <span style="color: #808080;">"Los valores deben coincidir"</span>, <span style="color: #808080;">"Error"</span>,MessageBoxButtons.<span style="color: #0000FF;">OK</span>,MessageBoxIcon.<span style="color: #0000FF;">Error</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;">e.<span style="color: #0000FF;">Cancel</span> = <span style="color: #0600FF;">true</span>; <span style="color: #008080; font-style: italic;">//evita que el form se cierre</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;">&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: #000000;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Un código bastante útil en el tema de validaciones y prohibiciones para que esas ocaciones que se necesita aplicar seguridad en los formularios.</p>
<p>Nos vemos.</p>
]]></content:encoded>
			<wfw:commentRss>http://geoavila.com/impedir-que-un-form-se-cierre-csharpvb-net/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Valida TextBox si es Entero o Decimal</title>
		<link>http://geoavila.com/valida-textbox-si-es-entero-o-decimal/</link>
		<comments>http://geoavila.com/valida-textbox-si-es-entero-o-decimal/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 21:41:13 +0000</pubDate>
		<dc:creator>GeoAvila</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Mono .NET]]></category>
		<category><![CDATA[Visual Basic .NET]]></category>
		<category><![CDATA[validar decimal textbox]]></category>
		<category><![CDATA[validar entero textbox]]></category>
		<category><![CDATA[validar textbox vb.net c# csharp]]></category>
		<category><![CDATA[validate textbox decimal]]></category>
		<category><![CDATA[validate textbox integer]]></category>

		<guid isPermaLink="false">http://geoavila.com/?p=197</guid>
		<description><![CDATA[


 Bueno estas funciones ayudan a validar si el texto ingresado en un textbox es un valor numérico ó es un valor decimal, estas son de las validaciones más usadas para desarrollar así que acá se los dejo.
PLAIN TEXT
VB.NET:




Public Shared Function EsInteger&#40;ByVal theValue As String&#41; As Boolean


&#160; &#160; 'funcion para enteros


&#160; &#160; Try


&#160; &#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>Bueno estas funciones ayudan a validar si el texto ingresado en un textbox es un valor numérico ó es un valor decimal, estas son de las validaciones más usadas para desarrollar así que acá se los dejo.</p>
<div class="igBar"><span id="lvbnet-9"><a href="#" onclick="javascript:showPlainTxt('vbnet-9'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">VB.NET:</span>
<div id="vbnet-9">
<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: #FF8000;">Public</span> Shared <span style="color: #0600FF;">Function</span> EsInteger<span style="color: #000000;">&#40;</span><span style="color: #FF8000;">ByVal</span> theValue <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span><span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">As</span> <span style="color: #FF0000;">Boolean</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">'funcion para enteros</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; &nbsp; <span style="color: #0600FF;">Try</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; Convert.<span style="color: #0000FF;">ToInt32</span><span style="color: #000000;">&#40;</span>theValue<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; &nbsp; &nbsp; &nbsp; Return <span style="color: #0600FF;">True</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0600FF;">Catch</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; &nbsp; &nbsp; &nbsp; Return <span style="color: #0600FF;">False</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Try</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;">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: #FF8000;">Public</span> Shared <span style="color: #0600FF;">Function</span> EsDecimal<span style="color: #000000;">&#40;</span><span style="color: #FF8000;">ByVal</span> theValue <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span><span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">As</span> <span style="color: #FF0000;">Boolean</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">'funcion para enteros</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; &nbsp; <span style="color: #0600FF;">Try</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; Convert.<span style="color: #0000FF;">ToDecimal</span><span style="color: #000000;">&#40;</span>theValue<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; &nbsp; &nbsp; &nbsp; Return <span style="color: #0600FF;">True</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0600FF;">Catch</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; &nbsp; &nbsp; &nbsp; Return <span style="color: #0600FF;">False</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Try</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;">Function</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<div class="igBar"><span id="lcsharp-10"><a href="#" onclick="javascript:showPlainTxt('csharp-10'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">C#:</span>
<div id="csharp-10">
<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;">public</span> <span style="color: #0600FF;">static</span> <span style="color: #FF0000;">bool</span> EsInteger<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">string</span> theValue<span style="color: #000000;">&#41;</span><span style="color: #008080; font-style: italic;">//funcion para enteros</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <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;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">try</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Convert.<span style="color: #0000FF;">ToInt32</span><span style="color: #000000;">&#40;</span>theValue<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;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">return</span> <span style="color: #0600FF;">true</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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">catch</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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">return</span> <span style="color: #0600FF;">false</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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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;">&nbsp; &nbsp; &nbsp; &nbsp; <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;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">public</span> <span style="color: #0600FF;">static</span> <span style="color: #FF0000;">bool</span> EsDecimal<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">string</span> theValue<span style="color: #000000;">&#41;</span><span style="color: #008080; font-style: italic;">//funcion para enteros</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; &nbsp; &nbsp; &nbsp; <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;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">try</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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Convert.<span style="color: #0000FF;">ToDecimal</span><span style="color: #000000;">&#40;</span>theValue<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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">return</span> <span style="color: #0600FF;">true</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">catch</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF;">return</span> <span style="color: #0600FF;">false</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>otra manera de validar de parte de @cmsalvado gracias por el dato:</p>
<div class="igBar"><span id="lvbnet-11"><a href="#" onclick="javascript:showPlainTxt('vbnet-11'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">VB.NET:</span>
<div id="vbnet-11">
<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: #FF8000;">Public</span> Shared <span style="color: #0600FF;">Function</span> EsInteger<span style="color: #000000;">&#40;</span><span style="color: #FF8000;">ByVal</span> theValue <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span><span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">As</span> <span style="color: #FF0000;">Boolean</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> value <span style="color: #FF8000;">As</span> <span style="color: #FF0000;">Integer</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;">Return <span style="color: #FF0000;">Integer</span>.<span style="color: #0000FF;">TryParse</span><span style="color: #000000;">&#40;</span>theValue, value<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;">Function</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<div class="igBar"><span id="lcsharp-12"><a href="#" onclick="javascript:showPlainTxt('csharp-12'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">C#:</span>
<div id="csharp-12">
<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;">public</span> <span style="color: #0600FF;">static</span> <span style="color: #FF0000;">bool</span> EsInteger<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">string</span> theValue<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: #FF0000;">int</span> value;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">return</span> <span style="color: #FF0000;">int</span>.<span style="color: #0000FF;">TryParse</span><span style="color: #000000;">&#40;</span>theValue, <span style="color: #0600FF;">out</span> value<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;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>bueno espero les sea de gran ayuda.</p>
<p>nos vemos</p>
]]></content:encoded>
			<wfw:commentRss>http://geoavila.com/valida-textbox-si-es-entero-o-decimal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>validar si hay texto en un textbox vb.net c#</title>
		<link>http://geoavila.com/valida-si-hay-texto-en-un-textbox/</link>
		<comments>http://geoavila.com/valida-si-hay-texto-en-un-textbox/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 19:48:00 +0000</pubDate>
		<dc:creator>GeoAvila</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Mono .NET]]></category>
		<category><![CDATA[Visual Basic .NET]]></category>
		<category><![CDATA[validar si hay texto en un textbox vb.net c#]]></category>

		<guid isPermaLink="false">http://geoavila.com/2009/08/05/valida-enterodecimal-en-un-textbox/</guid>
		<description><![CDATA[Esta código ayuda a revisar si existe un texto ingresado en un textbox en VB.net y C#.
PLAIN TEXT
VB.NET:




If TextBox.Text.Length &#60;1 Then


MessageBox.Show&#40;Me, "Debe colocar un cliente válido", "error", MessageBoxButtons.OK, MessageBoxIcon.&#91;Error&#93;&#41;


Return


End If 






PLAIN TEXT
C#:




if &#40;TextBox.Text.Length &#60;1&#41;


&#123;


MessageBox.Show&#40;this, "Debe colocar un cliente válido", "error", MessageBoxButtons.OK, MessageBoxIcon.Error&#41;;


return;


&#125; 






nos vemos espero les sirva algo sencillo pero muy útil.
]]></description>
			<content:encoded><![CDATA[<p>Esta código ayuda a revisar si existe un texto ingresado en un textbox en VB.net y C#.</p>
<div class="igBar"><span id="lvbnet-15"><a href="#" onclick="javascript:showPlainTxt('vbnet-15'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">VB.NET:</span>
<div id="vbnet-15">
<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;">If</span> TextBox.<span style="color: #0000FF;">Text</span>.<span style="color: #0000FF;">Length</span> &lt;<span style="color: #FF0000;color:#800000;">1</span> <span style="color: #FF8000;">Then</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">MessageBox.<span style="color: #0000FF;">Show</span><span style="color: #000000;">&#40;</span><span style="color: #FF8000;">Me</span>, <span style="color: #808080;">"Debe colocar un cliente válido"</span>, <span style="color: #808080;">"error"</span>, MessageBoxButtons.<span style="color: #0600FF;">OK</span>, MessageBoxIcon.<span style="color: #000000;">&#91;</span><span style="color: #FF8000;">Error</span><span style="color: #000000;">&#93;</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;">Return</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>
</ol>
</div>
</div>
</div>
<p></p>
<div class="igBar"><span id="lcsharp-16"><a href="#" onclick="javascript:showPlainTxt('csharp-16'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">C#:</span>
<div id="csharp-16">
<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;">if</span> <span style="color: #000000;">&#40;</span>TextBox.<span style="color: #0000FF;">Text</span>.<span style="color: #0000FF;">Length</span> &lt;<span style="color: #FF0000;color:#800000;">1</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;">&#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;">MessageBox.<span style="color: #0000FF;">Show</span><span style="color: #000000;">&#40;</span><span style="color: #0600FF;">this</span>, <span style="color: #808080;">"Debe colocar un cliente válido"</span>, <span style="color: #808080;">"error"</span>, MessageBoxButtons.<span style="color: #0000FF;">OK</span>, MessageBoxIcon.<span style="color: #0000FF;">Error</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;">return</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>nos vemos espero les sirva algo sencillo pero muy útil.</p>
]]></content:encoded>
			<wfw:commentRss>http://geoavila.com/valida-si-hay-texto-en-un-textbox/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>Mini Tutorial: Enviar Texto a Aplicación Externa con VB NET</title>
		<link>http://geoavila.com/mini-tutorial-enviar-texto-a-aplicacion-externa-con-vb-net/</link>
		<comments>http://geoavila.com/mini-tutorial-enviar-texto-a-aplicacion-externa-con-vb-net/#comments</comments>
		<pubDate>Sun, 14 Sep 2008 04:54:47 +0000</pubDate>
		<dc:creator>seba123neo</dc:creator>
				<category><![CDATA[Visual Basic .NET]]></category>

		<guid isPermaLink="false">http://geoavila.com/?p=101</guid>
		<description><![CDATA[Hola, bueno esto lo hice porque veo que muchos lo preguntan y no saben como hacerlo, hay muchas formas para hacerlo, esta es una de ellas. Les voy a hacer un ejemplo de como mandar un texto al textbox de una aplicacion externa, en este caso el Notepad de windows.
como sabran pueden usar el SPY++ [...]]]></description>
			<content:encoded><![CDATA[<p>Hola, bueno esto lo hice porque veo que muchos lo preguntan y no saben como hacerlo, hay muchas formas para hacerlo, esta es una de ellas. Les voy a hacer un ejemplo de como mandar un texto al textbox de una aplicacion externa, en este caso el Notepad de windows.</p>
<p>como sabran pueden usar el <strong>SPY++</strong> para averiguar los nombres de clase de los controles...</p>
<p>este es el nombre de clase de la ventana padre llamada <strong>"Notepad"</strong>:</p>
<p><img src="http://img528.imageshack.us/img528/4203/dibujo2eh5.png" alt="" width="479" height="394" /></p>
<p>este es el nombre del control Textbox dentro de la ventana llamado <strong>"Edit"</strong>:</p>
<p><img src="http://img237.imageshack.us/img237/2262/dibujouz2.png" alt="" width="597" height="390" /></p>
<p>para saber los datos de la ventana tienen que arrastrar el "iconito" sobre una ventana y te va diciendo las partes que la forman,en este caso fijense que esta seleccionado el area de escritura del bloc de notas y al lado en la ventana estan los datos...</p>
<p>el <strong>handle </strong>es el numero(Long) que le asigna windows a cada ventana ,es como si fuera el numero que identifica esa ventana,sabiendo eso,podes hacer un monton de cosas,cerrarla,moverla,resizarla,cambiar valores,etc....</p>
<p>el <strong>Class </strong>es el nombre de clase del control,o sea cada control tiene su nombre...ese ese es que nos interesa ahora..</p>
<p>ahora fijense con este codigo como escribo en el bloc de notas..usando unas funciones api's...</p>
<div class="igBar"><span id="lvbnet-18"><a href="#" onclick="javascript:showPlainTxt('vbnet-18'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">VB.NET:</span>
<div id="vbnet-18">
<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: #FF8000;">Public</span> <span style="color: #0600FF;">Class</span> Form1</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #FF8000;">Private</span> <span style="color: #0600FF;">Declare</span> <span style="color: #0600FF;">Function</span> FindWindow Lib <span style="color: #808080;">"user32"</span> <span style="color: #0600FF;">Alias</span> <span style="color: #808080;">"FindWindowA"</span> <span style="color: #000000;">&#40;</span><span style="color: #FF8000;">ByVal</span> lpClassName <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span>, <span style="color: #FF8000;">ByVal</span> lpWindowName <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span><span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">As</span> <span style="color: #FF0000;">Integer</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;">Private</span> <span style="color: #0600FF;">Declare</span> <span style="color: #0600FF;">Function</span> FindWindowEx Lib <span style="color: #808080;">"user32"</span> <span style="color: #0600FF;">Alias</span> <span style="color: #808080;">"FindWindowExA"</span> <span style="color: #000000;">&#40;</span><span style="color: #FF8000;">ByVal</span> hWnd1 <span style="color: #FF8000;">As</span> <span style="color: #FF0000;">Integer</span>, <span style="color: #FF8000;">ByVal</span> hWnd2 <span style="color: #FF8000;">As</span> <span style="color: #FF0000;">Integer</span>, <span style="color: #FF8000;">ByVal</span> lpsz1 <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span>, <span style="color: #FF8000;">ByVal</span> lpsz2 <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span><span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">As</span> <span style="color: #FF0000;">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: #FF8000;">Private</span> <span style="color: #0600FF;">Declare</span> <span style="color: #0600FF;">Function</span> SendMessageSTRING Lib <span style="color: #808080;">"user32"</span> <span style="color: #0600FF;">Alias</span> <span style="color: #808080;">"SendMessageA"</span> <span style="color: #000000;">&#40;</span><span style="color: #FF8000;">ByVal</span> hwnd <span style="color: #FF8000;">As</span> <span style="color: #FF0000;">Integer</span>, <span style="color: #FF8000;">ByVal</span> wMsg <span style="color: #FF8000;">As</span> <span style="color: #FF0000;">Integer</span>, <span style="color: #FF8000;">ByVal</span> wParam <span style="color: #FF8000;">As</span> <span style="color: #FF0000;">Integer</span>, <span style="color: #FF8000;">ByVal</span> lParam <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span><span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">As</span> <span style="color: #FF0000;">Integer</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;">Private</span> <span style="color: #0600FF;">Declare</span> <span style="color: #0600FF;">Function</span> SendMessageLONG Lib <span style="color: #808080;">"user32"</span> <span style="color: #0600FF;">Alias</span> <span style="color: #808080;">"SendMessageA"</span> <span style="color: #000000;">&#40;</span><span style="color: #FF8000;">ByVal</span> hwnd <span style="color: #FF8000;">As</span> <span style="color: #FF0000;">Integer</span>, <span style="color: #FF8000;">ByVal</span> wMsg <span style="color: #FF8000;">As</span> <span style="color: #FF0000;">Integer</span>, <span style="color: #FF8000;">ByVal</span> wParam <span style="color: #FF8000;">As</span> <span style="color: #FF0000;">Integer</span>, <span style="color: #FF8000;">ByVal</span> lParam <span style="color: #FF8000;">As</span> <span style="color: #FF0000;">Integer</span><span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">As</span> <span style="color: #FF0000;">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: #FF8000;">Private</span> Const WM_SETTEXT = &amp;HC</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: #FF8000;">Private</span> <span style="color: #0600FF;">Sub</span> Form1_Load<span style="color: #000000;">&#40;</span><span style="color: #FF8000;">ByVal</span> sender <span style="color: #FF8000;">As</span> System.<span style="color: #FF0000;">Object</span>, <span style="color: #FF8000;">ByVal</span> e <span style="color: #FF8000;">As</span> System.<span style="color: #0000FF;">EventArgs</span><span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">Handles</span> <span style="color: #FF8000;">MyBase</span>.<span style="color: #0000FF;">Load</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;">Shell</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"notepad.exe"</span>, vbNormalNoFocus<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> a <span style="color: #FF8000;">As</span> <span style="color: #FF0000;">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: #0600FF;">Dim</span> b <span style="color: #FF8000;">As</span> <span style="color: #FF0000;">Long</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">a = FindWindow<span style="color: #000000;">&#40;</span><span style="color: #808080;">"Notepad"</span>, vbNullString<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;">b = FindWindowEx<span style="color: #000000;">&#40;</span>a, <span style="color: #FF0000;color:#800000;">0</span>&amp;, <span style="color: #808080;">"Edit"</span>, vbNullString<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;">SendMessageSTRING<span style="color: #000000;">&#40;</span>b, WM_SETTEXT, <span style="color: #FF0000;color:#800000;">256</span>, <span style="color: #808080;">"Holaaaaaaaaaaaa"</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;">End</span> <span style="color: #0600FF;">Sub</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;">Class</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>saludos.</p>
]]></content:encoded>
			<wfw:commentRss>http://geoavila.com/mini-tutorial-enviar-texto-a-aplicacion-externa-con-vb-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Saber el Tamaño de Un Archivo con VB NET</title>
		<link>http://geoavila.com/saber-el-tamano-de-un-archivo-con-vb-net/</link>
		<comments>http://geoavila.com/saber-el-tamano-de-un-archivo-con-vb-net/#comments</comments>
		<pubDate>Fri, 19 Oct 2007 00:54:08 +0000</pubDate>
		<dc:creator>seba123neo</dc:creator>
				<category><![CDATA[Visual Basic .NET]]></category>

		<guid isPermaLink="false">http://geoavila.com/?p=83</guid>
		<description><![CDATA[Este ejemplo permite saber el tamaño de un archivo,ingresando la ruta del mismo.Usa como metodo La libreria Microsoft Scripting Runtime,que la tenes que agregar desde el menu Proyecto--&#62;Añadir Referencias.
PLAIN TEXT
VB.NET:




Private Sub Form1_Load&#40;ByVal sender As System.Object, ByVal e As System.EventArgs&#41; Handles MyBase.Load


Dim objFSO As Scripting.FileSystemObject


Dim objFile


objFSO = New Scripting.FileSystemObject


objFile = objFSO.GetFile&#40;"C:\teclas.zip"&#41;


MsgBox&#40;"El Archivo " &#38;amp; objFile.Name &#38;amp; [...]]]></description>
			<content:encoded><![CDATA[<p>Este ejemplo permite saber el tamaño de un archivo,ingresando la ruta del mismo.Usa como metodo La libreria <strong>Microsoft Scripting Runtime,</strong>que la tenes que agregar desde el menu <strong>Proyecto--&gt;Añadir Referencias</strong>.</p>
<div class="igBar"><span id="lvbnet-20"><a href="#" onclick="javascript:showPlainTxt('vbnet-20'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">VB.NET:</span>
<div id="vbnet-20">
<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: #FF8000;">Private</span> <span style="color: #0600FF;">Sub</span> Form1_Load<span style="color: #000000;">&#40;</span><span style="color: #FF8000;">ByVal</span> sender <span style="color: #FF8000;">As</span> System.<span style="color: #FF0000;">Object</span>, <span style="color: #FF8000;">ByVal</span> e <span style="color: #FF8000;">As</span> System.<span style="color: #0000FF;">EventArgs</span><span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">Handles</span> <span style="color: #FF8000;">MyBase</span>.<span style="color: #0000FF;">Load</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> objFSO <span style="color: #FF8000;">As</span> Scripting.<a href="http://www.google.com/search?q=FILESYSTEMOBJECT+msdn.microsoft.com"><span style="color: #008000;">FileSystemObject</span></a></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;">Dim</span> objFile</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">objFSO = <span style="color: #FF8000;">New</span> Scripting.<a href="http://www.google.com/search?q=FILESYSTEMOBJECT+msdn.microsoft.com"><span style="color: #008000;">FileSystemObject</span></a></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;">objFile = objFSO.<span style="color: #0000FF;">GetFile</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"C:\teclas.zip"</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;">MsgBox</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"El Archivo "</span> &amp;amp; objFile.<span style="color: #0000FF;">Name</span> &amp;amp; <span style="color: #808080;">",Tiene un Tamaño de "</span> &amp;amp; objFile.<span style="color: #0000FF;">Size</span> &amp;amp; <span style="color: #808080;">" bytes"</span>, vbInformation + vbOKOnly, <span style="color: #808080;">"Tamaño de archivo"</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;">objFile = <span style="color: #FF8000;">Nothing</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">objFSO = <span style="color: #FF8000;">Nothing</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;">Sub</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://geoavila.com/saber-el-tamano-de-un-archivo-con-vb-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Textbox que permite sólo Letras en Vb.Net 05</title>
		<link>http://geoavila.com/textbos-que-permite-solo-letras-en-vbnet-05/</link>
		<comments>http://geoavila.com/textbos-que-permite-solo-letras-en-vbnet-05/#comments</comments>
		<pubDate>Fri, 06 Jul 2007 22:06:14 +0000</pubDate>
		<dc:creator>GeoAvila</dc:creator>
				<category><![CDATA[Visual Basic .NET]]></category>

		<guid isPermaLink="false">http://geoavila.com/?p=74</guid>
		<description><![CDATA[Como en el ejemplo de solo números este código lo colocamos en el evento KeyPress de nuestras cajas de texto
PLAIN TEXT
VB.NET:




If Char.IsLetter&#40;e.KeyChar&#41; Then


e.Handled = False


ElseIf Char.IsControl&#40;e.KeyChar&#41; Then


e.Handled = False


ElseIf Char.IsSeparator&#40;e.KeyChar&#41; Then


e.Handled = False


Else


e.Handled = True


End If 






y así tenemos solo texto en nuestras cajas de texto
nos vemos
]]></description>
			<content:encoded><![CDATA[<p>Como en el ejemplo de solo números este código lo colocamos en el evento KeyPress de nuestras cajas de texto</p>
<div class="igBar"><span id="lvbnet-22"><a href="#" onclick="javascript:showPlainTxt('vbnet-22'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">VB.NET:</span>
<div id="vbnet-22">
<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;">If</span> Char.<span style="color: #0000FF;">IsLetter</span><span style="color: #000000;">&#40;</span>e.<span style="color: #0000FF;">KeyChar</span><span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">Then</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">e.<span style="color: #0000FF;">Handled</span> = <span style="color: #0600FF;">False</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;">ElseIf Char.<span style="color: #0000FF;">IsControl</span><span style="color: #000000;">&#40;</span>e.<span style="color: #0000FF;">KeyChar</span><span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">Then</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">e.<span style="color: #0000FF;">Handled</span> = <span style="color: #0600FF;">False</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;">ElseIf Char.<span style="color: #0000FF;">IsSeparator</span><span style="color: #000000;">&#40;</span>e.<span style="color: #0000FF;">KeyChar</span><span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">Then</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">e.<span style="color: #0000FF;">Handled</span> = <span style="color: #0600FF;">False</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;">Else</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">e.<span style="color: #0000FF;">Handled</span> = <span style="color: #0600FF;">True</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;">If</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>y así tenemos solo texto en nuestras cajas de texto</p>
<p>nos vemos</p>
]]></content:encoded>
			<wfw:commentRss>http://geoavila.com/textbos-que-permite-solo-letras-en-vbnet-05/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Textbox que permite sólo Números en Vb.Net 05</title>
		<link>http://geoavila.com/solo-numeros-en-vbnet-05/</link>
		<comments>http://geoavila.com/solo-numeros-en-vbnet-05/#comments</comments>
		<pubDate>Fri, 06 Jul 2007 22:02:16 +0000</pubDate>
		<dc:creator>GeoAvila</dc:creator>
				<category><![CDATA[Visual Basic .NET]]></category>

		<guid isPermaLink="false">http://geoavila.com/?p=73</guid>
		<description><![CDATA[Este código lo colocamos en el evento Keypress de nuestras cajas de texto que queremos que sean únicamente numéricas.
PLAIN TEXT
VB.NET:




If Char.IsDigit&#40;e.KeyChar&#41; Then


e.Handled = False


ElseIf Char.IsControl&#40;e.KeyChar&#41; Then


e.Handled = False


Else


e.Handled = True


End If 






y de esa manera es se omiten las letras y si deseamos que se admita el cero para decimales lo hacemos de la siguiente [...]]]></description>
			<content:encoded><![CDATA[<p>Este código lo colocamos en el evento Keypress de nuestras cajas de texto que queremos que sean únicamente numéricas.</p>
<div class="igBar"><span id="lvbnet-25"><a href="#" onclick="javascript:showPlainTxt('vbnet-25'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">VB.NET:</span>
<div id="vbnet-25">
<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;">If</span> Char.<span style="color: #0000FF;">IsDigit</span><span style="color: #000000;">&#40;</span>e.<span style="color: #0000FF;">KeyChar</span><span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">Then</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">e.<span style="color: #0000FF;">Handled</span> = <span style="color: #0600FF;">False</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;">ElseIf Char.<span style="color: #0000FF;">IsControl</span><span style="color: #000000;">&#40;</span>e.<span style="color: #0000FF;">KeyChar</span><span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">Then</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">e.<span style="color: #0000FF;">Handled</span> = <span style="color: #0600FF;">False</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;">Else</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">e.<span style="color: #0000FF;">Handled</span> = <span style="color: #0600FF;">True</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;">If</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>y de esa manera es se omiten las letras y si deseamos que se admita el cero para decimales lo hacemos de la siguiente manera:</p>
<div class="igBar"><span id="lvbnet-26"><a href="#" onclick="javascript:showPlainTxt('vbnet-26'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">VB.NET:</span>
<div id="vbnet-26">
<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;">If</span> e.<span style="color: #0000FF;">KeyChar</span> = <span style="color: #808080;">"."</span> <span style="color: #FF8000;">Then</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">e.<span style="color: #0000FF;">Handled</span> = <span style="color: #0600FF;">False</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;">exit</span> <span style="color: #0600FF;">sub</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: #0600FF;">If</span> Char.<span style="color: #0000FF;">IsDigit</span><span style="color: #000000;">&#40;</span>e.<span style="color: #0000FF;">KeyChar</span><span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">Then</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">e.<span style="color: #0000FF;">Handled</span> = <span style="color: #0600FF;">False</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;">ElseIf Char.<span style="color: #0000FF;">IsControl</span><span style="color: #000000;">&#40;</span>e.<span style="color: #0000FF;">KeyChar</span><span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">Then</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">e.<span style="color: #0000FF;">Handled</span> = <span style="color: #0600FF;">False</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;">Else</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">e.<span style="color: #0000FF;">Handled</span> = <span style="color: #0600FF;">True</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;">If</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>listo un pequeño ejemplo</p>
]]></content:encoded>
			<wfw:commentRss>http://geoavila.com/solo-numeros-en-vbnet-05/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Enviar parámetro a Reporting Services Vb.Net 05</title>
		<link>http://geoavila.com/enviar-parametro-a-reporting-services-vbnet/</link>
		<comments>http://geoavila.com/enviar-parametro-a-reporting-services-vbnet/#comments</comments>
		<pubDate>Fri, 06 Jul 2007 15:18:39 +0000</pubDate>
		<dc:creator>GeoAvila</dc:creator>
				<category><![CDATA[Visual Basic .NET]]></category>

		<guid isPermaLink="false">http://geoavila.com/?p=72</guid>
		<description><![CDATA[Para enviar un parámetro  a Reporting Services primero hacemos un Imports  de Microsoft.Reporting.WebForms, agregamos un ReportViewer1 y  después de hacer esto  hacemos la llamada y también e incluímos los parámetros que vamos a enviar de la siguiente manera:
PLAIN TEXT
VB.NET:




Private Sub Cargar&#40;&#41;


Dim instance As New Microsoft.Reporting.WinForms.ReportParameter&#40;"Oficina", "01"&#41;


Dim instance1 As New Microsoft.Reporting.WinForms.ReportParameter&#40;"Fecha", "2004.01.01"&#41;


Dim instance2 As New Microsoft.Reporting.WinForms.ReportParameter&#40;"Ordenadopor", [...]]]></description>
			<content:encoded><![CDATA[<p>Para enviar un parámetro  a Reporting Services primero hacemos un Imports  de Microsoft.Reporting.WebForms, agregamos un ReportViewer1 y  después de hacer esto  hacemos la llamada y también e incluímos los parámetros que vamos a enviar de la siguiente manera:</p>
<div class="igBar"><span id="lvbnet-28"><a href="#" onclick="javascript:showPlainTxt('vbnet-28'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">VB.NET:</span>
<div id="vbnet-28">
<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: #FF8000;">Private</span> <span style="color: #0600FF;">Sub</span> Cargar<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> instance <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">New</span> Microsoft.<span style="color: #0000FF;">Reporting</span>.<span style="color: #0000FF;">WinForms</span>.<span style="color: #0000FF;">ReportParameter</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"Oficina"</span>, <span style="color: #808080;">"01"</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;">Dim</span> instance1 <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">New</span> Microsoft.<span style="color: #0000FF;">Reporting</span>.<span style="color: #0000FF;">WinForms</span>.<span style="color: #0000FF;">ReportParameter</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"Fecha"</span>, <span style="color: #808080;">"2004.01.01"</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> instance2 <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">New</span> Microsoft.<span style="color: #0000FF;">Reporting</span>.<span style="color: #0000FF;">WinForms</span>.<span style="color: #0000FF;">ReportParameter</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"Ordenadopor"</span>, <span style="color: #808080;">"01"</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;">Dim</span> prms<span style="color: #000000;">&#40;</span><span style="color: #FF0000;color:#800000;">2</span><span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">As</span> Microsoft.<span style="color: #0000FF;">Reporting</span>.<span style="color: #0000FF;">WinForms</span>.<span style="color: #0000FF;">ReportParameter</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">prms<span style="color: #000000;">&#40;</span><span style="color: #FF0000;color:#800000;">0</span><span style="color: #000000;">&#41;</span> = instance</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;">prms<span style="color: #000000;">&#40;</span><span style="color: #FF0000;color:#800000;">1</span><span style="color: #000000;">&#41;</span> = instance1</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">prms<span style="color: #000000;">&#40;</span><span style="color: #FF0000;color:#800000;">2</span><span style="color: #000000;">&#41;</span> = instance2</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;">ReportViewer1.<span style="color: #0000FF;">ServerReport</span>.<span style="color: #0000FF;">ReportServerUrl</span> = <span style="color: #FF8000;">New</span> Uri<span style="color: #000000;">&#40;</span><span style="color: #808080;">"https://www.geoavila.com/ReportServer/"</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;">ReportViewer1.<span style="color: #0000FF;">ServerReport</span>.<span style="color: #0000FF;">ReportPath</span> = <span style="color: #808080;">"/Report Project2/rpt_balance_antiguedad"</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;">ReportViewer1.<span style="color: #0000FF;">ServerReport</span>.<span style="color: #0000FF;">SetParameters</span><span style="color: #000000;">&#40;</span>prms<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;">ReportViewer1.<span style="color: #0000FF;">ProcessingMode</span> = Microsoft.<span style="color: #0000FF;">Reporting</span>.<span style="color: #0000FF;">WinForms</span>.<span style="color: #0000FF;">ProcessingMode</span>.<span style="color: #0600FF;">Remote</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;">ReportViewer1.<span style="color: #0000FF;">RefreshReport</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;"><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;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #FF8000;">Private</span> <span style="color: #0600FF;">Sub</span> CmdVer_Click<span style="color: #000000;">&#40;</span><span style="color: #FF8000;">ByVal</span> sender <span style="color: #FF8000;">As</span> System.<span style="color: #FF0000;">Object</span>, <span style="color: #FF8000;">ByVal</span> e <span style="color: #FF8000;">As</span> System.<span style="color: #0000FF;">EventArgs</span><span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">Handles</span> CmdVer.<span style="color: #0000FF;">Click</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;">Cargar<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;">End</span> <span style="color: #0600FF;">Sub</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>De esta manera podremos visualizar un reporte en un Winforms.</p>
<p>nos vemos.</p>
]]></content:encoded>
			<wfw:commentRss>http://geoavila.com/enviar-parametro-a-reporting-services-vbnet/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Saber serial del Disco Duro en Vb.net &#8216;05</title>
		<link>http://geoavila.com/saber-serial-del-disco-duro-en-vbnet-05/</link>
		<comments>http://geoavila.com/saber-serial-del-disco-duro-en-vbnet-05/#comments</comments>
		<pubDate>Fri, 15 Jun 2007 21:41:16 +0000</pubDate>
		<dc:creator>GeoAvila</dc:creator>
				<category><![CDATA[Visual Basic .NET]]></category>

		<guid isPermaLink="false">http://geoavila.com/?p=63</guid>
		<description><![CDATA[En este ejemplo usando las funciones proporcionadas por "Imports System.Management"(Win32_DiskDrive,Win32_PhysicalMedia) , se muestran el tipo el modelo y el Serial del disco Duro, les dejo el link
Ejemplo Serial HDD

Nos vemos espero les sirva.
]]></description>
			<content:encoded><![CDATA[<p>En este ejemplo usando las funciones proporcionadas por "Imports System.Management"(Win32_DiskDrive,Win32_PhysicalMedia) , se muestran el tipo el modelo y el Serial del disco Duro, les dejo el link</p>
<p><a href="http://geoavila.com/wp-content/archivos/2007/06/serialhdd.zip" title="Ejemplo Serial HDD">Ejemplo Serial HDD</a></p>
<p><a href="http://geoavila.com/wp-content/archivos/2007/06/hdddata.JPG" rel="shadowbox[post-63];player=img;" title="foto HDD"><img src="http://geoavila.com/wp-content/archivos/2007/06/hdddata.thumbnail.JPG" alt="foto HDD" /></a></p>
<p>Nos vemos espero les sirva.</p>
]]></content:encoded>
			<wfw:commentRss>http://geoavila.com/saber-serial-del-disco-duro-en-vbnet-05/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
