to copy,save ,cut,paste in vb6.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • J Paul
    New Member
    • May 2012
    • 1

    to copy,save ,cut,paste in vb6.0

    how can i use this options cut,copy,paste ,save in vb6.0 and how can i define variables like active control when i am programming? help me please
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    I'm afraid your requirements aren't very clear. Can you provide a bit more detail?

    (To implement copy/paste operations, it's likely that you'll make use of the Clipboard object. Try looking it up in the online help.)

    Comment

    • PsychoCoder
      Recognized Expert Contributor
      • Jul 2010
      • 465

      #3
      You're going to need to use the Clipboard Object to accomplish this text. Here's an example on pasting from the Clipoboard

      Code:
      'Clear the Clipboard
      Clipboard.Clear
      
      'Set the text of the Clipboard object
      Clipboard.SetText "VB 6 Paste Example", vbCFText
      
      If Clipboard.GetFormat(vbCFText) Then
         'Paste the value into a TextBox. 
         Text1.Text = Clipboard.GetText(vbCFText)
      End If
      Hope this gets you started down the Rabbit hole for a full implementation of what you seek :)

      Comment

      Working...