devxlogo

SetPropertyEx – Set a property of multiple controls/objects

SetPropertyEx – Set a property of multiple controls/objects

' Set a property of multiple controls/objects in a single step,'  and return True if successful' Note: requires the SetProperty function'' Example: SetPropertyEx("Text", "OK!!!", TextBox1, Button1, Button2)Function SetPropertyEx(ByVal propertyName As String, ByVal val As Object, _    ByVal ParamArray objs() As Object) As Boolean    Dim obj As Object    Try        For Each obj In objs            SetProperty(obj, propertyName, val)        Next    Catch        Return False    End TryEnd Function

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist