Adblock breaks this site

What's the Best way to do this?

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

  1. Darkgroove

    Darkgroove Guest

    Referrals:
    0
    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
     
  2. Swan

    Swan When They Cry...
    Retired Global Moderator

    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner
    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
     
  3. Blupig

    Blupig BEEF TOILET
    $5 USD Donor

    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
    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.
     
  4. Swan

    Swan When They Cry...
    Retired Global Moderator

    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner
    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? >


 
 
Adblock breaks this site