Results 1 to 34 of 34

Thread: read/write to ini file help...[SOLVED]

Threaded View

  1. #4

    Thread Starter
    Hyperactive Member PlaGuE's Avatar
    Join Date
    Jun 2005
    Location
    in ur mind.
    Posts
    445

    Re: read/write to ini file help...

    i hada let dog outside for a min so i thought i'd come and check...

    You may call me noob right now... god knows i am...

    i know i should figure tis out on my own...and i will but just incase i cant find where... can you give me an example...


    i would think that...

    VB Code:
    1. Private Sub Apply_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Apply.Click
    2.         'Save the updated user credentials.
    3.         'Load the user credentials.
    4.         Dim currentUser As UserCredentials = Me.LoadUserCredentials()
    5.         currentUser.UserName = Me.UserName.Text
    6.         currentUser.Password = Me.password.Text
    7.  
    8.         Me.SaveUserCredentials(currentUser)
    9.     End Sub

    VB Code:
    1. Private Sub mnuBotConfig_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    2.         'Load the user credentials.
    3.         Dim currentUser As UserCredentials = Me.LoadUserCredentials()
    4.  
    5.         'Populate the text boxes with the user credentials.
    6.         Me.UserName.Text = currentUser.UserName
    7.         Me.password.Text = currentUser.Password
    8.  
    9.         'Do whatever.
    10.     End Sub
    i get no underlined code there...
    but when i run it and i access the form it exeptions me
    Last edited by PlaGuE; Jun 6th, 2005 at 02:26 AM.
    Without balance, there could only be chaos.
    Without chaos, there could be no balance.
    I live with karma. Eat with destiny. Dream of life without shackles....
    Yet. If life had no consequences, life could not exist, nor could it flourish.


    If at first you dont succeed.You're screwed.

    C++/Java NOOB.

    I aint a professional at PHP, but if i can help i will.

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