Home > Net >  The socket after new open the window, the original text fields to display new message window
The socket after new open the window, the original text fields to display new message window

Time:10-08

Two forms to share a socket connection, but after open a new form, send message server can receive the original form, but the server forwarding data cannot be displayed in the text field, a new form normal functionality,

CodePudding user response:

How to solve the original forms can also be normal display,

CodePudding user response:

Code?

CodePudding user response:

Old forms of display control [images] [images] new form

CodePudding user response:

CodePudding user response:

Met the same problem and the building Lord, I am the Lord form beginreceive server sends the message, and then open a new form to can not accept, after the first thought is the form. The showdialog () block, the original form to accept function to form. The show () still can't accept the server,

CodePudding user response:

With commissioned + event can be solved, can check the related information

CodePudding user response:

refer to fifth floor fart!! Little magic fairy reply:
met the same problem and the building Lord, I am the Lord form beginreceive server sends the message, and then open a new form to can not accept, after the first thought is the form. The showdialog () block, the original form to accept function to form. The show () still can't accept the server,


Solved the building Lord, you can refer to this article, with asynchronous delegate the reason about the same, and I want to set up new forms to start form the accept function blocked, form. The show doesn't address https://www.cnblogs.com/ITyouxiang1994/p/4220895.html
  •  Tags:  
  • C#
  • Related