RichTextBox statusbar overlays horizontal scroll ba

G

Guest

I created a form containing a RichTextBox and set the ScrollBars property to
ForcedBoth and WordWrap is False; however, when I add a StatusBar to the form
the horizontal scroll bar disappears and is not available.

in Design mode i can see the StatusBar overlays the scroll bar, i would have
thought (hoped) the scroll bar would adjust upward to allow both the
StatusBar and the scroll bar to be visible.

Any suggestions on how i can have a horizontal scroll bar at bottom of the
from AND a status bar too.

thanks
 
H

Herfried K. Wagner [MVP]

Mark03057 said:
I created a form containing a RichTextBox and set the ScrollBars property
to
ForcedBoth and WordWrap is False; however, when I add a StatusBar to the
form
the horizontal scroll bar disappears and is not available.

in Design mode i can see the StatusBar overlays the scroll bar, i would
have
thought (hoped) the scroll bar would adjust upward to allow both the
StatusBar and the scroll bar to be visible.

Any suggestions on how i can have a horizontal scroll bar at bottom of the
from AND a status bar too.

I assume that you docked the richtextbox ('Dock' set to 'Fill', for
example). Select the statusbar in the designer and choose "Send to back"
from its context menu.
 
G

Guest

Herfried
thank you very much. that solved the problem.
Mark

PS: Now what bothers me is how, without this newsgrup, i would have found
that functionality (the right mouse click on statusbar) in the documenation.
 
M

Mehdi

PS: Now what bothers me is how, without this newsgrup, i would have found
that functionality (the right mouse click on statusbar) in the documenation.

As usual with every problem in computing: first try to find the reason of
the problem. In your case it was obviously a UI control layout problem, and
more precisely a z-order problem. Then find books, articles and
documentation about this topic. Read and understand all that. The solution
will then be obvious to you. This is a slow and sometimes boring process
but well rewarding at the end. By the way, the solution in the doc was
here:
<http://msdn.microsoft.com/library/d...-us/vbcon/html/vbtsklayeringobjectsonform.asp>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top