I want to be able to resize the Microsoft Rich Textbox control to the size of its contents (Just the height, the width will remain constant). I want a function, that when it is called, will return the value I need to resize the RTBs height property. Third times a charm, I hope. Previously this request has been posted with some pretty strange results. So I will try to be as specific as possible about what I want. No subclassing, hooks, WindowProc functions. API is preferred for determining the contents size, I just want to point out that I don’t want a hooked window process running all during the application. The determination of the contents size must be precise! It must allow for as little text or as much text, different font sizes, pictures, etc… that are inserted into the control. That means, please don’t send me anything that just takes a line count and multiples it for a result, line sizes can differ. Also, 2 ways that I found, so I don’t want the same ways sent to me, 1 ??" resizing the control and checking for the scrollbars visible property and 2 ??" sending contents to another control that has an autosize property. Send a working example to be considered. The working example should include a richtextbox, command button and label. When the command button is clicked, the richtextbox is resized to the size of its contents. The label should tell me the rich textbox’s height.
## Deliverables
Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. Complete copyrights to all work purchased.
## Deadline information
ASAP