PureSc0pe Posted April 13, 2004 Posted April 13, 2004 This code writes to a .ini file from a textbox using a combox as well. What would the code have if it was just from a TextBox? ini.Write(ComboBox1.SelectedItem.ToString, "NickName", TextBox1.Text) This Code reads from the .ini file sending to the textbox using a combobox. What would the code have to be if it was just sending it to the textbox? TextBox1.Text = ini.ReadString(ComboBox1.SelectedItem.ToString, "NickName") Quote It's not impossible, it's Inevitable.
Moderators Robby Posted April 13, 2004 Moderators Posted April 13, 2004 Is this a trick question? :) ini.Write(TextBox1.text, "NickName", TextBox1.Text) Quote Visit...Bassic Software
PureSc0pe Posted April 15, 2004 Author Posted April 15, 2004 Is this a trick question? :) ini.Write(TextBox1.text, "NickName", TextBox1.Text) That made it save to the file like this: [PureSc0pe] 'Shouldn't be here Nickname=PureSc0pe And it wrote the end of the file when Nickname= was already at the top... And TextBox51.Text = ini.ReadString("serverip=") only reads what's in the [] Quote It's not impossible, it's Inevitable.
PureSc0pe Posted April 16, 2004 Author Posted April 16, 2004 Problem Solved. Quote It's not impossible, it's Inevitable.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.