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 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
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
"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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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 *...
|
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...
|
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)
...
|
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....
|
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,...
|
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...
|
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...
|
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...
|
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...
|
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,...
|
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$) {
}
...
|
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...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
| |