Mike Eghtebas
asked on
Can't locate object on the form
I have a line called "SideLine". It's property set such that it can't be seen or selected (Top=0, Left=0, Y1=Y2=0-X1=X2) with no border and possible Visible=False.
I can locate it on the Object Browser and see various property listed for it on the Object Browser interface.
How can I change some properties of this line to make it visible and/ or selectable?
Mike
I can locate it on the Object Browser and see various property listed for it on the Object Browser interface.
How can I change some properties of this line to make it visible and/ or selectable?
Mike
FYI,
The Line control has no events associated with it.
Therefore It cannot be manipulated at "RUN" time using it's oen events (eg. Mouse Down / MouseMove.
Youcan move and change it at "RUN" time but the action has to be initiated through another control.
Ed
The Line control has no events associated with it.
Therefore It cannot be manipulated at "RUN" time using it's oen events (eg. Mouse Down / MouseMove.
Youcan move and change it at "RUN" time but the action has to be initiated through another control.
Ed
ASKER
To do via "Prope rties Window", I need to physically locate it; and because I can't locate it to select, I can't use it.
True, on run-time using some event , I can change it as I whish but it will go back where it was as soon as I go to design view.
Any other suggestions?
Mike
True, on run-time using some event , I can change it as I whish but it will go back where it was as soon as I go to design view.
Any other suggestions?
Mike
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you zzzzzooc.
Do you mean within the IDE? If so, go to "View" -> "Properties Window" (or press "F4"). You can then select the object from the drop-down list and change the properties back.
If you mean to do such programatically at run-time, something such as the below would work...
Private Sub Form_Load()
With Line1
.X1 = 100
.X2 = 100
.Y1 = 400
.Y1 = 400
.Visible = True
End With
End Sub