alanyap
04-02-2002, 08:00 PM
i am putting a LABEL contained inside a PICTUREBOX and coded some things in picturebox_mousedown(...) sub
I want to disable the LABEL so that clicking on the label invoke PICTUREBOX_mousedown(...) sub (I don't want the LABEL to get the focus)
ATTEMPT #1
----------------
so i simply set the LABEL.enabled = false
it works alright BUT the LABEL grayed out instead of using my preferred color (forecolor property) . I dont want that.
ATTEMPT #2
----------------
set the LABEL.enabled = true and add this code
sub LABEL_mousedown(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
call PICTUREBOX_mousedown(Index , Button , Shift, X , Y )
end sub
not working also!
ATTEMPT #3 (a feeble and desperate one!)
-------------------------------------------------------
set the LABEL.enabled = true and add this code
sub LABEL_click()
PICTUREBOX.setfocus
end sub
NOT WORKING ALSO! Anyone... can u pls help me? thanks!
I want to disable the LABEL so that clicking on the label invoke PICTUREBOX_mousedown(...) sub (I don't want the LABEL to get the focus)
ATTEMPT #1
----------------
so i simply set the LABEL.enabled = false
it works alright BUT the LABEL grayed out instead of using my preferred color (forecolor property) . I dont want that.
ATTEMPT #2
----------------
set the LABEL.enabled = true and add this code
sub LABEL_mousedown(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
call PICTUREBOX_mousedown(Index , Button , Shift, X , Y )
end sub
not working also!
ATTEMPT #3 (a feeble and desperate one!)
-------------------------------------------------------
set the LABEL.enabled = true and add this code
sub LABEL_click()
PICTUREBOX.setfocus
end sub
NOT WORKING ALSO! Anyone... can u pls help me? thanks!