Getting instance of the Desktop object from a hosted control. RRS feed

  • Question


    Is there any way I can get the instance of the desktop object from my hosted control? One was is to move up the hierarchy using Control.Parent but I dont want that hard coding. Kindly let me know if there is any other way.
    Wednesday, June 4, 2008 12:14 PM

All replies

  • Hi,

    I don't know if i understand you in a correct way! but you could use WIN32API library it has many functions like:




    if you need some examples i can feed you



    Wednesday, June 4, 2008 2:21 PM
  • The thing is that I need to call some methods of the desktop object, from my hosted control. For that I need to get the object instance. By using Win32API I can get the window handle but dont think we can get the object instance.


    Thursday, June 5, 2008 4:20 AM