CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2001
    Posts
    42

    Edit properties of all textboxes on a form

    Hi,

    I've got a question about how to edit a property of all textboxes on a givin form.

    I've tried this, but the error occurs that the types don't match.


    Dim obj as TextBox
    for Each obj In Form_Test
    Form_Test.obj.Locked = false
    next obj





    I need to do this in a VBA application for MS Acces 2000.




  2. #2
    Join Date
    Feb 2000
    Location
    Ireland
    Posts
    808

    Re: Edit properties of all textboxes on a form


    Dim Ctl as Control
    for each Ctl In me.Controls
    If Typeof ctl is textbox then
    ctl.locked=false
    end if
    next





Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured