here is my code
error msg is showing
An error occurred creating the form. See Exception.Inner Exception for details. The error is: String reference not set to an instance of a String.
Parameter name: s
i cant able to understand y this error is for
Code:
Dim objReader As String = "c:\New Text Document.inf"
Dim sLine As String = ""
Dim Lines() As String
Dim TextFromTheFile As String
Dim LineSeparator() As String = {Environment.NewLine}
Dim arrText As ArrayList
Dim i As Integer
Dim z As String
Dim dt As DateTime = DateTime.Parse(z)
If My.Computer.FileSystem.FileExists(objReader) Then
TextFromTheFile = My.Computer.FileSystem.ReadAllText(objReader)
Lines = TextFromTheFile.Split(LineSeparator, System.StringSplitOptions.RemoveEmptyEntries)
Button1.Text = Lines(2).Substring(Lines(2).IndexOf("=") + 2)
z = Lines(4).Substring(Lines(4).IndexOf("=") + 2)
i = Lines(1).Substring(Lines(1).IndexOf("=") + 2)
End If
If DateTime.Now.TimeOfDay > dt.TimeOfDay Then
MessageBox.Show("The current time is " & DateTime.Now)
End If
An error occurred creating the form. See Exception.Inner Exception for details. The error is: String reference not set to an instance of a String.
Parameter name: s
i cant able to understand y this error is for
Comment