Hi How can I to Enabled and Disabled all controls (Textbox and Labelss) inside Frame using Loop TIA
Well, you can disable the frame and then all controls on it are no longer enabled. Else Code: Dim v As Variant For Each v In Me.Controls If v.Container Is Frame1 Then v.Enabled = False ' or true as needed Next
Dim v As Variant For Each v In Me.Controls If v.Container Is Frame1 Then v.Enabled = False ' or true as needed Next
Insomnia is just a byproduct of, "It can't be done" Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum. Read the HitchHiker's Guide to Getting Help on the Forums. Here is the list of TAGs you can use to format your posts Here are VB6 Help Files online {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor} {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}
Forum Rules