Пример #1
0
		public frmMain()
			: base()
		{
			if (m_vb6FormDefInstance == null)
			{
				m_vb6FormDefInstance = this;
			}
			//This call is required by the Windows Form Designer.
			InitializeComponent();
			ReLoadForm(false);
		}
Пример #2
0
        //UPGRADE_NOTE: (2041) The following line was commented. More Information: http://www.vbtonet.com/ewis/ewi2041.aspx
        //[DllImport("user32.dll", CharSet = CharSet.Ansi, SetLastError = true, ExactSpelling = true)]
        //extern public static int SetParent(int hWndChild, int hWndNewParent);

        internal static void SetParentChild(Form Parent, frmMain Child)
        {
            SKSPhas2Support.PInvoke.SafeNative.user32.SetParent(Parent.Handle.ToInt32(), Child.Handle.ToInt32());
        }
Пример #3
0
 //UPGRADE_NOTE: (2041) The following line was commented. More Information: http://www.vbtonet.com/ewis/ewi2041.aspx
 //[DllImport("user32.dll", CharSet = CharSet.Ansi, SetLastError = true, ExactSpelling = true)]
 //extern public static int SetParent(int hWndChild, int hWndNewParent);
 internal static void SetParentChild(Form Parent, frmMain Child)
 {
     SKSPhas2Support.PInvoke.SafeNative.user32.SetParent(Parent.Handle.ToInt32(), Child.Handle.ToInt32());
 }