1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Any one know anything about Visual Basic.net?

Discussion in 'Software' started by ericrollo, Apr 10, 2009.

  1. ericrollo

    ericrollo Megabyte Poster

    524
    11
    64
    Any one know anything about Visual Basic.net?

    Im having difficulties making a database application, i am trying to make a button which will allow the labels on a form (which i am using to show data) to move to the next record in the data base.
     
    Certifications: MOS Master, A+, MCP 271
    WIP: HND, Programming, Another Job
  2. ThomasMc

    ThomasMc Gigabyte Poster

    1,507
    49
    111
    Have a look here
     
    Certifications: MCDST|FtOCC
    WIP: MCSA(70-270|70-290|70-291)
  3. ericrollo

    ericrollo Megabyte Poster

    524
    11
    64
    Nice a fellow Warhawk player i will take a look at it when i have time thanks.
     
    Certifications: MOS Master, A+, MCP 271
    WIP: HND, Programming, Another Job
  4. ThomasMc

    ThomasMc Gigabyte Poster

    1,507
    49
    111
    Do you visit the Warhawk forums? You can download the source on that page to have a poke about with too.
     
    Certifications: MCDST|FtOCC
    WIP: MCSA(70-270|70-290|70-291)
  5. ericrollo

    ericrollo Megabyte Poster

    524
    11
    64
    No i only play it every now and again now killzone 2 and little big planet are the games now.
     
    Certifications: MOS Master, A+, MCP 271
    WIP: HND, Programming, Another Job
  6. LordMoolyBap

    LordMoolyBap Nibble Poster

    95
    0
    28
    How are you retrieving the data from the database? If you are using SQL or Access I assume you are just retrieving a datatable and then assigning the labels / textboxes values form the datatable such as

    label1.text = datatable.rows(0)(0)

    assuming that then it may be easiest to have a row count integer starting a 0 then on the button event increment the integer like...

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
    row += 1
    TextBox1.Text = table.Rows(row)(0)
    End Sub


    equally if you had a button to go back throught them just decrement it. Obviously you would need to check if you had reached the last record in the table ie if table.rows.count <= row then.....

    This isn't the ideal but just a quick example. Let me know if you need some more help.

    Dom
     
    Certifications: HND (Comp) MBCS
    WIP: Msc Intelligent Systems
  7. wagnerk
    Highly Decorated Member Award

    wagnerk aka kitkatninja Moderator

    10,831
    357
    341
    See my post here on free-ebooks from Microsoft.

    One of the books they are giving away is for VB .net 2008.

    -Ken
     
    Certifications: CITP, PGCert, BSc, HNC, LCGI, PTLLS, MCT, MCITP, MCTS, MCSE, MCSA:M, MCSA, MCDST, MCP, MTA, MCAS, MOS (Master), A+, N+, S+, ACA, VCA, etc... & 2nd Degree Black Belt
    WIP: PGDip

Share This Page

Loading...