Click here to Skip to main content
15,922,427 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Log File Pin
Christian Graus17-Jun-05 21:36
protectorChristian Graus17-Jun-05 21:36 
GeneralRe: Log File Pin
Len Miller17-Jun-05 21:49
Len Miller17-Jun-05 21:49 
GeneralRe: Log File Pin
Robert Rohde17-Jun-05 23:23
Robert Rohde17-Jun-05 23:23 
GeneralServiced Component Pin
lagumaster17-Jun-05 14:57
lagumaster17-Jun-05 14:57 
GeneralRe: Serviced Component Pin
Rizwan Bashir18-Jun-05 3:31
Rizwan Bashir18-Jun-05 3:31 
GeneralRe: Serviced Component Pin
lagumaster18-Jun-05 7:15
lagumaster18-Jun-05 7:15 
GeneralRe: Serviced Component Pin
Rizwan Bashir19-Jun-05 21:49
Rizwan Bashir19-Jun-05 21:49 
GeneralProblems with ds.HasChanges and BindingManagerBase Pin
Len Miller17-Jun-05 14:15
Len Miller17-Jun-05 14:15 
Hi.
I have a screen that allows navigation via (first, prev, next, last) using a BindingManagerBase. It is actually a control that I made that is being passed a bmb upon instantiation.
Now, if someone attempts to navigate off the record, I check to see if there are any changes first. Something like this:
...
BindingContext(ds).EndCurrentEdit()
return ds.HasChanges
...
I ask the user if they want to save, disregard changes or cancel. If the user picks disregard changes, I do something like this.
...
ds.rejectChanges
...
Immediately after that line of code, ds.hasChanges = False.

The problem is, after control goes back to the app, and the user tries to navigate again, ds.hasChanges=TRUE??? Confused | :confused:

As far as I can tell, I am not changing any data in any of my events or other code. Is there something that I am missing?

The user will keep getting told they have changes even though they asked to disregard them. Mad | :mad:

Any help would be appreciated!
Thanks!


Thanks,
-Len Miller

"If I had eight hours to chop down a tree, I'd spend six sharpening my axe."
-Abraham Lincoln
GeneralProject Help Pin
James Sheldon17-Jun-05 11:07
sussJames Sheldon17-Jun-05 11:07 
GeneralRe: Project Help Pin
Len Miller17-Jun-05 21:30
Len Miller17-Jun-05 21:30 
GeneralI am very new to vb.NET. Pin
jetski441917-Jun-05 10:56
jetski441917-Jun-05 10:56 
GeneralRe: I am very new to vb.NET. Pin
jonathan1520-Jun-05 2:57
jonathan1520-Jun-05 2:57 
QuestionArea optimization? Pin
Member 187046717-Jun-05 10:27
Member 187046717-Jun-05 10:27 
GeneralVB.NET - VS.NET 2005 Pin
Moonark17-Jun-05 10:11
Moonark17-Jun-05 10:11 
GeneralListbox Pin
JimClark6817-Jun-05 8:44
JimClark6817-Jun-05 8:44 
GeneralRe: Listbox Pin
Dave Kreskowiak17-Jun-05 10:11
mveDave Kreskowiak17-Jun-05 10:11 
GeneralRe: Listbox Pin
Anonymous17-Jun-05 14:41
Anonymous17-Jun-05 14:41 
GeneralTextbox does not update database Pin
dptalt17-Jun-05 8:10
dptalt17-Jun-05 8:10 
GeneralGlobal forcing of numeric only textboxes Pin
Trey549817-Jun-05 7:04
Trey549817-Jun-05 7:04 
GeneralRe: Global forcing of numeric only textboxes Pin
Dave Kreskowiak17-Jun-05 10:06
mveDave Kreskowiak17-Jun-05 10:06 
GeneralError Pin
ADY00717-Jun-05 6:51
ADY00717-Jun-05 6:51 
GeneralRe: Error Pin
Len Miller17-Jun-05 21:36
Len Miller17-Jun-05 21:36 
GeneralError Pin
ADY00717-Jun-05 23:39
ADY00717-Jun-05 23:39 
GeneralSelectCommand Pin
alef3417-Jun-05 4:10
alef3417-Jun-05 4:10 
GeneralRe: SelectCommand Pin
Dave Kreskowiak17-Jun-05 4:42
mveDave Kreskowiak17-Jun-05 4:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.