Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Switching to Edit Mode on the ViewEdit Page and Saving Changes - Day 4 - Part 11

Download

Right click “Save as…”

In this video Bob uses previously discussed techniques to switch back and forth between view and edit modes by copying the content from the TextBlock to the TextBox before setting the visibility of each control. Finally, the data changes are applied to the underlying file.

Download the source code in c#

Download the source code in VB.Net

Follow the Discussion

  • Hi bob,

    I noticed that you use two different ways of creating file:

    - appStorage.OpenFile(fileName, FileMode.Create)

    - appStorage.CreateFile(fileName)

    Any significant difference between the two?

  • Clint RutkasClint I'm a "developer"

    @kctan: The 2nd one only creates a file.   OpenFile with FileMode.OpenOrCreate will either open it if it is there or will create a new file for you.  Just makes your code a lot cleaner.

Remove this comment

Remove this thread

close

Comments Closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.