QuestionWord wrap Option

Posts 1–10 of 10 · Page 1 of 1
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:
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
Any ideas?


+1 Thanks +Rep

Thanks.
Quote Originally Posted by Web-Designer View Post
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:
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 = True
        End If

        If WordWrap.Checked = False Then
            TextArea.WordWrap = True : WordWrap.Checked = False
        End If
    End Sub
Any ideas?


+1 Thanks +Rep

Thanks.
What I don't understand if why you want it to uncheck?
Code:
        If WordWrap.Checked = True Then
            Textarea.WordWrap = False
            Textarea.Refresh()
        Else
            Textarea.WordWrap = True
            Textarea.Refresh()
        End If
I want it unchecked when word wrap is off, checked when word wrap is active.

And if I refresh it then the text that would be already there would be deleted
Code:
Private Sub WordWrap_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles WordWrap.Click

WordWrap.Checked = Not WordWrap.Checked
TextArea.WordWrap = WordWrap.Checked

End Sub
Fixed !!
Quote Originally Posted by Web-Designer View Post
I want it unchecked when word wrap is off, checked when word wrap is active.

And if I refresh it then the text that would be already there would be deleted
No it does not delete everything.
plus do this in a timer...
All good now

/close??
Quote Originally Posted by Obama View Post
All good now

/close??
Had to wait for OP !!
You guys need to get on msn for better support.
Quote Originally Posted by SmartAlley View Post
You guys need to get on msn for better support.
Nah, we want the help on the site.
Quote Originally Posted by Obama View Post
Nah, we want the help on the site.
I know what's your target
Posts 1–10 of 10 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Talk with us