Can you make it easier to see Labels


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Can you make it easier to see Labels

  1. #1
    JoJo Guest

    Can you make it easier to see Labels

    Hi DevX peep's,

    if you have a load of labels in a frame they just kind of disappear and the
    only way to find them is by clicking inside the frame. Is there a way to
    give all labels some sort of outline that's not visible at runtime? That way
    you would also see the size of the label. I know that if I give the label a
    caption then they would be more visible (this is done currently at runtime
    using LoadResString) but you still wouldn't know the size.

    So any ideas ?

    TIA for answering this rather dumb question

    JoJo



  2. #2
    Alex Guest

    Re: Can you make it easier to see Labels


    JoJo,


    Set BorderStyle of each label at design time to 1 - Fixed single
    In this case you will see each label's outline at design time

    Add this code to the form (assuming it contains 3 labels Label1, Label2,
    Label3)

    Private Sub Form_Load()
    ChangeLabelBorders Label1, Label2, Label3
    End Sub


    Sub ChangeLabelBorders(ParamArray arrLabels() As Variant)
    For Each lbl In arrLabels
    lbl.BorderStyle = vbBSNone
    Next
    End Sub


    Alex



    "JoJo" <maddockandrewNOSPAM@hotmail.com> wrote:


    >Hi DevX peep's,
    >
    >if you have a load of labels in a frame they just kind of disappear and

    the
    >only way to find them is by clicking inside the frame. Is there a way to
    >give all labels some sort of outline that's not visible at runtime? That

    way
    >you would also see the size of the label. I know that if I give the label

    a
    >caption then they would be more visible (this is done currently at runtime
    >using LoadResString) but you still wouldn't know the size.
    >
    >So any ideas ?
    >
    >TIA for answering this rather dumb question
    >
    >JoJo
    >
    >



  3. #3
    dnagel Guest

    Re: Can you make it easier to see Labels

    How about changing the back color of the labels and setting it
    to the appropriate color at runtime?

    D?

    "JoJo" <maddockandrewNOSPAM@hotmail.com> wrote in message
    news:3c74fe06@10.1.10.29...
    > Hi DevX peep's,
    >
    > if you have a load of labels in a frame they just kind of disappear and

    the
    > only way to find them is by clicking inside the frame. Is there a way to
    > give all labels some sort of outline that's not visible at runtime? That

    way
    > you would also see the size of the label. I know that if I give the label

    a
    > caption then they would be more visible (this is done currently at runtime
    > using LoadResString) but you still wouldn't know the size.
    >
    > So any ideas ?
    >
    > TIA for answering this rather dumb question
    >
    > JoJo
    >
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center