Ver Mensaje Individual
  #2 (permalink)  
Antiguo 03/06/2009, 10:10
Avatar de Dradi7
Dradi7
 
Fecha de Ingreso: junio-2008
Ubicación: Peru - Lima
Mensajes: 1.518
Antigüedad: 15 años, 11 meses
Puntos: 220
Respuesta: COMBOBOX y las excepciones de NOTHING...

no trates de usar ni el trim ni el tostring si sabes que te va a devolver nulo
prueba asi
Código vb.net:
Ver original
  1. if ComboBox_GrupoUs.SelectedItem IsNothing then
  2.    Modulo_General.mostrarMsgbox("El Usuario debe pertenecer obligatoriamente a un Grupo")
  3.    return false
  4. end if

o

Código vb.net:
Ver original
  1. if ComboBox_GrupoUs.SelectedIndex = -1 then
  2.    Modulo_General.mostrarMsgbox("El Usuario debe pertenecer obligatoriamente a un Grupo")
  3.    return false
  4. end if
__________________
La clave de todo triunfador es eliminar todas sus excusas y sus limitaciones