Solved

Making An Object To Stay On Top

Posted on 1998-12-26
6
197 Views
Last Modified: 2010-05-03
I have a frame that I move up and down.
There's a label above it.
When i move the frame up, it goes on top of the label.
I want the frame to disappear beneath the label.
How?
0
Comment
Question by:fax
6 Comments
 
LVL 3

Expert Comment

by:jbil
ID: 1452528
You could use a textbox with properties set to look and act like a label.
0
 
LVL 1

Expert Comment

by:agrillage
ID: 1452529
If you want the label to be contained in the frame you must create the label on the frame to begin with. Try cutting the label and then selecting the frame and choosing paste.
There is a right click option to 'bring to front' also but I don't think it applys when one object is a frame.
0
 

Author Comment

by:fax
ID: 1452530
Nope, sorry If I didn't make myself clear!

I want the Label above the frame (more to the top of the screen)
and then move the frame up, while the label stays on top, so the frame kinda 'slips under' the label. Do u know how you do that??
0
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.

 

Accepted Solution

by:
sujmags earned 50 total points
ID: 1452531
You have a property called ZORDER (check the property window), u need to set this property for the label  so that it appears on top.



0
 
LVL 3

Expert Comment

by:jbil
ID: 1452532
Visual Basic includes 4 graphical controls (Label, Shape, Line, and Image) which do not create Windows and hence consume ZERO USER resources.



Visual Basic Controls: USER Resource Byte Use

   Form .......... 206 | FileListBox .... 160 | PictureClip ..... 72
   MDIForm ....... 420 | Shape ............ 0 | SpinButton ...... 72
   PictureBox ..... 90 | Line ............. 0 | SSCheck ......... 72
   Label ........... 0 | Image ............ 0 | SSFrame ......... 80
   TextBox ........ 76 | Data ............ 72 | SSOption ........ 72
   Frame .......... 74 | Grid ............ 72 | SSCommand ....... 76
   CommandButton .. 66 | OLE ............ 164 | SSPanel ......... 80
   CheckBox ....... 76 | AniPushButton .. 170 | SSRibbon ........ 80
   OptionButton ... 76 | CommonDialog ... 166 |
   ComboBox ...... 136 | CrystalReport .. 166 |
   ListBox ....... 160 | Gauge ........... 80 |
   HScrollBar ..... 80 | Graph ........... 80 |
   VScrollBar ..... 80 | MhState ......... 72 |
   Timer .......... 72 | MSComm .......... 72 |
   DriveListBox .. 160 | MaskEdBox ....... 76 |
   DirListBox .... 160 | Outline ......... 82

As you can see a label is not a window so can never slide frame under it. You will have to use another control in place of the label. Another frame with caption set and sized down or with a label on it would be a good choice.
or textbox or use IEsuper label.
0
 

Author Comment

by:fax
ID: 1452533
k, thnx
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

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…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

820 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