dbl click

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lee123
    Contributor
    • Feb 2007
    • 556

    dbl click

    here is the senerio,

    i have a form that has a field on it named (txtID) i want to be able to dbl click on it to open up another form with the same field (txtid) with that persons information. the form i have has an access database in the backend im using visual basic 6 as my front end i am using some ado controls on these forms that are conneting to the access database is this something i can do?

    lee123
  • lotus18
    Contributor
    • Nov 2007
    • 865

    #2
    Originally posted by lee123
    here is the senerio,

    i have a form that has a field on it named (txtID) i want to be able to dbl click on it to open up another form with the same field (txtid) with that persons information. the form i have has an access database in the backend im using visual basic 6 as my front end i am using some ado controls on these forms that are conneting to the access database is this something i can do?

    lee123
    Hi lee

    I have a sample program here on how to do that but not using an ado control. I don't use ado control for 2 years now (i think).

    Rey Sean

    Comment

    • daniel aristidou
      Contributor
      • Aug 2007
      • 494

      #3
      Originally posted by lee123
      here is the senerio,

      i have a form that has a field on it named (txtID) i want to be able to dbl click on it to open up another form with the same field (txtid) with that persons information. the form i have has an access database in the backend im using visual basic 6 as my front end i am using some ado controls on these forms that are conneting to the access database is this something i can do?

      lee123
      Hi lee...
      I havent done this in vb6 but in vb08 i have so ill just post a rough code outline for you...
      [CODE=vb] Private Sub Text_onclick()
      form2.show()
      form2.dataset.R Ecordset.positi on = form2.dataset.R Ecordset.find = "txtid" & Textbox.Text
      End Sub
      [/CODE]

      Comment

      • lotus18
        Contributor
        • Nov 2007
        • 865

        #4
        Originally posted by daniel aristidou
        Hi lee...
        I havent done this in vb6 but in vb08 i have so ill just post a rough code outline for you...
        [CODE=vb] Private Sub Text_onclick()
        form2.show()
        form2.dataset.R Ecordset.positi on = form2.dataset.R Ecordset.find = "txtid" & Textbox.Text
        End Sub
        [/CODE]
        In vb6, you don't have to use () in showing a form. : )

        [CODE=vb]form2.show[/CODE]

        Rey Sean

        Comment

        • Killer42
          Recognized Expert Expert
          • Oct 2006
          • 8429

          #5
          The OP also said they want to double-click.

          Comment

          • daniel aristidou
            Contributor
            • Aug 2007
            • 494

            #6
            Originally posted by Killer42
            The OP also said they want to double-click.
            Ok....Chill
            Was just an example

            Daniel(~_~)

            Comment

            • werks
              New Member
              • Dec 2007
              • 218

              #7
              Have you solved your problem?


              Better Than Yesterday ^^

              Comment

              • lee123
                Contributor
                • Feb 2007
                • 556

                #8
                well actually no my problem still stands on how i can do this

                lee123

                Comment

                • Ali Rizwan
                  Banned
                  Contributor
                  • Aug 2007
                  • 931

                  #9
                  Originally posted by lee123
                  here is the senerio,

                  i have a form that has a field on it named (txtID) i want to be able to dbl click on it to open up another form with the same field (txtid) with that persons information. the form i have has an access database in the backend im using visual basic 6 as my front end i am using some ado controls on these forms that are conneting to the access database is this something i can do?

                  lee123
                  use this code

                  Code:
                  Private Sub txtID_DblClick()
                  
                  'Your code here
                  msgbox "I am clicked twice"
                  
                  End Sub
                  Regards
                  >> ALI <<

                  Comment

                  • Killer42
                    Recognized Expert Expert
                    • Oct 2006
                    • 8429

                    #10
                    Originally posted by daniel aristidou
                    Ok....Chill
                    Was just an example
                    No worries. That was just another way of saying... subscribing. :)

                    Comment

                    • shuvo2k6
                      New Member
                      • Jan 2008
                      • 68

                      #11
                      Hi lee123,
                      I have written a VB6 program for your.
                      That is stored at link http://www.megashare.com/348049. If you want to try with my program you can download it.

                      If you satisfy, please reply.

                      Get better.

                      Regards,
                      SHuvo
                      Last edited by Killer42; Jan 28 '08, 04:26 AM. Reason: Remove e-mail address, activate link.

                      Comment

                      • Killer42
                        Recognized Expert Expert
                        • Oct 2006
                        • 8429

                        #12
                        Sorry shuvo2k6, I've removed your e-mail address from the last post. Site posting guidelines prohibit the posting of personal contact info, to protect you from scammers and spammers who scan forums like this to find victims.

                        If people want to contact you they can click on your username to go to your profile, then select to send you an e-mail or a "private message" (PM) from there.

                        Comment

                        • shuvo2k6
                          New Member
                          • Jan 2008
                          • 68

                          #13
                          Originally posted by Killer42
                          Sorry shuvo2k6, I've removed your e-mail address from the last post. Site posting guidelines prohibit the posting of personal contact info, to protect you from scammers and spammers who scan forums like this to find victims.

                          If people want to contact you they can click on your username to go to your profile, then select to send you an e-mail or a "private message" (PM) from there.
                          Sorry Sir,
                          That type of fault will not occured in Future.

                          Comment

                          • Killer42
                            Recognized Expert Expert
                            • Oct 2006
                            • 8429

                            #14
                            Originally posted by shuvo2k6
                            Sorry Sir,
                            That type of fault will not occured in Future.
                            No problem. Like I said, it's to protect you.

                            Comment

                            Working...