예제 #1
0
        private int netConnectStatusIndex = 1;  // 网络连接标志

        public NetworkForm()
        {
            InitializeComponent();                                                // 容器初始化
            network = this;
            NetworkForm_SetLocalHost();                                           // 设置获取到的本机IP
            System.Windows.Forms.Control.CheckForIllegalCrossThreadCalls = false; // 问题:线程间操作无效:从不是创建控件“textBox1”的线程访问它
        }
예제 #2
0
        /******************生成【加解密】窗口【end】**************************************************/


        /******************生成【串口、网口、HTTP】窗口【start】***************************************/
        private void Network_ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            NetworkForm networkForm = new NetworkForm();

            SetFormInPanel(networkForm);
            networkForm.ParentForm.Width  = 1000;
            networkForm.ParentForm.Height = 650;
        }