General information
Category:
Forms & Form designer
on key label "f2" clear events && Just as an escape from test
frm1 = createobject("form")
with frm1
.Height = 400
.Width = 600
.addobject("olb1","oleboundcontrol")
with .olb1
.ControlSource = "Appgen.myPics"
.Height = frm1.height
.Width = frm1.width
.visible = .t.
endwith
.visible = .t.
endwith
read events
So this code was inserted under the command.click of a cmdbutton on a page in a pageframe. I reset the ControlSource of course to match what I need. But I still cannot see the form. Does it have to do with the PageFrame? Or maybe the fact that I call the code form a command.click? In the debugger I can see the form crated, the OLE object created and height and with set to 400,600 on both the form and the OLE control. But the form is not viewable. Does it need to be modal?
Any Ides?
Thanks...
Tom Welch
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only