i am trying to use an Ole bound control on my form. I want it to be of class Paint.Pictre when the form opens up.
I do the following in the Form_load() event.
Me.OleCtl.Class = "Paint.Picture"
Me.OleCtl.OLETypeAllowed = acOLEEmbedded
Me.OleCtl.Action = acOLECreateEmbed
This works good. and i get to see the Paint obj in the control when i open the form.
I would like to know a way to control the default size of the Paint document inside this control. The size of my ole control frame (on the form) is fixed while the default size that the paint document takes inside this frame is much bigger and results in a clipped view of the document.(and results in showing up scroll bars).
Is there a way to use the SourceItem property ? just a possible clue. Usually i read 'refer the Ole server's documentation' but dont know where to find one for Paint.