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

Day 2 Homework Assignment Solution - Part 2

Download

Right click “Save as…”

This video, (Part 2 in the two video sequence solving the Day 2 Homework Assignment) demonstrates the part of the homework assignment that tasked you with building a custom class including properties that you fill when a user submits the data. Also, you'll call a method on that new class to "save" the data. Again, please try to get as far as possible on your own BEFORE watching this video.

Download the source code in c#

Download the source code in VB.Net

Follow the Discussion

  • Great solution videos bob. I got most of it done on my own except for how to get the information from the ListBox and to wipe it at the end, the rest went quite smoothly.

    Cheers

  • Amazing stuff Bob...thanks a lot Bob....I needed some help with the class declaration...but the UI development was straight forward...thanks to your previous videos....

  • It took me a while to complete this assigment because one of our 'Sales' guy went rogue. I had to straighten out that issue first.

  • Jaguma GamesJaguma The only epicly awesome person to fail at succeeding to fail at succeeding.

    Hey guys. If you want some help on how to scroll further on your page, here it is.

    On the main grid 
    Grid x:Name="ContentPanel"
    , add this property:
    Height="auto"
    .
    This means that no matter how many rows you make, the screen will resize to add those rows.
    Also, you need to make the scrollviewer like Bob shown in one of his tutorials. Just change the height 
    property of the main grid to auto befor you add the scroll bar. Took me ages to figure that out :P


  • Just for the sake of discussion, as Bob said there are many ways to acheive the desired result - The differences I had to Bob's code were:

    • I used a StackPanel in the grid for the radio buttons and made the StackPanel span multiple rows
    • I didn't put the class in a separate file - Will do that next time for sure!
    • I didn't use a nullable boolean for the Undercover property. Would that break it?
    • I didn't use trim() on the text field, I added that after watching the videos!
    • On the agency buttons I didn't use else for the last option, because the user could potentially select no option, and that should set the value to nothing (empty string) - I used else for that instead
  • mohsinmohsin

    bob u didnt write any thing on the body of the save method??

  • Awesome videos. There were two hang-ups for me.

    1. I was tempted to use the StackPanel to name the ListBox in the UI <lol>

    2. Clearning the ListBox after we click/pressed our button.

    Bob & Clint... really this is great stuff. Anyone can learn from these videos. I 100% am sold on the lifetime subscription to LearnVisusalstudio.net!!!

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.