RE: TextBox easy lost focus
- From: Morten Wennevik [C# MVP] <MortenWennevik@xxxxxxxxxxx>
- Date: Fri, 27 Mar 2009 01:15:03 -0700
"Mark" wrote:
Hi,
I have form and TexBox on the form.
This TextBox is connected with the field in database. I added
LostFocus event to this TextBox. In this event I update all form and
database.
But the event is raised when user click in another control like
TextBox or ComboBox.
I want my TexbBox to lost focus after clicking in everything (in the
form too). Maybe I chose wrong event ?
Thanks for help
Hi Mark,
You may find it easier to create a [Save] button that triggers the database
update. When the user clicks save you can validate the data before the
database update occurs and give feedback on any invalid data found.
--
Happy Coding!
Morten Wennevik [C# MVP]
.
- References:
- TextBox easy lost focus
- From: Mark
- TextBox easy lost focus
- Prev by Date: RE: Windows Forms Control Library
- Next by Date: RE: printing contents of DataGridView
- Previous by thread: TextBox easy lost focus
- Next by thread: can't read the value of the latest added cell in datagridview
- Index(es):
Relevant Pages
|