473,383 Members | 1,837 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,383 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

Nov 16 '05 #1
3 1832
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

Nov 16 '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


Nov 16 '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


Nov 16 '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...
0
by: CĂ©dric | last post by:
Hi, I have some problems to detect when a file is changed by another application (the file is changed several times by the application). Sometimes, it is correctly detected, sometimes not. I...
6
by: Adam Warner | last post by:
Hi all, Is this a (C99) portable way to detect whether the C stack grows upwards (1) or downwards (-1)? #include <stdio.h> int stack_direction=0; void detect_stack_direction(void *...
19
by: lihua | last post by:
Hi, Group! I got one question here: We all know that fclose() must be called after file operations to avoid unexpected errors.But there are really cases when you forget to do that!Just like...
2
by: teo | last post by:
I insert few objects in the Cache and use a callback to be notified of their removal in this way: Page.Cache.Insert("MyObj1",myDataTable1,.........., AddressOf OnItemRemoval) ...
2
by: Midsomer | last post by:
Hi. I have an Access database with a form containing 4 datasheets and I allow the user to change column widths. On closing the form, a routine is fired that saves each column width to an INI file....
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,...
4
by: vunet | last post by:
When user enlarges font with Ctrl+ I want to increase the dimensions of my fixed sized div. IE7 uses zoom-in, so it will increase div dimensions automatically. Firefox, however, increases font...
0
by: Ryan Liu | last post by:
I have a DataGrid with only one column is editable. It is a DataGridViewCheckBoxColumn. I want to detect if the any checkbox state is changed. So I listen to ColumnChanged event. But whenever...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: 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
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...

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.