I have a menu strip which I am trying to write the code for. It doesn't work for what reason I don't know when I click on the menu item.
Literally nothing happens. I put a breakpoint on the first line of code in the event handler and the debugger never got there.
Literally nothing happens. I put a breakpoint on the first line of code in the event handler and the debugger never got there.
Private Sub RangeProjectionsToolStripMenuItem_Click(sender As System.Object, e As System.EventArgs) Handles RangeProjectionsToolStripMenuItem.Click ' code here to open the file in the textbox
Dim strFile As String = ""
If DoesDriveExist("X:\") Then
strFile = "X:\QueryTxtFiles\RangeProjections.txt"
Else
If Mapx() Then
strFile = "X:\QueryTxtFiles\RangeProjections.txt"
Else
strFile = ""
End If
End If
If File.Exists(strFile) Then
Dim strText As String = File.Open(strFile, FileMode.Open).ToString()
Debug.Print(strFile)
tbTextDisplay.Text = strText
Else
tbTextDisplay.Text = "The requested file does not exist."
End If
End Sub