TextChanged and Leave Events

  • Thread starter Thread starter Stan Sainte-Rose
  • Start date Start date
S

Stan Sainte-Rose

Hi,
I have a problem with my textchanged and leave events
I have a script in the leave event of my textbox and also in my textchanged.

The script in my textchanged adds and displays a tabpage.
By this action, automatically, the leave event executes its scripts
and this is my problem.
How can I remove or disable the Leave Event Script when I m in the
textchanged. I suppose it's when the tabpage is added.

Btw, what is the better way for this purpose.
I use 2 tabpages (A and B) for seach engines.
They are a bit similar except they don't use the same datatable and have
a different datagridstyle.
I think I can avoid my initial problem, if I use only one Tabpage
where I can use the show and hide for each control
When I am on the seach engine A, I hide all the controls
of the search engine B and show the A's controls , and when I am on the
search engine B
I ll hide all the controls of A and show the B's controls.
What do you think about it ? is it recommand(able) ?

Stan
 
Stan,

1. Sounds like you are trying to use the exit event for a textBox to add a
new tab page, but you dont want to add one if it already exists right ?, if
so, just iterate through and check the names of the pages, simply dont add
if it exists.

2.) Messy to use one tab page, I would stick to 2 and keep things neat and
tidy.

Regards - OHM
 
Back
Top