[quote=引用 9 楼 sunlyk 的回复:] [quote=引用 6 楼 wwjlee123 的回复:] form4 代码: uname = textBox1.Text.Trim(); pword = textBox2.Text.Trim(); server = comboBox1.Text.Trim();
你是想将Form4中的值传入一个新类中么?
Form4 form4 = new Form4(); form4.server;
[quote=引用 6 楼 wwjlee123 的回复:] form4 代码: uname = textBox1.Text.Trim(); pword = textBox2.Text.Trim(); server = comboBox1.Text.Trim();
[quote=引用 8 楼 wwjlee123 的回复:] [quote=引用 2 楼 CMIC 的回复:] Form4代码也贴出来
[quote=引用 12 楼 sunlyk 的回复:] [quote=引用 11 楼 junjun0509 的回复:] [quote=引用 8 楼 wwjlee123 的回复:] [quote=引用 2 楼 CMIC 的回复:] Form4代码也贴出来
[quote=引用 11 楼 junjun0509 的回复:] [quote=引用 8 楼 wwjlee123 的回复:] [quote=引用 2 楼 CMIC 的回复:] Form4代码也贴出来
[quote=引用 2 楼 CMIC 的回复:] Form4代码也贴出来
form4 代码: uname = textBox1.Text.Trim(); pword = textBox2.Text.Trim(); server = comboBox1.Text.Trim();
Form4代码也贴出来
textBox的名字是什么? 如果是server,那么直接取 static string strConn = "Data Source= " + server.Text + ";User ID=" + uname.Text+ ";Password=" + pword.Text + ""; 你的命名太不懂了吧 一般tx_Server,tx_UserName等等
110,561
社区成员
642,566
社区内容
加载中
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧