Connecting Tech Pros Worldwide Help | Site Map

Copying Textfield data to clipboard in VB 6

Newbie
 
Join Date: Dec 2008
Posts: 6
#1: Jan 1 '09
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@thisandthatandtheother.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@thisandthatandtheother/
3docs/ca/gf767577/ca/17-may-60/m/12-mar-12/altaf/ahmed mr-1.1
best answer - posted by QVeen72
Hi,
Prepare a Text some thing like this:
And Set it to Clipboard:

Expand|Select|Wrap|Line Numbers
  1. Dim MyStr As String
  2. MyStr =""
  3. If ChkPName.Value = vbChecked Then
  4.     MyStr = MyStr & txtPName.Text & "/"
  5. End If
  6. If chkEMail.Value = vbChecked Then
  7.     MyStr = MyStr & txtEMail.Text & "/"
  8. End If
  9. ClipBoard.SetText = MyStr
  10.  
Regards
Veena
Dököll's Avatar
Moderator
 
Join Date: Nov 2006
Location: Upstate NY - US
Posts: 2,267
#2: Jan 1 '09

re: Copying Textfield data to clipboard in VB 6


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
debasisdas's Avatar
Moderator
 
Join Date: Dec 2006
Location: Bangalore ,India
Posts: 7,505
#3: Jan 1 '09

re: Copying Textfield data to clipboard in VB 6


your question is so confusing.
can you please clarify.
Newbie
 
Join Date: Dec 2008
Posts: 6
#4: Jan 1 '09

re: Copying Textfield data to clipboard in VB 6


thanks for asking my problem
could you tell me you email address ican send you attachment and explain
Thanks
Altaf Ahmed
email removed
Newbie
 
Join Date: Dec 2008
Posts: 6
#5: Jan 1 '09

re: Copying Textfield data to clipboard in VB 6


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
Newbie
 
Join Date: Dec 2008
Posts: 6
#6: Jan 1 '09

re: Copying Textfield data to clipboard in VB 6




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 Thumbnails
databae-image.jpg  
Dököll's Avatar
Moderator
 
Join Date: Nov 2006
Location: Upstate NY - US
Posts: 2,267
#7: Jan 2 '09

re: Copying Textfield data to clipboard in VB 6


Quote:

Originally Posted by ALTAFAD View Post

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...
debasisdas's Avatar
Moderator
 
Join Date: Dec 2006
Location: Bangalore ,India
Posts: 7,505
#8: Jan 2 '09

re: Copying Textfield data to clipboard in VB 6


You may try to use Clipboard.SetText
QVeen72's Avatar
Moderator
 
Join Date: Oct 2006
Location: Bangalore
Posts: 1,385
#9: Jan 2 '09

re: Copying Textfield data to clipboard in VB 6


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

Expand|Select|Wrap|Line Numbers
  1. Dim MyStr As String
  2. MyStr =""
  3. If ChkPName.Value = vbChecked Then
  4.     MyStr = MyStr & txtPName.Text & "/"
  5. End If
  6. If chkEMail.Value = vbChecked Then
  7.     MyStr = MyStr & txtEMail.Text & "/"
  8. End If
  9. ClipBoard.SetText = MyStr
  10.  
Regards
Veena
Reply