customcontrols focus?

If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
3 posts Page 1 of 1
Contributors
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

customcontrols focus?
Dummy1912
hello,

someone knows how to make this possible?

let say i have a form and i load 5 controls in a panel
now what i need is
when i select a control in a panel the backcolor will color.
and when i select a other control in the same panel i want to delete the backcolor so it focused on the other control.

it its like you select something and unselect it again :D

anyone?

thanks
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
User avatar
muttley1968
Hardcore Programmer
Hardcore Programmer
Posts: 622
Joined: Thu Jun 17, 2010 11:54 pm

Re: customcontrols focus?
muttley1968
couldnt you use a tag on each button or control so when the mouse hovers it sees the tag and sets the backcolour to that so for example

button1.tag = "brown"

public sub button1_hover (by val) handel button1.mousehover
panel1.backcolor = button1.tag
end sub


That code is off top of head so might well actually will need work but it shows the conecpt
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

Re: customcontrols focus?
Dummy1912
thanks #muttley1968,
i used gotfocus and lostfocus :D

thanks anyway.
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
3 posts Page 1 of 1
Return to “Coding Help & Support”