Results 1 to 3 of 3

Thread: Data Scrolling

  1. #1

    Thread Starter
    Lively Member vhinehds's Avatar
    Join Date
    Aug 2003
    Location
    Philippines
    Posts
    79

    Question Data Scrolling

    Im using VB6.0 and now starting to upgrade to VB.NET.

    The problem is, i made a VB.NET program which only displays a database thru datagrid and textboxes. im successful with that but the problem is whenever i scroll through the data backward or going back to previous i have this error appearing:


    An unhandled exception of type 'System.NullReferenceException' occurred in system.windows.forms.dll

    Additional information: Object reference not set to an instance of an object.



    can anyone help me how to get rid of that error, please.
    Prepare your Soul for the Reaper.

  2. #2
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    Post the code you are having problem with.

  3. #3

    Thread Starter
    Lively Member vhinehds's Avatar
    Join Date
    Aug 2003
    Location
    Philippines
    Posts
    79

    Data Scrolling

    this is the code for the Movefirst and MovePrevious:

    Private Sub btnmovefirst_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnmovefirst.Click

    mycursor.Position = 0
    txtvalues()

    End Sub




    Private Sub btnmoveprevious_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnmoveprevious.Click

    mycursor.Position = mycursor.Position - 1
    txtvalues()

    End Sub
    Prepare your Soul for the Reaper.

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