Results 1 to 16 of 16

Thread: [RESOLVED] Academic Label Questions

Hybrid View

  1. #1
    PowerPoster gavio's Avatar
    Join Date
    Feb 2006
    Location
    GMT+1
    Posts
    4,462

    Re: [RESOLVED] Academic Label Questions

    [Edited by MartinLiss]

    .Left, .Top, .Width and .Height properties can be read. Btw... it's not logical that they can be assigned, but cannot be read. How can you assign something when you don't know what it is, that you're asigning???

  2. #2

    Thread Starter
    Hyperactive Member Fedhax's Avatar
    Join Date
    Aug 2006
    Posts
    293

    Re: [RESOLVED] Academic Label Questions

    Quote Originally Posted by gavio
    [Edited by MartinLiss].Left, .Top, .Width and .Height properties can be read. Btw... it's not logical that they can be assigned, but cannot be read. How can you assign something when you don't know what it is, that you're asigning???
    Agreed, which is why I posed the question from the position of bewilderment. As it turned out, I was itenerating through all of the objects on my form, and I forgot that one of the objects was a Timer. As we all know, the Timer has no .Top, .Left properties.

  3. #3
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: [RESOLVED] Academic Label Questions

    You probably figured it out but to iterate through all the controls you could do something like

    VB Code:
    1. Dim ctl As Control
    2.    
    3.     On Error Resume Next
    4.     For Each ctl In Controls
    5.         Debug.Print ctl.Name & " " & ctl.Left
    6.         Debug.Print ctl.Name & " " & ctl.Top
    7.     Next

  4. #4
    PowerPoster gavio's Avatar
    Join Date
    Feb 2006
    Location
    GMT+1
    Posts
    4,462

    Re: [RESOLVED] Academic Label Questions

    Quote Originally Posted by Fedhax
    As we all know, the Timer has no .Top, .Left properties.
    That's not quite true. It has this properties, you just can't assign theme during runtime, because it's pointless.

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