Results 1 to 3 of 3

Thread: change property in one control, changes value in all other instances...

  1. #1

    Thread Starter
    Lively Member cargobay69's Avatar
    Join Date
    Nov 2001
    Location
    Kessel Prison Camp
    Posts
    97

    change property in one control, changes value in all other instances...

    ok, i made this cool little active x control that is used to monitor the computers on our company's network by giving a visual representation of its status (connection speed, ip address, and other stuff). Two properties of the control are "ComputerName" and "Domain". Whenever I adjust either of these properties (either during runtime or designtime) the values for all other instances of the control also change to the new value. I don't know if the problem is related to a coding error, if its associated to the nature on the control and exactly what it is doing, or if it has something to do with active x controls in general.
    If this is somthing that anyone has ever heard of happenning, any ideas of how to correct this are greatly appreciated,

    Thanks
    Darrin@CB69
    -----------------------------------------------
    Arrogance kills brain cells
    -----------------------------------------------
    Private Sub Sandwich (big As Byte)
    On Error GoTo Pub

  2. #2
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    Can we see the code for that part of your ActiveX (if it's not too big)?

  3. #3

    Thread Starter
    Lively Member cargobay69's Avatar
    Join Date
    Nov 2001
    Location
    Kessel Prison Camp
    Posts
    97

    resolution...

    AHA! Actually I just figured it out for myself. If anyone is interested, this is what happened:
    The values for the two properties in question, along with a couple other properties, were being stored in global (Public) variables that were declared in a seperate module (not the control's module). I removed their declarations from this location the re-declared them on the control's module as private. I couple other minor modifications were necessary throughout the project to accomodate this change, but after that, it worked fine with no problems (YAY!)
    Darrin@CB69
    -----------------------------------------------
    Arrogance kills brain cells
    -----------------------------------------------
    Private Sub Sandwich (big As Byte)
    On Error GoTo Pub

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