I just re-looked at your question. What did you mean by Edit Mode? Did you mean when someone uses a TextBox? If so, just put the above code in the GotFocus and LostFocus events of the TextBox.
Code:
Private Sub Text1_GotFocus()
'Enables the Button when the TextBox gets the Focus
For I = 1 To Toolbar1.Buttons.Count
Toolbar1.Buttons.Item(I).Enabled = True
Next I
End Sub
Private Sub Text1_LostFocus()
'Disabled the Buttn when the TextBox gets the Focus
For I = 1 To Toolbar1.Buttons.Count
Toolbar1.Buttons.Item(I).Enabled = False
Next I
End Sub