Click to See Complete Forum and Search --> : VB Label hWnd
VB6Coder
Aug 23rd, 2001, 10:58 AM
Does anyone know how to get a VB Label controls window handle?
Thanks in advance
:)
JoshT
Aug 23rd, 2001, 11:10 AM
I think VB directly draws these onto the form, rather than use a API EDIT window, to conserve resources.
chrisjk
Aug 23rd, 2001, 12:28 PM
yep, labels don't have window handles, sorry!
Megatron
Aug 23rd, 2001, 01:32 PM
What are you trying to do? Perhaps as a work around, you could use a PictureBox?
V(ery) Basic
Aug 28th, 2001, 03:32 AM
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.
Megatron
Aug 28th, 2001, 08:52 AM
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.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.