Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OleObject and making it Visible

Status
Not open for further replies.

cenwesi

Programmer
Jan 13, 2003
14
US
Hi is there a way to make an oleobject visible...case in point, i dont want to make WMP9 visible on my app, i can create an OleObject to it and connect fine...even play a movie/song(mp3). But what i want to do next in the case of a movie is display that oleobject. I noticed one of the oleobject property is handle, but i can't access it and even if i say handle(myoleobject) i get zero.... Anyone have any idea
 
I seriously doubt that will work...but will give it a try
 
If you are using OLEObject var to ConnectToNewObject(...), use:

ole_1.Visible = TRUE

However, if you are using an OCX control placing it on the window, try:

ole_1.Object.Visible = TRUE

or the above (if this does not work).

---
PowerObject!
-----------------------------------------
PowerBuilder / PFC Developers' Group
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top