Enable Radiobutton when at end of richtextbox

If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
5 posts Page 1 of 1
Contributors
User avatar
jtlusco
VIP - Donator
VIP - Donator
Posts: 138
Joined: Mon Jul 12, 2010 11:28 pm

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.
You do not have the required permissions to view the files attached to this post.
Have you been scripted today
Image
User avatar
muttley1968
Hardcore Programmer
Hardcore Programmer
Posts: 622
Joined: Thu Jun 17, 2010 11:54 pm

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.
You do not have the required permissions to view the files attached to this post.
User avatar
XTechVB
VIP - Site Partner
VIP - Site Partner
Posts: 727
Joined: Thu May 20, 2010 10:32 am

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.
Last edited by XTechVB on Fri Sep 12, 2014 10:50 pm, edited 1 time in total.
You can find me on Facebook or on Skype mihai_92b
User avatar
jtlusco
VIP - Donator
VIP - Donator
Posts: 138
Joined: Mon Jul 12, 2010 11:28 pm

Works perfectly thanks.
Have you been scripted today
Image
User avatar
muttley1968
Hardcore Programmer
Hardcore Programmer
Posts: 622
Joined: Thu Jun 17, 2010 11:54 pm

Sorry to be a pain but who's works mine or the other guys
5 posts Page 1 of 1
Return to “Coding Help & Support”