Complete Beginner

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • steve young
    New Member
    • Jul 2006
    • 6

    Complete Beginner

    Hi, a complete idiot would like some help with the following: I have 17 command buttons, which I would like to assign 17 text boxes to. The boxes are to be hidden, until the appropriate button is pressed. When the text box appears, I need to be able to add data to it, and then save it somewhere for future reference. I have tried using the combo box, but I cannot get it to work, even following examples in the books. Can anybody help me with this? :confused:
  • sashi
    Recognized Expert Top Contributor
    • Jun 2006
    • 1749

    #2
    Hi Steven,

    see the below code on hiding a textbox..

    in your form load
    Code:
      Text1.Visible = False
      ...
      Text17.Visible = False
    in each command button (click event)
    Code:
      Text1.Visible = True

    Comment

    • steve young
      New Member
      • Jul 2006
      • 6

      #3
      thanks very much, will try

      Comment

      • steve young
        New Member
        • Jul 2006
        • 6

        #4
        Hi thanks very much for replying to a junior member. I understand your code, but when I apply it and then press run, I get a blank screen. What am I doing wrong?
        It seems anything stronger than a command button and I'm lost, even when using tutorisals.

        Comment

        • steve young
          New Member
          • Jul 2006
          • 6

          #5
          I, have sorted that bit! A result! The next thing is, when I go to enter text in the text box, it disappears, when I press the command button again, it reappers, oddly enough, with the text still in it. What is the way to keep the text box visible all the time?

          Comment

          • Bremanand
            New Member
            • Jul 2006
            • 29

            #6
            Hi..Am doing Retailer software using VB 6.0 with ms-access..

            Actually i have many form(sales entry form,purchase entry form ,stock form, etc..) in my project which all are in MDI except Log in form.

            my problem is,,, when am loging in using my user id through log in form,then MDI form will b getting loaded..

            my Doubt is......

            now each form should have the userid which was currently logged in.. i have to use this id in all of my form where ever i want...Plz let me know the solution..

            Thanks&Regards,
            Bremanand.S

            Comment

            Working...