CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2010
    Posts
    6

    C# making user changes stay

    Hello

    I need help with an update feature. I have a list items that the user can select from. If they wish they can update the prices of the item. If they wish to do so, they are taken to a subform where they can update the prices. How would I make there changes stay instead of going back to there default values?


    Here is my code.
    Last edited by Nexusfactor; February 22nd, 2010 at 10:46 AM.

  2. #2
    Join Date
    Jun 2001
    Location
    Melbourne/Aus (C# .Net 4.0)
    Posts
    686

    Re: C# making user changes stay

    Either of the following:

    1) After displaying the sub-form, you need to read the values back into the main-form before disposing of the sub-form. (tightly coupled)
    2) The sub-form can fire an Event containing the new values and the main-form can subscribe to that event. (loosely coupled)
    Rob
    -
    Ohhhhh.... Old McDonald was dyslexic, E O I O EEEEEEEEEE.......

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured