Kevin,
Do you mean VB or VFP7?
In VFP you can do stuff like this.BorderColor = rgb( 255, 0, 0 ) in the MouseEnter() and this.BorderCOlor = rgb( 0, 0, 0 ) in the MouseLeave().
I am having mixed results in getting the the events to actually fire though in horizontal and vertical lines. Because no matter how wide you have BorderWidth set the event only triggers when you are at the center of the line.
>Can someone show me how to determine MouseEnter and MouseLeave
>events for a Line control in VB?
>
>I want to know when the user moves the mouse over the control,
>and I want to be able to code for both the mouse entering and
>leaving the control.