Click here to Skip to main content
15,919,879 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Operation has Timed Out ! Pin
AliAmjad25-Oct-07 5:22
AliAmjad25-Oct-07 5:22 
QuestionUsing VB .NET to Generate An E-mail Automatically Pin
Johnny Mar25-Oct-07 4:09
Johnny Mar25-Oct-07 4:09 
AnswerRe: Using VB .NET to Generate An E-mail Automatically Pin
Dave Kreskowiak25-Oct-07 4:43
mveDave Kreskowiak25-Oct-07 4:43 
QuestionAccess database size is increasing Pin
dimuthuvbnet25-Oct-07 3:22
dimuthuvbnet25-Oct-07 3:22 
AnswerRe: Access database size is increasing Pin
Tom Deketelaere25-Oct-07 3:30
professionalTom Deketelaere25-Oct-07 3:30 
AnswerRe: Access database size is increasing Pin
Dave Kreskowiak25-Oct-07 4:02
mveDave Kreskowiak25-Oct-07 4:02 
QuestionBinding Navigator Binding Problem Pin
SekharOne25-Oct-07 2:40
SekharOne25-Oct-07 2:40 
AnswerRe: Binding Navigator Binding Problem Pin
Dave Kreskowiak25-Oct-07 4:36
mveDave Kreskowiak25-Oct-07 4:36 
If I get what you're asking, you can create an IsDirty field on your form and handle the ListChanged event of your BindingSource. In that handler, you can do something like:
Dim changes As DataTable = MyDataSet.TableName.GetChanges()
If changes IsNot Nothing AndAlso changes.Rows.Count > 0 Then
    IsDirty = True
End If

When the user clicks the save button to commit the changes to the database, you handle the Click event of that button and check the IsDirty flag. If true, you can put up a MsgBox asking if they want to save changes or not.


A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


GeneralRe: Binding Navigator Binding Problem Pin
SekharOne25-Oct-07 18:30
SekharOne25-Oct-07 18:30 
GeneralRe: Binding Navigator Binding Problem Pin
Dave Kreskowiak26-Oct-07 2:12
mveDave Kreskowiak26-Oct-07 2:12 
QuestionUDL Files in Vb.net Pin
Saftaj25-Oct-07 0:29
Saftaj25-Oct-07 0:29 
AnswerRe: UDL Files in Vb.net Pin
Dave Kreskowiak25-Oct-07 3:40
mveDave Kreskowiak25-Oct-07 3:40 
GeneralRe: UDL Files in Vb.net Pin
Saftaj25-Oct-07 22:02
Saftaj25-Oct-07 22:02 
GeneralRe: UDL Files in Vb.net Pin
Dave Kreskowiak26-Oct-07 2:33
mveDave Kreskowiak26-Oct-07 2:33 
QuestionHow to create Properties Dynamically in Property grid Pin
Anuradha61225-Oct-07 0:15
Anuradha61225-Oct-07 0:15 
AnswerRe: How to create Properties Dynamically in Property grid Pin
Dave Kreskowiak25-Oct-07 3:37
mveDave Kreskowiak25-Oct-07 3:37 
AnswerRe: How to create Properties Dynamically in Property grid Pin
visualhint25-Oct-07 5:32
visualhint25-Oct-07 5:32 
GeneralRe: How to create Properties Dynamically in Property grid Pin
Dave Kreskowiak25-Oct-07 6:20
mveDave Kreskowiak25-Oct-07 6:20 
GeneralRe: How to create Properties Dynamically in Property grid Pin
visualhint25-Oct-07 6:36
visualhint25-Oct-07 6:36 
GeneralRe: How to create Properties Dynamically in Property grid Pin
Dave Kreskowiak25-Oct-07 7:03
mveDave Kreskowiak25-Oct-07 7:03 
AnswerRe: How to create Properties Dynamically in Property grid Pin
darkelv25-Oct-07 17:19
darkelv25-Oct-07 17:19 
GeneralRe: How to create Properties Dynamically in Property grid Pin
visualhint26-Oct-07 2:45
visualhint26-Oct-07 2:45 
QuestionPopulate Property Grid with Datatable rows Pin
danasegaranea24-Oct-07 23:10
danasegaranea24-Oct-07 23:10 
AnswerRe: Populate Property Grid with Datatable rows Pin
Dave Kreskowiak25-Oct-07 3:36
mveDave Kreskowiak25-Oct-07 3:36 
AnswerRe: Populate Property Grid with Datatable rows Pin
visualhint25-Oct-07 5:35
visualhint25-Oct-07 5:35 

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.