> Thanks Bala but I know where to check but I don't know what to check.
>
[quoted text clipped - 7 lines]
> > > I want to prevent the user from closing the application if they are in
> > > the middle of entering data. Is there a way to detect this?
Depends what your datasource is.
If it's a dataset you can call DataSet.GetChanges() to get any changes (e.g.
if there are no changes than the user hasn't modified any data).
This method obviously co-incides with the functionaliy of the
AcceptChanges() method of the dataset and row and table state (New,
Modified, Unchanged, Deleted etc).
HTH
Simon
> Is this a new concept?
>
[quoted text clipped - 14 lines]
> > > > I want to prevent the user from closing the application if they are in
> > > > the middle of entering data. Is there a way to detect this?
MarkusR - 22 Aug 2006 18:58 GMT
Thanks Simon,
I am used to delphi where it is very event driven. BeforePost,
AfterPost, BeforeInsert....
Dataset.State = dsEdit..., tabpage.changing (so you can prevent it)...
Got spoiled.
C# is great though, so no need to start a delphi vs c# war. Just give
me a chance to adjust.
-Markus_R
> Depends what your datasource is.
> If it's a dataset you can call DataSet.GetChanges() to get any changes (e.g.
[quoted text clipped - 26 lines]
> in
> > > > > the middle of entering data. Is there a way to detect this?
Simon Tamman - 22 Aug 2006 20:55 GMT
No worries, no need to start a Delphi-C# war, Eric Gunnarson worked on
creating both C# and Delphi so it's almost like we're family. :)
> Thanks Simon,
>
[quoted text clipped - 39 lines]
> > in
> > > > > > the middle of entering data. Is there a way to detect this?
MarkusR - 31 Aug 2006 21:21 GMT
I miss my numbered bookmarks as in Delphi. :(
> No worries, no need to start a Delphi-C# war, Eric Gunnarson worked on
> creating both C# and Delphi so it's almost like we're family. :)
[quoted text clipped - 46 lines]
> > > in
> > > > > > > the middle of entering data. Is there a way to detect this?