using option compare with string.equals wont work, but changing the compare method to the example below will produce the results that you are after
using option compare example
option compare text
Public Class Form2
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim a As String = "Hi"
Dim b As String = "HI"
If a = b Then
MessageBox.Show("TRUE")
Else
MessageBox.Show("FALSE")
End If
End Sub
End Clas
Please note that using
option compare on its own defaults to binary and the above example wont work as its sort order is different to text
as shown by the msdn article that you have provided, the
remarks section of the article with
Text compare it isn't case sensitive, but binary compare is e.g. A < B < a < b