因此,我有一个VB.Net Windows窗体应用程序中的四个文本框字段,当输入数据时,我希望数据项保存为.txt文件与文件名称作为第二个文本框的数据输入。如何将多个文本框字段保存到VB.Net中的.txt文件中
到目前为止,我的代码如下所示:
Private Sub btnSubmit_Click(sender As Object, e As EventArgs) Handles btnSubmit.Click
If txtName.Text And txt_sID.Text = "" Then
MsgBox("Please complete ALL fields before submitting!")
End If
**My.Computer.FileSystem.WriteAllText(file:=txt_sID.Text, txtName.Text, txt_sID.Text, txtScore.Text, txtQuiz.Text, False)**
End Sub
随着星号的代码这个线程的重点和上下文有关的代码的其余部分。
在此先感谢
你的问题是什么?请解释什么不适用于您的代码。 – reduckted