private string UserName;
        private string UserPwd;
        //登陆系统
        private  void sendLoginInfo()
        {
            this.UserName = this.txtUserName.Text;
            this.UserPwd = this.txtUserPwd.Text;
我现在要怎么用上面图片的格式把两个文本框里的数据发过去请求登录?
麻烦帮帮忙啊  明天要交了

解决方案 »

  1.   

    小D,不是只有大哥才会写代码的~~
    还有你至少要会socket通信吧?!什么都不会,给你了,你也还是不懂啊。交了也是白交。
      

  2.   

      this.UserName = this.txtUserName.Text;
      this.UserPwd = this.txtUserPwd.Text;
    这两个都是字符串,发送端要转换成在网络上发送的字节,而接收端再转回字符串。