slickskater29
New member
- Joined
- Oct 14, 2008
- Messages
- 1
- Programming Experience
- 1-3
I get an error on the InputBox that says:
Here is my code:
Let me know if you want the whole code.
Thanks!
"Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Microsoft.VisualBasic.CompilerServices.VBInputBox.resources" was correctly embedded or linked into assembly "Microsoft.VisualBasic" at compile time, or that all the satellite assemblies required are loadable and fully signed."
Here is my code:
VB.NET:
Private Sub btnCreate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCreate.Click
Dim strName As String
Dim strAddress As String
Dim intAge As Integer
Dim intCount As Integer
Dim strFileName As String
Dim fileFriends As System.IO.StreamWriter
'Find & Open the File
strFileName = InputBox("Enter file path/name", "File Name Needed")
fileFriends = System.IO.File.CreateText(strFileName)
'Get data & write to file
For intCount = 1 To 3
'get data
MessageBox.Show("Get ready to enter data for friend #" & intCount.ToString())
strName = InputBox("Enter name: ", "Friends Name")
strAddress = InputBox("Enter address: ", "Friends Address")
intAge = CInt(InputBox("enter age: ", "Friends Age"))
'write to file
fileFriends.WriteLine(strName)
fileFriends.WriteLine(strAddress)
fileFriends.WriteLine(intAge.ToString())
Next
'Close file
fileFriends.Close()
End Sub
End Class
Let me know if you want the whole code.
Thanks!
Last edited: