Page 2 of 2 FirstFirst 12
Results 16 to 22 of 22
  1. #16
    DawgiiStylz's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    Dawg House
    Posts
    7,811
    Reputation
    219
    Thanks
    2,896
    My Mood
    Tired
    Quote Originally Posted by PepsiXHacker View Post
    I have no idea how you're banned, but if you're not permanently banned, you used this for saving folder locations? And what did you insert the data to, a listbox?
    If you still need help, I got you.

  2. The Following User Says Thank You to DawgiiStylz For This Useful Post:

    Cryptonic (04-24-2013)

  3. #17
    Cryptonic's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    United Provinces of Canada
    Posts
    1,313
    Reputation
    44
    Thanks
    190
    My Mood
    Bored
    Quote Originally Posted by DawgiiStylz View Post

    If you still need help, I got you.
    I could use it, the code he provided is kinda confusing..

  4. #18
    DawgiiStylz's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    Dawg House
    Posts
    7,811
    Reputation
    219
    Thanks
    2,896
    My Mood
    Tired
    Quote Originally Posted by PepsiXHacker View Post


    I could use it, the code he provided is kinda confusing..
    Ok, what do you need help with as of now? What're you trying to do

  5. #19
    Cryptonic's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    United Provinces of Canada
    Posts
    1,313
    Reputation
    44
    Thanks
    190
    My Mood
    Bored
    Well, I'm trying to create a program that will hold data. The full explanation is in op. Basically, I need a method to store data from a combo box so when I restart the program, the data will still be there.

    I don't want to use save.settings because when you move/copy the program, the settings get deleted... Unless there's a way around that

  6. #20
    DawgiiStylz's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    Dawg House
    Posts
    7,811
    Reputation
    219
    Thanks
    2,896
    My Mood
    Tired
    Quote Originally Posted by PepsiXHacker View Post
    Well, I'm trying to create a program that will hold data. The full explanation is in op. Basically, I need a method to store data from a combo box so when I restart the program, the data will still be there.

    I don't want to use save.settings because when you move/copy the program, the settings get deleted... Unless there's a way around that
    Use .xml

    Its so simple to use as well!

    Create a class and write this:
    Code:
     Public _SomeString As String
        Public Sub New(ByVal SomeString As String)
            Me._SomeString = SomeString
     End Sub
    'For your case, you'll need to make an array just like this!
    To Load,
    Code:
    Dim fileLoc As String = Application.StartupPath & "\Settings.xml"
        Public Sub LoadSettings()
            If My.Computer.FileSystem.FileExists(fileLoc) Then
    
    
                Dim document As XmlReader = New XmlTextReader(fileLoc)
                While (document.Read())
                    Dim type = document.NodeType
                    If (type = XmlNodeType.Element) Then
                        If (document.Name = "ThisString") Then
                            dim x as string = document.ReadInnerXml.ToString()
                        End If
                End While
                document.Close()
            End If
    To write:
    Public Sub SaveSettings(ByVal Hallo As String)
    Code:
    Dim set as New clsInfoSettings(Hallo)
    
    
    
    
            Dim settings As XmlWriterSettings = New XmlWriterSettings()
            With settings
                .Indent = True
            End With
    
    
            Using writer As XmlWriter = XmlWriter.Create(fileLoc, settings)
                With writer
                    .WriteStartDocument()
                    .WriteStartElement("Program_Settings")
    .WriteElementString("ThisString", SomeString)
     .WriteEndElement()
     .WriteEndDocument()
                    .Close()
                End With
            End Using
    
    
    End Sub
    You can figure the rest out on ya own. I won't spoon feed anyone

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

    Cryptonic (04-29-2013)

  8. #21
    Cryptonic's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    United Provinces of Canada
    Posts
    1,313
    Reputation
    44
    Thanks
    190
    My Mood
    Bored
    Thanks for the help, though I already recieved help from 1UP. Since you never posted back I thought you wouldn't have bothered. This is good for anyone else that needs it though

  9. #22
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,676
    Reputation
    905
    Thanks
    19,112
    My Mood
    Angelic
    //Solved

    -VM/PM me if it's not

Page 2 of 2 FirstFirst 12

Similar Threads

  1. how to use Gibs Save Edit
    By iampain13 in forum Borderlands 2 Hacks
    Replies: 2
    Last Post: 11-12-2012, 01:07 AM
  2. Threads about Packet Editing Removed?
    By domer in forum Staff Disputes
    Replies: 2
    Last Post: 09-20-2011, 09:42 AM
  3. [Help Request] Is it possible to edit(remove) the suit voice?
    By The-_-enD in forum Crysis 2 Help
    Replies: 2
    Last Post: 05-22-2011, 02:38 PM
  4. [SOLVED]Map Saving/Editing
    By icygrave in forum Call of Duty Modern Warfare 2 Help
    Replies: 3
    Last Post: 08-24-2010, 11:31 AM
  5. [Help] Save Items in Combobox[Solved]
    By FatCat00 in forum Visual Basic Programming
    Replies: 8
    Last Post: 04-13-2010, 04:01 AM