Results 1 to 6 of 6

Thread: [RESOLVED] Load and save

  1. #1

    Thread Starter
    Addicted Member frozie's Avatar
    Join Date
    Apr 2010
    Posts
    146

    Resolved [RESOLVED] Load and save

    Hello. Do anyone have a code for load info to textboxes and save to ini file.

    like takes info from hello.ini file and when i load rhe program it will take the info to the texteboxes...

    any idea ?
    Attached Files Attached Files

  2. #2
    Wait... what? weirddemon's Avatar
    Join Date
    Jan 2009
    Location
    USA
    Posts
    3,826

    Re: Load and save

    You can specify whichever extension you want when saving a file. You can save a file be using a StreamWriter and read it by using a StreamReader.
    CodeBank contributions: Process Manager, Temp File Cleaner

    Quote Originally Posted by SJWhiteley
    "game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....

  3. #3

    Thread Starter
    Addicted Member frozie's Avatar
    Join Date
    Apr 2010
    Posts
    146

    Re: Load and save

    Works good but this code dosent work.

    vb Code:
    1. If CheckBox1.unchecked And CheckBox2.unchecked Then
    2.             MsgBox("u most check 1 option", MsgBoxStyle.OkOnly, "Alert!!!!")
    3.         End If

  4. #4
    Addicted Member
    Join Date
    Feb 2010
    Posts
    197

    Re: Load and save

    That should use true/false on the checked, like so:

    Code:
     
       If CheckBox1.checked = false And CheckBox2.checked = false Then
    
    MsgBox("u most check 1 option", MsgBoxStyle.OkOnly, "Alert!!!!")
                  End If

  5. #5
    Wait... what? weirddemon's Avatar
    Join Date
    Jan 2009
    Location
    USA
    Posts
    3,826

    Re: Load and save

    Quote Originally Posted by frozie View Post
    Works good but this code dosent work.

    vb Code:
    1. If CheckBox1.unchecked And CheckBox2.unchecked Then
    2.             MsgBox("u most check 1 option", MsgBoxStyle.OkOnly, "Alert!!!!")
    3.         End If
    VB.NET Code:
    1. If CheckBox1.Checked = False And CheckBox2.Checked = False Then
    2.     MessageBox.Show("You must select one option.", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Error)
    3. End If
    CodeBank contributions: Process Manager, Temp File Cleaner

    Quote Originally Posted by SJWhiteley
    "game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....

  6. #6

    Thread Starter
    Addicted Member frozie's Avatar
    Join Date
    Apr 2010
    Posts
    146

    Re: Load and save

    yes yes i understand now

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width