What's the Best way to do this?

Discussion in 'Programming General' started by Darkgroove, Apr 25, 2009.

What's the Best way to do this?
  1. Unread #1 - Apr 25, 2009 at 7:35 AM
  2. Darkgroove
    Referrals:
    0

    Darkgroove Guest

    What's the Best way to do this?

    I've had a few ideas, but they've all failed miserably.

    I want a user to input values in 1 tab, then the program some how stores these values and outputs them in another tab. They have to be stored somehow so that I can call on them after I close and open the application again.

    No textbox1.text= textbox2.text :p
     
  3. Unread #2 - Apr 25, 2009 at 7:39 AM
  4. Swan
    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner

    Swan When They Cry...
    Retired Global Moderator

    What's the Best way to do this?

    You can use application settings, which are rather easy. Otherwise, you could store the settings in a file, but that requires a small amount more effort.

    Info on Application Settings can be found on MSDN, as with almost any other thing to do with .Net coding: http://msdn.microsoft.com/en-us/library/k4s6c3a0.aspx
     
  5. Unread #3 - Apr 30, 2009 at 10:07 AM
  6. Blupig
    Joined:
    Nov 23, 2006
    Posts:
    7,145
    Referrals:
    16
    Sythe Gold:
    1,609
    Discord Unique ID:
    178533992981594112
    Valentine's Singing Competition Winner Member of the Month Winner MushyMuncher Gohan has AIDS Extreme Homosex World War 3 I'm LAAAAAAAME
    Off Topic Participant

    Blupig BEEF TOILET
    $5 USD Donor

    What's the Best way to do this?

    You can also use the registry to save your settings then load them in the second tab.
    Code:
    GetSetting()
    SaveSetting()
    
    Returns as a string ofc.
     
  7. Unread #4 - Apr 30, 2009 at 5:34 PM
  8. Swan
    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner

    Swan When They Cry...
    Retired Global Moderator

    What's the Best way to do this?

    Use of the registry is rather stupid for such a small application, and also very annoying when you can just store the settings in the same directory anyway. I HATE when apps become broken because they can't find the right reg keys.
     
< Need help on RS Client (VB.net) | Mouse Listeners? >

Users viewing this thread
1 guest


 
 
Adblock breaks this site