[Mono-osx] How to get Carbon view for WinForms UserControl?

Alex Shulgin alexander.shulgin at yessoftware.com
Tue Feb 10 09:41:54 EST 2009


I'm trying to embed WebKit into a view created by WinForms for a 
UserControl object:

class MyBrowser : UserControl
	public MyBrowser()
		// ?

I know how to use low-level Carbon/Cocoa API functions like 
HIWebViewCreate, HIViewAddSubview, etc.  The best thing I could do was 
embedding the WebKit view into the form's content view.

This is mainly because the only way to move from control's Handle to 
some view I've found is using HIViewGetWindow + HIViewGetRoot.

But how do I get the view corresponding to the bounding box of MyBrowser 
object?  Is there such view at all?

Any help/references are appreciated. :)


More information about the Mono-osx mailing list