Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing a control as a reference
Message
From
30/12/2004 21:39:21
 
 
To
30/12/2004 21:37:30
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
00973454
Message ID:
00973469
Views:
17
>This code, which uses Reflection, works:
>
>
>Public Class Tests
>   Public Sub PassControlRef(ByVal controlRef As Object)
>      Dim TextProp As System.Reflection.PropertyInfo
>      TextProp = controlRef.GetType.GetProperty("Text")
>      If Not TextProp Is Nothing Then
>         TextProp.SetValue( _
>         controlRef, _
>         "Message: Passing this control as an object reference worked.", _
>         Nothing)
>      End If
>   End Sub
>End Class
>
Thanks
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform