Solved

Can't locate object on the form

Posted on 2004-07-30
5
163 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 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 34

Author Comment

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

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.

Question has a verified solution.

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

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
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…
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…
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…

733 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