Two textBox and one scroolBar (Visual studio c++ 2010)

Hello everyone and happy holiday, im trying to make two text boxes to be able to be scrolled with one scrollbar and i want to use vScrollBar and hScroolBar
.
And i think i should be able to achieve this using this code:

1
2
myTextBox->HorizontalOffset = myhScrollBar->Value
myTextBox->VerticalOffset = myvScrollBar->Value


But there is a problem i get this error:
(: error C2039: 'VerticalOffset' : is not a member of 'System::Windows::Forms::TextBox')

Here is link to my screenshoot.

http://s14.postimg.org/pf03n2mlt/Text_Boxproblems_rgb.png

Thank you for reading. All help much appreciated.

Last edited on
I remembered I've got a similar problem before. However, it was about two C# textboxes:

http://www.kettic.com/winforms_ui/csharp_guide/editor_textbox.shtml

However, I didn't got the problem fixed even I read over all the textbox control tutorial:

http://www.kettic.com/winforms_ui/csharp_guide/editor_textbox_get_started.shtml

Hope your question soon be fixed.
Topic archived. No new replies allowed.