PROBLEM: getting a new control in front of others during runtime 
Author Message
 PROBLEM: getting a new control in front of others during runtime

I'm working on a user defined control, which adds instances of Label(0) to
itself, according to the bound database. The newly loaded labels appear
behind the previous loaded labels! What can I do to make them visible during
runtime without being blocked by others?

code:
dim x as Integer
dim rsGrid as Recordset

If rsGrid.RecordCount > 0 then
    Do Until rsGrid.EOF
        x = rsGrid.AbsolutePosition + 1
        load Label(x)
        with Label(x)
            .Caption = rsGrid(6)
            .Left = rsGrid(3) * 15
            .Width = rsGrid(4) * 15
            rsGrid.MoveNext
        end with
    Loop
End If

will it help, to work with collection objects?

I'd appreciate your help...
Jo



Sun, 01 Sep 2002 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. sstab control - resizing during runtime problem

2. Getting the function's name during runtime while running in the scope of the function

3. Creating a new instance of MSMasked during runtime

4. Setting Crystal Reports Properties during Runtime Problem in VB

5. Check for controls on form during Runtime

6. Need help changing Data Control Recordsource during runtime

7. Q: Graphic/Outline to show selected control during Runtime

8. Adding Controls During Runtime

9. Can I create a control during runtime?

10. Graphic/Outline to show selected control during Runtime

11. Adding controls to forms during runtime

12. Create a control during runtime

 

 
Powered by phpBB® Forum Software