using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace TestClass { public partial class Form1 : Form { public Form1() { InitializeComponent(); } // ** I did this from a toolbar, but could go anywhere. ** private void xonclick(object sender, EventArgs e) { //********************************************* myserver.myclass xform = new myserver.myclass(); int prnt = (int) this.Handle; int y = xform.SetParent(prnt); //********************************************* } } } >