Word wrap Option
Okay I have the dropdown menu, button with "Wordwrap" and I have it checked.
How would I have it when its clicked and if its checked it un-checks it and makes TextArea.Text's word wrap off, but if its clicked again (unchecked) then it gets checked again and word wrap is active again.
I tried this but doesn't work:
Any ideas?
+1 Thanks +Rep
Thanks.
How would I have it when its clicked and if its checked it un-checks it and makes TextArea.Text's word wrap off, but if its clicked again (unchecked) then it gets checked again and word wrap is active again.
I tried this but doesn't work:
Code:
Private Sub WordWrap_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles WordWrap.Click
If WordWrap.Checked = True Then
TextArea.WordWrap = False : WordWrap.Checked = False
End If
If WordWrap.Checked = False Then
TextArea.WordWrap = True : WordWrap.Checked = True
End If
End Sub
+1 Thanks +Rep
Thanks.



