Page 1 of 1

customcontrols focus?

Posted: Sat Mar 09, 2013 4:41 pm
by 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

Re: customcontrols focus?

Posted: Sat Mar 09, 2013 4:59 pm
by 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

Re: customcontrols focus?

Posted: Sat Mar 09, 2013 5:02 pm
by Dummy1912
thanks #muttley1968,
i used gotfocus and lostfocus :D

thanks anyway.