[RESOLVED] Label color change
Hi all
I am changing color of label on mouse move event
But my question is how to get back the previous color when mouse in not on the label
Miss I want when mouse is on the label then its color is red otherwise previous color
See my code
VB Code:
Private Sub Label1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label1.BackColor = &HFF&
End Sub
help
Re: [RESOLVED] Label color change
Re: [RESOLVED] Label color change
Thats great!!! I can use it in my project. But what about label1. It does not have any hwnd property. It is showing error.
Re: [RESOLVED] Label color change
Quote:
Originally Posted by vivek_master146
Thats great!!! I can use it in my project. But what about label1. It does not have any hwnd property. It is showing error.
Is that directed at me?
If so: that is why i said that you'd have to make a textbox look like a label.
If not: ignore me :ehh:
Re: [RESOLVED] Label color change
Quote:
Originally Posted by vivek_master146
Thats great!!! I can use it in my project. But what about label1. It does not have any hwnd property. It is showing error.
I mentioned this fact in my first post in this thread and that is also why I described a work-around using the Drag method.
Re: [RESOLVED] Label color change
No i am referring to bushmobile not anderson. Thank u bushmobile. I also want to ask that how much experienced u r in VB programming. Bloooahaha
Re: [RESOLVED] Label color change
Yes, but I mentioned SetCapture in my first post. I also mentioned that a Label doesn't have a hWnd so you can't use it. So I posted another work-around, and you asked what how to use it with a Label. The answer is already available in this thread.
Re: [RESOLVED] Label color change
As i was going to say, JA was answering the same question. He'd already mentioned the SetCapture stuff. He suggested a work-around avoiding SetCapture, I suggested a work-around using SetCapture.
Quote:
Originally Posted by vivek_master146
I also want to ask that how much experienced u r in VB programming.
umm, learnt a bit out of necessity when in a data entry job a couple of years back then took a break. decided to make an app for my g/f that would help her manage her teaching (she's a teacher) last year and have just learnt stuff as i go along. In the grand scheme of things probably v. little experience.
Re: [RESOLVED] Label color change
Any one who is helping other is the best
But I got the solution by joacim
Thanks joacim