473,386 Members | 2,114 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,386 software developers and data experts.

detect if objects got changed

Tee
Hi,

I have few textboxes and combobox in a user control.
How can I detect if a user has changed the value of combobox and the text in
textbox?

I know that textbox has a CanUndo property that return true if user has
changed the text, but what about combobox?

I have heard of IsDirty, but have no idea how to use it, can anyone help? or
suggest a way to do it?
Thanks,
Tee

Jul 21 '05 #1
3 1176
Textboxes have a TextChanged Event that fires whenever a user (or the
program) makes a change in the textbox.

Combobox also has a TextChanged Event, but also the click event works for
detecting any selections a user makes.

"Tee" <th*@streamyx.com> wrote in message
news:OF**************@TK2MSFTNGP14.phx.gbl...
Hi,

I have few textboxes and combobox in a user control.
How can I detect if a user has changed the value of combobox and the text
in
textbox?

I know that textbox has a CanUndo property that return true if user has
changed the text, but what about combobox?

I have heard of IsDirty, but have no idea how to use it, can anyone help?
or
suggest a way to do it?
Thanks,
Tee

Jul 21 '05 #2
Actually, I think it is ServerTextChanged.
"OpticTygre" <op********@adelphia.net> wrote in message
news:kZ********************@adelphia.com...
Textboxes have a TextChanged Event that fires whenever a user (or the
program) makes a change in the textbox.

Combobox also has a TextChanged Event, but also the click event works for
detecting any selections a user makes.

"Tee" <th*@streamyx.com> wrote in message
news:OF**************@TK2MSFTNGP14.phx.gbl...
Hi,

I have few textboxes and combobox in a user control.
How can I detect if a user has changed the value of combobox and the text
in
textbox?

I know that textbox has a CanUndo property that return true if user has
changed the text, but what about combobox?

I have heard of IsDirty, but have no idea how to use it, can anyone help?
or
suggest a way to do it?
Thanks,
Tee


Jul 21 '05 #3
SP
"OpticTygre" <op********@adelphia.net> wrote in message
news:kZ********************@adelphia.com...
Textboxes have a TextChanged Event that fires whenever a user (or the
program) makes a change in the textbox.

Combobox also has a TextChanged Event, but also the click event works for
detecting any selections a user makes.
Additionally in these events you can compare the original value to the
current value and then you know if a change has been made. If you initially
set the text box Text to Jim and they changed it to to Jimm and then back to
Jim then no change has really been made although the TextChanged event has
fired twice.

SP
"Tee" <th*@streamyx.com> wrote in message
news:OF**************@TK2MSFTNGP14.phx.gbl...
Hi,

I have few textboxes and combobox in a user control.
How can I detect if a user has changed the value of combobox and the text
in
textbox?

I know that textbox has a CanUndo property that return true if user has
changed the text, but what about combobox?

I have heard of IsDirty, but have no idea how to use it, can anyone help?
or
suggest a way to do it?
Thanks,
Tee


Jul 21 '05 #4

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

Similar topics

3
by: Tee | last post by:
Hi, I have few textboxes and combobox in a user control. How can I detect if a user has changed the value of combobox and the text in textbox? I know that textbox has a CanUndo property that...
3
by: Tee | last post by:
Hi, I have few textboxes and combobox in a user control. How can I detect if a user has changed the value of combobox and the text in textbox? I know that textbox has a CanUndo property that...
3
by: Tee | last post by:
Hi, I have few textboxes and combobox in a user control. How can I detect if a user has changed the value of combobox and the text in textbox? I know that textbox has a CanUndo property that...
3
by: manstey | last post by:
how do I detect a change in a list of class instances? from copy import deepcopy class CaListOfObj(list): """ subclass of list """ def __init__(self, *args, **kwargs): list.__init__(self,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.