?
Solved

Can't locate object on the form

Posted on 2004-07-30
5
Medium Priority
?
165 Views
Last Modified: 2010-05-02
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
0
Comment
Question by:Mike Eghtebas
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 17

Expert Comment

by:zzzzzooc
ID: 11681257
>>How can I change some properties of this line to make it visible and/ or selectable?
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
0
 
LVL 4

Expert Comment

by:SSSoftware
ID: 11681398
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
0
 
LVL 34

Author Comment

by:Mike Eghtebas
ID: 11681418
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
0
 
LVL 17

Accepted Solution

by:
zzzzzooc earned 1000 total points
ID: 11681454
>>To do via "Prope rties Window", I need to physically locate it
No you don't. You can select the object from the drop-down box instead of selecting the object with the mouse. Once selected, you can modify the properties even though you can't see it.
0
 
LVL 34

Author Comment

by:Mike Eghtebas
ID: 11681956
Thank you  zzzzzooc.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month8 days, 14 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question