Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier
Viewing all articles
Browse latest Browse all 1529

VB6 UserControl-Transparency Container

$
0
0
'TransparencyOcx(Transparent container)
'Like PictureBox(NOT for Set Picture),Can Put Controls on it
'Don't Remove Area() Control

change code in sub ShowAllChildArea:
Code:

Sub ShowAllChildArea()
Dim Obj As Control
Dim id As Long
For Each Obj In ContainedControls
    id = id + 1
    If id > Area.Count - 1 Then Load Area(id)
    Area(id).Width = Obj.Width
    Area(id).Height = Obj.Height

    Area(id).Left = Obj.Left
    Area(id).Top = Obj.Top
    Area(id).Visible = True
Next
End Sub

Attached Images
 
Attached Files

Viewing all articles
Browse latest Browse all 1529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>