Solved

Can't locate object on the form

Posted on 2004-07-30
5
162 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
  • 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 33

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 250 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 33

Author Comment

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

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

805 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