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.

No TweetBacks yet. (Be the first to Tweet this post)
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.

Sigueme en Twitter

Recent Posts

Amigos de Twitter

isagc_88
pena2
kalugt
mishu7
luismuybien
evesosa
prsarahevans
PilarPreza
valeriaau
thomas_weller
xabivargas
albertomontt
J05uE
softcarlos
Blackstare
guise
fayerwayer
ChapinGeek
yoasumo
LibrosyMasgt
jazzandblue
daniellacayo
xisaac
orlandomgj
guilleybruno
TuFrac
Luckysilva
guatecham
f0vela
barcampgt
Elultimodepaz
tuxtor
giopack
xarquis
andreimorales
robertogt
Friends: Followers:

Categories

Sitios amigos

Algunos Derechos Reservados

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