Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows Forms
  4. iam new to .net,do help

iam new to .net,do help

Scheduled Pinned Locked Moved Windows Forms
csharpdatabasehelptutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    arunkumarv
    wrote on last edited by
    #1

    h.this is windows basd app. i have a one column and n rows in that database say column name is student id,row values are 1,2,3,4 ................n like that.in my frontend there is one textbox and one button.what i want is, when i hit the button,the textbox show 1 and again hiting button,textbox has to show 2,again iam hitting buton textbox has to show 3 and so on.....until my row value becomes null.how to do this.plz help me......

    X 1 Reply Last reply
    0
    • A arunkumarv

      h.this is windows basd app. i have a one column and n rows in that database say column name is student id,row values are 1,2,3,4 ................n like that.in my frontend there is one textbox and one button.what i want is, when i hit the button,the textbox show 1 and again hiting button,textbox has to show 2,again iam hitting buton textbox has to show 3 and so on.....until my row value becomes null.how to do this.plz help me......

      X Offline
      X Offline
      Xmen Real
      wrote on last edited by
      #2

      this is a part of the coding you want:

      int id = Convert.ToInt32(textbox.Text);
      id++;
      dataCommand.CommandText = "Select count(*) from <> where [student id] = " + id;
      byte check = dataCommand.ExecuteScalar()
      if (check > 0)
      {
      textbox.Text = id.ToString();
      }

      hope it will help

      Becoming Programmer...

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups