|
-
Jun 6th, 2010, 10:23 AM
#1
Thread Starter
Addicted Member
[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 ?
-
Jun 6th, 2010, 10:30 AM
#2
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
 Originally Posted by SJWhiteley
"game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....
-
Jun 6th, 2010, 10:54 AM
#3
Thread Starter
Addicted Member
Re: Load and save
Works good but this code dosent work.
vb Code:
If CheckBox1.unchecked And CheckBox2.unchecked Then MsgBox("u most check 1 option", MsgBoxStyle.OkOnly, "Alert!!!!") End If
-
Jun 6th, 2010, 12:16 PM
#4
Addicted Member
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
-
Jun 6th, 2010, 01:24 PM
#5
Re: Load and save
 Originally Posted by frozie
Works good but this code dosent work.
vb Code:
If CheckBox1.unchecked And CheckBox2.unchecked Then MsgBox("u most check 1 option", MsgBoxStyle.OkOnly, "Alert!!!!") End If
VB.NET Code:
If CheckBox1.Checked = False And CheckBox2.Checked = False Then MessageBox.Show("You must select one option.", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Error) End If
CodeBank contributions: Process Manager, Temp File Cleaner
 Originally Posted by SJWhiteley
"game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....
-
Jun 6th, 2010, 01:25 PM
#6
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|