private void btnShowBasView_Click(object sender, EventArgs e) { try { QtDllNative.ShowBasWindow(this.tabPageBas.Handle); } catch (System.Exception ex) { MessageBox.Show(ex.Message); } }
private void ShowPscada_Click(object sender, EventArgs e) { try { //ShowQtDialog(); //_iscsMockClr.Initialize(this.Handle); //_iscsMockClr.ShowWindow(); QtDllNative.ShowScadaWindow(this.tabPagePscada.Handle); //var pointer = QtDllNative.GetScadaWindow(); //var ctrol = Control.FromChildHandle(pointer); //if (ctrol != null) //{ // tabPageBas.Controls.Add(ctrol.Controls[0]); //} } catch (System.Exception ex) { MessageBox.Show(ex.Message); } }
public Form1() { InitializeComponent(); QtDllNative.InitializeQtLib(); }