
14/03/2005, 12:31
|
 | | | Fecha de Ingreso: noviembre-2004 Ubicación: La Chorrera, Panamá
Mensajes: 86
Antigüedad: 20 años, 4 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 (...)
{
} |