Page 1 of 1

Enable Radiobutton when at end of richtextbox

Posted: Thu Sep 11, 2014 7:41 pm
by jtlusco
I want to get my Agree radio button to become enabled when you retch the end of the text in the rich textbox. I have added a sample with everything working but this one part.

Re: Enable Radiobutton when at end of richtextbox

Posted: Fri Sep 12, 2014 8:50 am
by muttley1968
Please Fined a working version attached.

The main control is not mine I found it after some searching online I just added the updated bit to your timer and change the message box system a little for you as well.

I hope this is what you were after.

Re: Enable Radiobutton when at end of richtextbox

Posted: Fri Sep 12, 2014 10:29 am
by XTechVB
Add this in you RichTextBox's VScroll event.
Code: Select all
RadioButton1.Enabled = RichTextBox1.GetPositionFromCharIndex(RichTextBox1.Text.Length - 1).Y < RichTextBox1.Height
The radio button will be enabled when the user sees the last character in the RichTextBox.

Re: Enable Radiobutton when at end of richtextbox

Posted: Fri Sep 12, 2014 12:58 pm
by jtlusco
Works perfectly thanks.

Re: Enable Radiobutton when at end of richtextbox

Posted: Fri Sep 12, 2014 7:08 pm
by muttley1968
Sorry to be a pain but who's works mine or the other guys