Results 1 to 2 of 2

Thread: synclock doubt

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2003
    Location
    Porto Alegre, RS
    Posts
    210

    synclock doubt

    when i do something like this:

    synclock getType(Label)
    label1.enable = false
    end synclock

    all Labels objects will be disabled???

    Thank you,
    Guilherme Costa

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    I tried it and it didn't disable labels . So if you need to disable them while using SyncLock , something like this should work :

    VB Code:
    1. SyncLock GetType(Label)
    2.  
    3.             For Each c As Control In Me.Controls
    4.                 If TypeOf c Is Label Then
    5.                     c.Enabled = False
    6.                 End If
    7.             Next
    8.  
    9.         End SyncLock

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