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

migueldeicaza
raep3153
promeme
jesmyc
pfpaau
tutuista
S2RD2
mestradaa
katiuskaflores
damarist
BcB
agdsys
ykro
Calizman
Ronald_MacKay
donttrythis
spam
demuxer
toigt
abasme
SiRGt
rodrigopolo
espyder
paolamurias
vochomaster
guatemalajoven
jepser
jmangt
freddier
elQuique
carlosakita
lolplaying
YuryBlack
miguelin
dic7
jeanfer
Friends: 119 Followers: 204

Categories

Sitios amigos

Algunos Derechos Reservados

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