VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Determine if a specific control exists on the specified loaded form

by Justin Coleman (6 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Tue 10th August 1999
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Determine if a specific control exists on the specified loaded form

Rate Determine if a specific control exists on the specified loaded form



    Dim frm As Form
    Dim ctl As Control
    Set frm = frmname
    For Each ctl In frm.Controls
        MsgBox ctl.Name
        If LCase(ctl.Name) = LCase(ctlname) Then
            IsCtl = True
            Exit Function
        End If
    Next
    IsCtl = False
End Function

Download this snippet    Add to My Saved Code

Determine if a specific control exists on the specified loaded form Comments

No comments have been posted about Determine if a specific control exists on the specified loaded form. Why not be the first to post a comment about Determine if a specific control exists on the specified loaded form.

Post your comment

Subject:
Message:
0/1000 characters