Quantcast
Channel: VBForums - COM and ActiveX
Viewing all articles
Browse latest Browse all 62

[VB6] - control size values to parent scalemode

$
0
0
i have 1 control(that i build) with autosize porperty... build by me and works. i can change the size of control to container(picturebox or form) scalemode:
Code:

If blnAutoSize = True Then
        UserControl.Width = (lngImageWidth + IFF(BorderStyle = BorderFixed, 4, 0)) * Screen.TwipsPerPixelX
        UserControl.Height = (lngImageHeight + IFF(BorderStyle = BorderFixed, 4, 0)) * Screen.TwipsPerPixelY
end if

(i have some problems to express me:()
ok.. now i have the control size to the container size, but if i need use the control size(in control project), it's a big problem. the values don't match:(
can anyone explain to me something about the scalemode size between control(in project) and it's container(when the control is used)?

Viewing all articles
Browse latest Browse all 62

Trending Articles



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