Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Making An Object To Stay On Top

Posted on 1998-12-26
6
Medium Priority
?
210 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Accepted Solution

by:
sujmags earned 100 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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 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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

782 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