Results 1 to 6 of 6

Thread: VB Label hWnd

  1. #1

    Thread Starter
    Addicted Member VB6Coder's Avatar
    Join Date
    Apr 2001
    Location
    Northampton, UK
    Posts
    185

    Question VB Label hWnd

    Does anyone know how to get a VB Label controls window handle?



    Thanks in advance

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    I think VB directly draws these onto the form, rather than use a API EDIT window, to conserve resources.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  3. #3
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    yep, labels don't have window handles, sorry!

  4. #4
    Megatron
    Guest
    What are you trying to do? Perhaps as a work around, you could use a PictureBox?

  5. #5
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516
    OR ... you could do your very own CreateWindowEx thing and create a STATIC control on your form. Then SendMessage it the text you want it to carry.
    Courgettes.

  6. #6
    Megatron
    Guest
    A "PictureBox" is to a "Static" as a "TextBox" is to an "Edit."
    In other words, a PictureBox is a just VB's version of a Static.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width