Results 1 to 12 of 12
  1. #1
    tremaster's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    523
    Reputation
    10
    Thanks
    95
    My Mood
    Amazed

    Post [Help]Settings 2[Solved]

    hey im making something that i need it to save evry thing so when i open it back up nothing change

  2. #2
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Quote Originally Posted by tremaster View Post
    hey im making something that i need it to save evry thing so when i open it back up nothing change
    textbox?
    checkbox?

    use my.settings....there are tutorials 'bout that..



  3. #3
    tremaster's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    523
    Reputation
    10
    Thanks
    95
    My Mood
    Amazed
    plz just tell me

  4. #4
    MJLover's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Neverland
    Posts
    759
    Reputation
    33
    Thanks
    110
    My Mood
    Cheerful
    Quote Originally Posted by tremaster View Post
    hey im making something that i need it to save evry thing so when i open it back up nothing change
    What you exactly want to do ?? Retaining controls position, retaining their state (for example checkbox check state) , or what ????

    If we know what exactly you wanna do, then we can help !! Tell us exactly what ya wanna do !!

  5. #5
    tremaster's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    523
    Reputation
    10
    Thanks
    95
    My Mood
    Amazed
    ok i want evry thing to stay the sameall the codes and evry thing like lets say a button made a textbox read only how would i make that command save

  6. #6
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108



  7. #7
    tremaster's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    523
    Reputation
    10
    Thanks
    95
    My Mood
    Amazed
    i dont want to click the link im to lazy

  8. #8
    MJLover's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Neverland
    Posts
    759
    Reputation
    33
    Thanks
    110
    My Mood
    Cheerful

    Talking

    Quote Originally Posted by tremaster View Post
    ok i want evry thing to stay the sameall the codes and evry thing like lets say a button made a textbox read only how would i make that command save
    OK, suppose you have a textbox and a button on the form. When you close the form the textbox will save the text and the next time we open the form, it retrieves the text !!!

    Here you go:

    On your main form's closing event (For example: Form1), put this code:

    Code:
    'Replace Textbox1.text with the text you want to save...
    SaveSetting(Application.productName,"Settings","Txt",textbox1.text)
    Next double click the same form and put the following code:

    Code:
    'Replace Textbox1.text with the same textbox you used on the closing event of the form.
    Textbox1.text = GetSetting(Application.productName,"Settings","Txt","")
    Quote Originally Posted by tremaster
    i dont want to click the link im to lazy
    LOL

    Don't say that you are lazy to C&P now
    Last edited by MJLover; 03-24-2010 at 01:53 PM.

  9. #9
    tremaster's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    523
    Reputation
    10
    Thanks
    95
    My Mood
    Amazed
    thanks mj ill test it
    edit:worked fine
    Last edited by tremaster; 03-24-2010 at 02:02 PM.

  10. #10
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    @ TreMaster

    We are here to help, but when a link is provided , make some effort to use it.

    If your simply just looking for others to send you a C&P friendly code, then you will never learn, and will always have to ask.


     


     


     



    The Most complete application MPGH will ever offer - 68%




  11. The Following User Says Thank You to NextGen1 For This Useful Post:

    MJLover (03-24-2010)

  12. #11
    tremaster's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    523
    Reputation
    10
    Thanks
    95
    My Mood
    Amazed
    mj go on xic

  13. #12
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Quote Originally Posted by tremaster View Post
    i dont want to click the link im to lazy
    Seriously? *insert mean insult here*



  14. The Following User Says Thank You to Blubb1337 For This Useful Post:

    NextGen1 (03-24-2010)

Similar Threads

  1. [Help Request] Help me to solve this ? :#
    By josias008 in forum Combat Arms Help
    Replies: 9
    Last Post: 08-06-2011, 12:05 AM
  2. [Help] Setting your program's default cursor [Solved]
    By nathanael890 in forum Visual Basic Programming
    Replies: 9
    Last Post: 02-19-2011, 10:02 AM
  3. [Help]Settings[Solved]
    By ppl2pass in forum Visual Basic Programming
    Replies: 6
    Last Post: 03-15-2010, 07:36 PM
  4. [HELP]Set the dll(s)'...
    By theavengerisback15 in forum Visual Basic Programming
    Replies: 3
    Last Post: 11-30-2009, 05:35 PM
  5. [HELP] Set up MPH Public
    By Bobbyshermen in forum Combat Arms Discussions
    Replies: 1
    Last Post: 09-18-2009, 06:12 AM