GeoAvila (Geovanny G. Avila) Desarrollo.. de software.

5Aug/090

validar si hay texto en un textbox vb.net c#

Esta código ayuda a revisar si existe un texto ingresado en un textbox en VB.net y C#.

VB.NET:
  1. If TextBox.Text.Length <1 Then
  2. MessageBox.Show(Me, "Debe colocar un cliente válido", "error", MessageBoxButtons.OK, MessageBoxIcon.[Error])
  3. Return
  4. End If

C#:
  1. if (TextBox.Text.Length <1)
  2. {
  3. MessageBox.Show(this, "Debe colocar un cliente válido", "error", MessageBoxButtons.OK, MessageBoxIcon.Error);
  4. return;
  5. }

nos vemos espero les sirva algo sencillo pero muy útil.

Sigueme en Twitter

Recent Posts

Amigos de Twitter

_Narima
glorialonzo
xanderall
_Narima
glorialonzo
eljorgeluis
anissette
gnduran
wgavila
arigalt
machpablo
romerogt
WendyGalvez
anitagt
novell
google
lfer31
lexsoul
darkvander
SilvitaGG
Microsoft
mysql
AlcaldeArzu
axelopez
andreitaQC
magjogui
darkela
Ale928
titiburgos
rudygiron
josuepalacios
elsum
muniguate
mitsumits
saburack
veruku
Friends: 180 Followers: 280

Categories

Sitios amigos

Algunos Derechos Reservados

Blog bajo licencia Creative Commons Attribution-ShareAlike 3.0 License
Creative Commons License