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. Visual Basic
  4. print, assign and logon

print, assign and logon

Scheduled Pinned Locked Moved Visual Basic
helpcsharpdatabasetutorial
6 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.
  • M Offline
    M Offline
    Manik Nath
    wrote on last edited by
    #1

    hi ppl, i'm facing three problems can anyone guide me. it will be of great help. i'm using vb.net and ms access as database. the problems are as follows:- 1). I have a database with one table named project name with only one field. what i need is to get any particular record from that table to be displayed in a textbox named txtproject. 2). another problem is that i have a web form with 3 textboxes, 3 labels and 1 button named print. what i need is to get is that on click of button only the text fields of labels and textboxes to print on paper. 3). The problem is that i want to create a logon page. i have a database in access which has one table and two coulmns username and password. how do i do it. Thanks and Regards Manik

    C 1 Reply Last reply
    0
    • M Manik Nath

      hi ppl, i'm facing three problems can anyone guide me. it will be of great help. i'm using vb.net and ms access as database. the problems are as follows:- 1). I have a database with one table named project name with only one field. what i need is to get any particular record from that table to be displayed in a textbox named txtproject. 2). another problem is that i have a web form with 3 textboxes, 3 labels and 1 button named print. what i need is to get is that on click of button only the text fields of labels and textboxes to print on paper. 3). The problem is that i want to create a logon page. i have a database in access which has one table and two coulmns username and password. how do i do it. Thanks and Regards Manik

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      1. Look at the System.Data namespace for connecting to your DB and running SQL against it 2. I doubt you can do it, you need a button that says 'print view' which renders what you want to print in a new window. 3. The web is full of info on how to create a login page using the built in features of ASP.NET. Christian Graus - Microsoft MVP - C++

      M 1 Reply Last reply
      0
      • C Christian Graus

        1. Look at the System.Data namespace for connecting to your DB and running SQL against it 2. I doubt you can do it, you need a button that says 'print view' which renders what you want to print in a new window. 3. The web is full of info on how to create a login page using the built in features of ASP.NET. Christian Graus - Microsoft MVP - C++

        M Offline
        M Offline
        Manik Nath
        wrote on last edited by
        #3

        Hi Chris, Thanks For your advice. But the first Problem i'm still not able to figure out how assign value to textbox. a bit of code will help. If possible please help me. Manik

        C 1 Reply Last reply
        0
        • M Manik Nath

          Hi Chris, Thanks For your advice. But the first Problem i'm still not able to figure out how assign value to textbox. a bit of code will help. If possible please help me. Manik

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          You need to look up references before asking, because otherwise you'll never learn how to work stuff out for yourself. If you have a TextBox, called tb, then tb.Text = "This is the Text" will assign a value to a TextBox. Christian Graus - Microsoft MVP - C++

          M 1 Reply Last reply
          0
          • C Christian Graus

            You need to look up references before asking, because otherwise you'll never learn how to work stuff out for yourself. If you have a TextBox, called tb, then tb.Text = "This is the Text" will assign a value to a TextBox. Christian Graus - Microsoft MVP - C++

            M Offline
            M Offline
            Manik Nath
            wrote on last edited by
            #5

            Thanx Chris for your valuable sugesstion of how to assign value to textbox but the question here was to get only one record from a list of records in database. ne ways i solved the problem. i think you are right that everyone should learn on their own. Thanks and Regards Manik

            C 1 Reply Last reply
            0
            • M Manik Nath

              Thanx Chris for your valuable sugesstion of how to assign value to textbox but the question here was to get only one record from a list of records in database. ne ways i solved the problem. i think you are right that everyone should learn on their own. Thanks and Regards Manik

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              manik nath wrote: i think you are right that everyone should learn on their own. Hi Manik. I didn't mean that you shouldn't ask for help, just try to solve the problem yourself first. And perhaps explain it better, I read your second to last response as meaning you didn't know how to set a string to a textbox, and because that's such a basic question, I answered it AND said that for questions like that, you really shouldn't need help. But, by all means, ask for help when you're stuck, that's what this forum is for. Christian Graus - Microsoft MVP - C++

              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