473,387 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

TextChanged and Leave Events

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


Nov 20 '05 #1
1 1917
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
Stan Sainte-Rose wrote:
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

Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Fabrício de Novaes Kucinskis | last post by:
Hi all, I have a combobox control, in wich I put an autocomplete code. This code is in the TextChanged event, but when this event fires, the Text property isn't updated yet. For example, if...
2
by: jorge | last post by:
Hello I have the following situation: (everything is dynamic (controls.add)) 1. Button.Init { WasButtonClickFired = true } 2. TextBox.TextChanged { WasButtonClickFired?
1
by: bill yeager | last post by:
I have two fields on my webform that I want calculated in my code-behind, but as I type in the controls, the events are not firing (as evidenced in debug mode). <code> Private Sub...
3
by: Kurt Schroeder | last post by:
I'm setting focus depenting upon which field has changed value. I'm doing this with the following: Page.RegisterStartupScript("SetFocus", "<script language=""Jscript"" >...
2
by: Fabio Cannizzo | last post by:
Hi. The content of my textbox is "ABCD". If I select the letter 'C' and I press 'X', the content obviously changes to "ABXD". Thsi however generates two separate "TextChanged" events 1) ...
4
by: Jason Huang | last post by:
Hi, In my C# Windows form MyForm I have some TextBoxes. In these TextBoxes, we have to detect if the TextChanged event occurs, if there're changes in these TextBoxes, it will ask if we want to...
1
by: gonzosez | last post by:
I have an application that gets values from the registery and populates textboxes on a form. I have also created a sub using textchanged event. which prompts the user to save their changes. The...
1
by: PromisedOyster | last post by:
1. I have a series of RequiredFieldValidators that need to be be enabled/disabled depending on what the user types into various text boxes. Can I do this using the Enabled property of the...
5
by: S_K | last post by:
This is a weird problem.. I have a page with a textbox and a button (along with a bunch of other stuff). Both the textbox and the button have their SEPERATE events defined for the textchanged...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.