I have a program that makes creates a shape from a set of coordinates in a textbox, but i want it to put the shape as a part of a picture box instead of the form. Is this possible?
Here is the code i have so far:
[Edited by sp007 on 11-29-2000 at 09:54 PM]Code:Public WithEvents myshape As Shape Private Sub Create_Shape() MyCoords = Split(Text11.Text, ",") Set myshape = Controls.Add("VB.Shape", "abc") myshape.left = MyCoords(0) myshape.top = MyCoords(1) myshape.width = MyCoords(2) myshape.height = MyCoords(3) myshape.Shape = 0 myshape.BorderColor = &HFF00FF myshape.BorderWidth = 3 myshape.Visible = True End Sub




Reply With Quote