How to locate the property page during control design:
Ihtmldocument3 is what you want.
Public labelcomponenteditorform (componenteditorlabel designcomponent)
{
This. designcomponent = designcomponent;
Int innerleft = convert. toint32 (designcomponent. Style ["clientx"]);
Int innertop = convert. toint32 (designcomponent. Style ["clienty"]);
Idesignerhost host = (idesignerhost) designcomponent. Site. getservice (typeof (idesignerhost ));
Controldesigner labeldesigner = (controldesigner) host. getdesigner (designcomponent );
Object parent = labeldesigner. behavior. getattribute ("document", false );
Ihtmldocument2 Doc = (ihtmldocument2) parent;
Mshtml. ihtmlwindow3 window = (ihtmlwindow3) Doc. parentwindow;
Int screenleft = Window. screenleft;
Int screentop = Window. screentop;
This. Location = new point (screenleft + innerleft, screentop + innertop );
//
// Required for Windows Form Designer support
//
Initializecomponent ();
//
// Todo: add Any constructor code after initializecomponent calls
//
}
The effect is as follows: