V
VJ
Here is snippet of my problem
IF Condition1 then
RemoveHandler lblCntrl.Click, AddressOf lbl_ShowItem
AddHandler lblCntrl.Click, AddressOf lbl_ShowMaker2
elseif Condition2 then
AddHandler lblCntrl.Click, AddressOf lbl_ShowItem
RemoveHandler lblCntrl.Click, AddressOf lbl_ShowMaker2
end if
After the above block is executed I try to click on the label.. I have both
the "lbl_ShowItem" and "lbl_ShowMaker2" methods executed. I had to go
include the same IF check inside each method to prevent... Why is the Remove
Handler not removing the old method and adding a new one for the same click
event. Anybody have ideas??
Thanks
VJ
IF Condition1 then
RemoveHandler lblCntrl.Click, AddressOf lbl_ShowItem
AddHandler lblCntrl.Click, AddressOf lbl_ShowMaker2
elseif Condition2 then
AddHandler lblCntrl.Click, AddressOf lbl_ShowItem
RemoveHandler lblCntrl.Click, AddressOf lbl_ShowMaker2
end if
After the above block is executed I try to click on the label.. I have both
the "lbl_ShowItem" and "lbl_ShowMaker2" methods executed. I had to go
include the same IF check inside each method to prevent... Why is the Remove
Handler not removing the old method and adding a new one for the same click
event. Anybody have ideas??
Thanks
VJ