On Jul 18, 2006, at 7:43 AM, Chuck Pelto wrote:
Seems that the Change event for a TabPanel does considerably more
than merely get triggered when someone clicks on the tabs to change
the panel.
I'm getting into a perpetual do-loop by clicking on the tab and
having a specific tab call on a method. The method keeps getting
called again and again and again....
In this case a method to populate the cells of a listbox in that
particular tab.
What's going on here?
Shouldn't one click result in one pass through the triggered event?
The method being called does not call for any clicks on the tabs.
It just calls for the cells of the listbox to be populated with
data from a database.
Who says we can't call events? In this case, as simple call to a
TabPanel that sets the value of it, as in theTabPanel.Value = 1 will
trigger the Change event.
I removed that call, which I thought necessary to get the TP to
display, and that removed the recursion.
Sorry for troubling you all....
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>