Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problems with multiple textboxes and coding
#16
Alright, Well, in the file you uploaded, you didn't upload the source code so I can't edit it. So I will try my best here <!-- sSmile --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt="Smile" title="Smile" /><!-- sSmile -->
OK. Step one. Declare this right under public class form1
Code:
Public writer As New System.IO.StreamWriter(My.Application.Info.DirectoryPath + "/map.ini", True)
Step2 - make 13 settings, and name them capbonus,normalbonus,timebetween,rank1skill,rank2skill,rank3skill,rank4skill,rank5skill,rank1points,rank2points,rank3points,rank4points,rank5points.
-This may seem like alot. That's because it is.

Ok so when each button is pushed, you will change the settings to the corresponding textboxes. For example, when the oil setting is pushed, you will do this :
Code:
my.settings.capbonus = txt_capbonus.text
my.settings.normalbonus = txt_normalbonus.text
my.settings.timebetween = txt_timebetween.text
You will need to do the same thing with the rank tab.
Then, you will need to delete the text file when a button is pushed
Code:
my.computer.filesystem.deletefile(my.application.info.directorypath + "/map.ini")
Then, you can write to the file. Simply replace all the spots where it gets a txtbox.text, with their corresponding settings. And make sure when you click one button, it writes both the rank and the oil settings.


Hope this helped!
My Blog | My Setup | My Videos | Have a wonderful day.


Messages In This Thread
Re: Problems with multiple textboxes and coding - by brandonio21_phpbb3_import2 - 01-23-2011, 10:30 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  multiple csv files add sql server tables via VB.NET secilsengul 1 9,497 04-16-2014, 10:27 AM
Last Post: brco900033
  Problems with dividing a string brco900033 6 21,946 10-26-2013, 07:31 AM
Last Post: brco900033
  How to write string query on multiple lines kismetgerald 1 8,478 08-29-2012, 04:01 PM
Last Post: brandonio21
  VB.Net Query Builder Problems. Moldraxian 2 11,053 08-17-2012, 05:33 AM
Last Post: Moldraxian

Forum Jump:


Users browsing this thread: 1 Guest(s)