• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 133
  • Last Modified:

Placing Objects over a TextBox/RichTextBox

I want to place a line over a richtextbox, but when I draw it over, it is hidden by the richtextbox.  How can I have the line appear on top of the text area?


1 Solution
As far as I know, the line only draws on the form itself.  It won't go over any control.  You could use 2 richtextboxes, and make the them join with the same coordinates as the line.  That would give the appearance of a line.
SlingBladeAuthor Commented:
The line needs to move over the textbox and I don't think VB would accomplish that very smoothly as far as the visual aspect is concerned.  Not to mention the additional programming overhead that would cause.

I think I figured it out.  I am using a picturebox to load a line image and "floating" that over the rich text box

PAQ'd and all 25 points refunded.

Community Support Moderator @Experts Exchange

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now