How-Do-I Videos for Visual Basic on MSDN

How-Do-I Videos for Visual Basic on MSDN

  • Comments 23

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.

Enjoy!

Leave a Comment
  • Please add 1 and 6 and type the answer here:
  • Post
  • Hi AK,

    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

    Cheers,

    -B

  • 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.

    I USED:  

    DATASET. GETCHANGE AND DATASET.REJECT CHANGE ---TO SAVE THE CHANGING AND IGNORE  

    THE CHANGING OF DATASET.

  • Hi Beth,

    Thanks for your explanation. Actually there was a confusion over invoking the interop method since the name of the method was 'Print'.

    Thanks again,

    AK

  • Hi suhk,

    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.

    HTH,

    -B

  • 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.

    thanks

  • Hi Suhk,

    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.

    http://msdn2.microsoft.com/en-us/library/system.windows.forms.form.formclosing.aspx

    HTH,

    -B

  • 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.

  • Hi Alexandre,

    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

    HTH,

    -B

Page 2 of 2 (23 items) 12