Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/03/2005, 12:31
Avatar de RicaJ0625
RicaJ0625
 
Fecha de Ingreso: noviembre-2004
Ubicación: La Chorrera, Panamá
Mensajes: 86
Antigüedad: 19 años, 7 meses
Puntos: 0
No hay ninguna función que haga esto.

Debes de hacer tu propia función que te retorne el tipo utilizando TypeOf

Ejemplo:

VB.Net
Código:
If TypeOf _Control Is TextBox Then
	...
ElseIf TypeOf _Control Is Label Then
	...
ElseIf TypeOf _Control Is ListBox Then
	...
ElseIf ...
	...
End If
 


C#
Código:
if (_Control is TextBox)
{
...
}
else if (...)
{
 
}