'This is the code which writes to the text file:
If Main.TabControl1.SelectedIndex = "3" Then My.Computer.FileSystem.WriteAllText("C:\Old Time Radio\MyFavoriteOTR\Texts\CoupleNextDoor.txt", _
Main.CoupleNextDoorDataGridView.CurrentRow.Index, True)
'This is the code which reads from the file (this works fine but is added for clarity)
fileReader = My.Computer.FileSystem.ReadAllText("C:\Old Time Radio\MyFavoriteOTR\Texts\CoupleNextDoor.txt")
CoupleNextDoorDataGridView.FirstDisplayedScrollingRowIndex = fileReader
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
From novice to tech pro — start learning today.
Main.CoupleNextDoorDataGri
-to-
Me.CoupleNextDoorDataGridV
.CurrentRow.Index is never wrong...