Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get all the lables
Message
From
20/12/2006 22:04:11
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
How to get all the lables
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01179415
Message ID:
01179415
Views:
56
Hi all,

How could I get all the labels in the webform? I have tried the following but I couln't get any label, am I missing out something? Any advice would be appreciated, thanks.
For Each lblControl As Control In Me.Form.Controls
    If TypeOf lblControl Is Label Then
       ' Do something
    End If
Next
Next
Reply
Map
View

Click here to load this message in the networking platform