Sharing the goodness…
Beth Massi is a Senior Program Manager on the Visual Studio team at Microsoft and a community champion for business application developers. Learn more about Beth.
More videos »
The How-Do-I videos page on MSDN went up today with all the new videos I created and a much better page layout! There's even a featured videos section at the top. Now that we've got the page up and three series' started, expect to see more regular releases of videos as I create them. Next up -- VS 2008 videos! :-) And keep the feedback coming.
If you use the Interop forms toolkit it will expose any public method on your control for you automatically. However if you want to do it without the toolkit you can have a read of this article wich explains the details: http://msdn2.microsoft.com/en-us/library/Aa719105(VS.71).aspx
NICE TO SEE THE VIDEO.
I'M INTERESTED IN THE VALIDATION VIDEO SECTION . BUT I NEED TO KNOW HOW TO VALIDATE THE CHANGING OF DATASET.
FOR EXAMPLE I MAKE, DATA ENTRY APP. I HAVE MADE THE DATA UPDATED BUT I FORGOT TO SAVE IT AND DIRECTLY CLICK CLOSE BUTTON.
SO HOW TO MAKE A MASSAGE DIALOG TO PUSH ME TO SAVE OR IGNORE THE CHANGING OF DATA.
I HAVE TRIED THE EVENT FORMCLOSING BUT ALWAYS FAIL: THE MESSAGE DIALOG ALWAYS DISPLAYS EVEN I DON'T MADE CHANGING WHEN I CLOSE THE FORM.
DATASET. GETCHANGE AND DATASET.REJECT CHANGE ---TO SAVE THE CHANGING AND IGNORE
THE CHANGING OF DATASET.
Thanks for your explanation. Actually there was a confusion over invoking the interop method since the name of the method was 'Print'.
I'd watch the videos on understanding data and saving related tables here: http://msdn2.microsoft.com/en-us/vbasic/bb466226.aspx?wt.slv=topsectionimg#formsoverdata
To check for changes you can use DataSet.HasChanges property.
thanks for the response. I know the property haschanges property or getchanges dealing with dataset.
however I don't know how to code with them in warning the changing of dataset without saving and directly closing the form.
You'll want to take a look at the FormClosing event. You can cancel this event if the dataset has changes and the user wants to save first.
Hello Beth Massi
You are my Guru on visual basic.
I need some help :
How we can detect/test is exist a field on a table from a Dataset ?
Execuse me English.
You can use the Contains method on the Table Columns to test whether a field exists on a table in a dataset: Me.DataSet1.Table1.Columns.Contains("FieldName")
Also check out the forums to ask questions, there are a lot more people that can help you there: social.msdn.microsoft.com/.../visualbasic