title: string comparison doesnt work In VB.NET
body: <p>My string comparison doesnt work.I tried compare,equals ,= and all of these methods doesnt work.
  Here's my code:</p>
  
  <pre><code>Dim activeChild2 = Me.ActiveMdiChild
      If TypeOf activeChild2 Is Window Then
          Dim activeChild As Window = Me.ActiveMdiChild
          If (Not activeChild Is Nothing) Then
              If activeChild.CTR_User.ToString = activeChild.User_name.ToString Then
                  Call activeChild.Edition()
  
                  Select Case Trim$(UCase(activeChild.Name))
                      Case "FRM_MISSION"
                        'treatment
                      Case "FRM_TACHE"
                          'treatment
  
                  End Select
              Else
                  MsgBox("Error modification!!!!", MsgBoxStyle.Critical)
              End If
          End If
      End If
  </code></pre>
  
  <p>The problem is in  If activeChild.CTR_User.ToString = activeChild.User_name.ToString Then .In spite of having same string toto=toto the code always fires to the else clause and show me the msgbox </p>
  
  <p>Regards</p>