Solved

Can't locate object on the form

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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

728 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