Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refer to object or control without the name
Message
From
28/07/2003 16:49:28
 
 
To
28/07/2003 15:57:31
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00814310
Message ID:
00814339
Views:
8
Use code like this:
If TypeOf Me.ActiveControl Is TextBox Then
    [do something]
ElseIf TypeOf Me.ActiveControl Is CommandButton Then
    [do something]
.............
End If

Plamen Ivanov
MCSD .NET Early Achiever and MCAD .NET Charter Member (VB .NET/SQL Server 2000)
MCSD (VB 6.0/SQL Server 2000)

VB (.NET) - what other language do you need in the whole Universe?...

Previous
Reply
Map
View

Click here to load this message in the networking platform