labels on pictures

I want to put a label in front of a picturebox and have tried setting the zorder of the label to 0 to put it in front. but this does not work can I do this any other way
LVL 1
James_stillmanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

deightonprogCommented:
Yes Add your picture box in design mode then draw a label over the top of it.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
deightonprogCommented:
In your .frm code in ascii format in note pad it shouldl then look  something like

  Begin VB.PictureBox Picture1
      Height          =   1695
      Left            =   1440
      Picture         =   "TEST.frx":0000
      ScaleHeight     =   1635
      ScaleWidth      =   3795
      TabIndex        =   0
      Top             =   600
      Width           =   3855
      Begin VB.Label Label1
         Caption         =   "Label1"
         Height          =   375
         Index           =   0
         Left            =   1800
         TabIndex        =   1
         Top             =   480
         Width           =   1215
      End
   End
0
VbmasterCommented:
In design time, select the label, use Ctrl+X to cut it out, select the picturebox, use Ctrl-V to paste it. Voilá.
0
caraf_gCommented:
Indeedy.

And the reason is that labels and other windowless controls cannot be z-ordered in front of windowed controls.

Just thought you'd be interested in that little snippet of useless (?) information.
0
James_stillmanAuthor Commented:
Hey I don't know who to give the points to cos dieghton basically said the same as VBMaster, but did it in code.

An cheers caraf_q for the comment, Pretty useful i'd say I knew that I could put a label inside a picture box control, but didn't know why I couldn't place the label in front of the picture box, Cheers.

I reckon it's going to have to be deighton, cod he ansewered first.
 Cheers for the help Guys

James
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.