title: Updating Value using key of the dictionary
body: <p>I am using a <code>Dictionary</code> in VB.NET Windows application.</p>
  
  <p>I have added several values in a <code>Dictionary</code> and I want to edit some values using their key.</p>
  
  <p>Example:
  Below we have a DATA table and I want to update the value of the key - "DDD" to 1 </p>
  
  <blockquote>
  <pre><code>AAA - "0"   
  BBB - "0" 
  CCC - "0' 
  DDD - "0"
  </code></pre>
  </blockquote>
  
  <p>How can this be done? </p>
  
  <pre><code>For Each kvp As KeyValuePair(Of String, String) In Dictionary1
      If i = value And kvp.Value &lt;&gt; "1" Then
          NewFlat = kvp.Key.ToString
          ---------------------------------------------
          I want to update set the Value 1 of respective key.
          What should I write here ? 
          ---------------------------------------------
          IsAdded = True
          Exit For
      End If
      i = i + 1
  Next kvp
  </code></pre>