Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    deathninjak0's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    1,510
    Reputation
    12
    Thanks
    294
    My Mood
    Cool

    [HELP] How do u save settings and check all checkboxes at once?

    How do you save the settings in the program (.ini), and check all checkboxes at once?

  2. #2
    PixieCorp-Backup's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Location
    Crying in a corner waiting for unban
    Posts
    23
    Reputation
    10
    Thanks
    2
    My Mood
    Sad
    Saving all settings in a .ini, I have no idea, but I would like to

    Check all checkboxes at once:

    Code:
    If CheckBox1.Checked = True Then
    CheckBox2.Checked = True
    CheckBox3.Checked = True
    CheckBox4.Checked = True
    CheckBox5.Checked = True
    CheckBox6.Checked = True
    Else
    CheckBox2.Checked = False
    CheckBox3.Checked = False
    CheckBox4.Checked = False
    CheckBox5.Checked = False
    CheckBox6.Checked = False
    Just add more checkboxes if needed

  3. The Following User Says Thank You to PixieCorp-Backup For This Useful Post:

    deathninjak0 (11-18-2009)

  4. #3
    guza44_44's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Posts
    431
    Reputation
    16
    Thanks
    310
    Quote Originally Posted by deathninjak0 View Post
    How do you save the settings in the program (.ini), and check all checkboxes at once?
    you know you can just save settings inside the program itself right?
    [IMG]https://i304.photobucke*****m/albums/nn168/guza44/sig-1.png[/IMG]

  5. #4
    wtfiwantthatname's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Posts
    260
    Reputation
    10
    Thanks
    39
    My Mood
    Bored
    First off is this for vb6 or vb.net?

  6. #5
    CoderNever's Avatar
    Join Date
    Feb 2009
    Gender
    female
    Location
    https://mpgh.net MPGHCash: $700,458,011
    Posts
    1,198
    Reputation
    131
    Thanks
    2,236
    My Mood
    Buzzed
    Pixie don't forget where he has to put it xD. Make sure you add that code in a timer. with a Interval of 1. So it can detect exactly when its pressed. Or if you want you can add a Public Status Change Like
    Code:
    Public Sub Checkbox1_Checked
    either one will work fine.

  7. The Following User Says Thank You to CoderNever For This Useful Post:

    PixieCorp-Backup (11-18-2009)

  8. #6
    Dreamer's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Seattle
    Posts
    8,745
    Reputation
    393
    Thanks
    1,482
    My Mood
    Bitchy
    yep a very simple code
    Resource Team: Feb/5/2012 - May/5/2012
    Middleman: April/25/2012 - September/16/12


  9. #7
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    To save to a .ini you need a HELL a lot of work! I worked weeks to get it work!

    If you think you can do this use google.com!
    -Rest in peace leechers-

    Your PM box is 100% full.

  10. #8
    XGelite's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Enter text here
    Posts
    1,344
    Reputation
    12
    Thanks
    276

  11. #9
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    Quote Originally Posted by XGelite View Post
    If you are luckey you will find it! I searched weeks for the right 1!
    -Rest in peace leechers-

    Your PM box is 100% full.

  12. #10
    XGelite's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Enter text here
    Posts
    1,344
    Reputation
    12
    Thanks
    276
    Quote Originally Posted by hejsan1 View Post
    If you are luckey you will find it! I searched weeks for the right 1!
    yeah, just like i searched weeks to find the simpless way to end a windows service. and finally found it! everywhere it was like pages of code just to end a simple windows service..but i searched..and searched..and found a rlly simple one ;P

  13. #11
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    Quote Originally Posted by XGelite View Post
    yeah, just like i searched weeks to find the simpless way to end a windows service. and finally found it! everywhere it was like pages of code just to end a simple windows service..but i searched..and searched..and found a rlly simple one ;P
    Yeah that´s why google is a bit hard to find codes
    -Rest in peace leechers-

    Your PM box is 100% full.

  14. #12
    wtfiwantthatname's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Posts
    260
    Reputation
    10
    Thanks
    39
    My Mood
    Bored
    For saving to an ini search for a module called savesets. Or just say your settings are resources in the application.

  15. #13
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    Quote Originally Posted by wtfiwantthatname View Post
    For saving to an ini search for a module called savesets. Or just say your settings are resources in the application.
    Show us .
    -Rest in peace leechers-

    Your PM box is 100% full.

  16. #14
    wtfiwantthatname's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Posts
    260
    Reputation
    10
    Thanks
    39
    My Mood
    Bored
    Credits to who ever wrote the module in vb6 and i converted to vb.net. I left result in for Save function in case some one wants to do error checking to see if it was saved but i never returned it. So thats up to you guys.
    Module SaveSets
    Code:
    Module SaveSets
        Declare Function WritePrivateProfileString Lib "kernel32" Alias "WritePrivateProfileStringA" (ByVal lpApplicationname As String, ByVal lpKeyName As String, ByVal lsString As String, ByVal lplFilename As String) As Int32
        Declare Function GetPrivateProfileString Lib "kernel32" Alias "GetPrivateProfileStringA" (ByVal lpApplicationname As String, ByVal lpKeyName As String, ByVal lpDefault As String, ByVal lpReturnedString As String, ByVal nSize As Int32, ByVal lpFileName As String) As Int32
        Public Check As String
    
        Public Function Load(ByVal Section As String, ByVal Key As String) As String
            Dim Result As Int32
            Dim strFileName
            Dim strResult As String = Space(300)
            strFileName = System.AppDomain.CurrentDomain.BaseDirectory & "\settings.ini"
            Result = GetPrivateProfileString(Section, Key, strFileName, strResult, Len(strResult), strFileName)
            Check = System.AppDomain.CurrentDomain.BaseDirectory & "\sets.ini"
            Load = Trim(strResult)
        End Function
    
        Public Function Save(ByVal Section As String, ByVal Key As String, ByVal Content As String)
            Dim Result As Int32
            Dim strFileName
            strFileName = System.AppDomain.CurrentDomain.BaseDirectory & "\settings.ini"
            Result = WritePrivateProfileString(Section, Key, Content, strFileName)
        End Function
    
    
    End Module
    And for more info on settings.
    Code:
    https://msdn.microsof*****m/en-us/library/a65txexh.aspx

  17. The Following User Says Thank You to wtfiwantthatname For This Useful Post:

    Zoom (11-18-2009)

  18. #15
    Bombsaway707's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Gym
    Posts
    8,799
    Reputation
    791
    Thanks
    4,004
    My Mood
    Amused
    You can save it within the program. Google it for a TUT

Page 1 of 2 12 LastLast

Similar Threads

  1. [HELP] How do i edit Titles and emblems
    By OGZxMODZ in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 1
    Last Post: 10-20-2010, 08:30 AM
  2. [HELP] How do you add a "Save Settings" code in my menu strip menu?
    By DayumKen in forum Visual Basic Programming
    Replies: 3
    Last Post: 07-10-2010, 02:48 PM
  3. [HELP] How Do I Inject Im using viper101 GP and lvl Bot!
    By qdewased in forum Combat Arms Hacks & Cheats
    Replies: 5
    Last Post: 08-10-2008, 02:32 PM
  4. [HELP]How Me Make Superjump and No fall Damage?
    By xown0x in forum WarRock - International Hacks
    Replies: 8
    Last Post: 03-02-2008, 03:58 AM
  5. [Help] How do i set a hotkey to Scope?
    By wr194t in forum Visual Basic Programming
    Replies: 9
    Last Post: 09-27-2007, 04:53 PM

Tags for this Thread