Copying Textfield data to clipboard in VB 6

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ALTAFAD
    New Member
    • Dec 2008
    • 6

    Copying Textfield data to clipboard in VB 6

    How to copy selected (s) textfield, which those selected through checkbox

    I like to copy in clipboard. Access textfield data when front of the textfield checkbox is checked if not checked it should not copy in clipboard.

    If text field has data like that

    altaf/ahmed mr one field checked
    goodguydude@thi sandthatandtheo ther.com one field checked
    ca gf767577 ca 17-may-60 M 12-mar-12 six field checked with one checkbox

    Upon pressing Action button (s)
    I like to have data in clipboard like this

    -altaf/ahmed/+
    pe=goodguydude@ thisandthatandt heother/
    3docs/ca/gf767577/ca/17-may-60/m/12-mar-12/altaf/ahmed mr-1.1
    Last edited by Dököll; Jan 1 '09, 04:17 PM. Reason: Modified email...
  • Dököll
    Recognized Expert Top Contributor
    • Nov 2006
    • 2379

    #2
    Happy New Year!

    I went ahead a modified your email since it looks like you wanted to make a point with it.

    Are you able to at least establish a connection to your Access back end?

    Please post what you have working thus far for a quick look...

    I also noticed your title did not say too much. Please let us know if okay as is
    Last edited by Dököll; Jan 2 '09, 01:40 AM. Reason: title modified from "Mr Expert" remark...

    Comment

    • debasisdas
      Recognized Expert Expert
      • Dec 2006
      • 8119

      #3
      your question is so confusing.
      can you please clarify.

      Comment

      • ALTAFAD
        New Member
        • Dec 2008
        • 6

        #4
        thanks for asking my problem
        could you tell me you email address ican send you attachment and explain
        Thanks
        Altaf Ahmed
        email removed
        Last edited by Dököll; Jan 2 '09, 01:41 AM. Reason: removed email...

        Comment

        • ALTAFAD
          New Member
          • Dec 2008
          • 6

          #5
          Hi
          I have made database file which has 8 textfield in form view and 3 checkbox to select them and one button for copy command as follow

          altaf/ahmed mr one field checkbox
          "removed email here too" one field checkbox
          ca gf767577 ca 17-may-60 M 12-mar-12 six field checkbox
          copybutton



          How to copy selected (s) textfield, which those selected through checkbox

          I like to copy in clipboard. Access textfield data when front of the textfield checkbox is checked if not checked it should not copy in clipboard.

          If text field has data like that

          altaf/ahmed mr one field checked
          "removed email here too" one field checked
          ca gf767577 ca 17-may-60 M 12-mar-12 six field checked with one checkbox

          Upon pressing Action button (s) copybutton
          I like to have data in clipboard like this

          -altaf/ahmed/+
          pe="removed email here too" /
          3docs/ca/gf767577/ca/17-may-60/m/12-mar-12/altaf/ahmed mr-1.1
          Last edited by Dököll; Jan 2 '09, 01:45 AM. Reason: email removed on all counts...

          Comment

          • ALTAFAD
            New Member
            • Dec 2008
            • 6

            #6
            How to copy selected (s) textfield, which those selected through checkbox



            Hi
            I have made database file which has 8 textfield in form view and 3 checkbox to select them and one button for copy command as follow

            altaf/ahmed mr one field checkbox
            "email address removed" one field checkbox
            ca gf767577 ca 17-may-60 M 12-mar-12 six field checkbox
            copybutton



            How to copy selected (s) textfield, which those selected through checkbox

            I like to copy in clipboard. Access textfield data when front of the textfield checkbox is checked if not checked it should not copy in clipboard.

            If text field has data like that

            altaf/ahmed mr checked
            "email address removed" checked
            ca gf767577 ca 17-may-60 M 12-mar-12 checked six field with one checkbox

            Upon pressing Action button (s) copybutton
            I like to have data in clipboard like this

            -altaf/ahmed/+
            pe="email address removed"/
            3docs/ca/gf767577/ca/17-may-60/m/12-mar-12/altaf/ahmed mr-1.1
            Attached Files
            Last edited by Dököll; Jan 2 '09, 01:46 AM. Reason: email removed...

            Comment

            • Dököll
              Recognized Expert Top Contributor
              • Nov 2006
              • 2379

              #7
              Originally posted by ALTAFAD
              thanks for asking my problem
              could you tell me you email address ican send you attachment and explain
              Thanks
              Altaf Ahmed
              email removed
              I removed your email previously because we're trying to protect our visiters from spammers and so on. You can PM someone for thanks, but I believe we'd rather you post everything here for all to see...

              Comment

              • debasisdas
                Recognized Expert Expert
                • Dec 2006
                • 8119

                #8
                You may try to use Clipboard.SetTe xt

                Comment

                • QVeen72
                  Recognized Expert Top Contributor
                  • Oct 2006
                  • 1445

                  #9
                  Hi,
                  Prepare a Text some thing like this:
                  And Set it to Clipboard:

                  [code=vb]
                  Dim MyStr As String
                  MyStr =""
                  If ChkPName.Value = vbChecked Then
                  MyStr = MyStr & txtPName.Text & "/"
                  End If
                  If chkEMail.Value = vbChecked Then
                  MyStr = MyStr & txtEMail.Text & "/"
                  End If
                  ClipBoard.SetTe xt = MyStr
                  [/code]

                  Regards
                  Veena

                  Comment

                  Working...