试一试
bool okSetToWndRect(IntPtr hBoard,IntPtr hwnd);public class from_pic:System.Windows.Forms.Form
……
private void pic_show()
{
IntPtr lHandle;
bool bReturn;
……
lHandle=this.Handle;  //获得窗口句柄
bReturn=OKClass.okSetToWndRect(lhBoard,lHandle);
MessageBox.Show(bReturn.ToString(),"ts:");
}
难道在C#中获得句柄是不对的吗?在VB调用好象正常的。