Results 1 to 2 of 2

Thread: help with code please

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2009
    Posts
    4

    help with code please

    Hi guys
    im a real beginner so this is probably a really simple fix for you guys but hey ho.

    Heres the code im working with:

    Public Class Form1

    Private Sub DateTimePicker1_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DateChooser.ValueChanged
    NextWeek.Text = DateChooser.Value.AddDays(7)).ToString()
    End Sub
    End Class

    The part thats not work is on line 6 at the end where it says ").ToString()"
    Basicaly when i debug it it say that an end of statement is expected due to this part of the coding.

    Any help will be greatly appreciated

  2. #2
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: help with code please

    Every opening parenthesis needs to couple with a closing parenthesis.
    Now count how many "(" and how many ")" you have on that line. Add/remove them as neccessary.
    Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
    - Abraham Lincoln -

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