473,387 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

1
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
May 29 '12 #1
2 7084
Killer42
8,435 Expert 8TB
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.)
May 29 '12 #2
PsychoCoder
465 Expert Mod 256MB
You're going to need to use the Clipboard Object to accomplish this text. Here's an example on pasting from the Clipoboard

Expand|Select|Wrap|Line Numbers
  1. 'Clear the Clipboard
  2. Clipboard.Clear
  3.  
  4. 'Set the text of the Clipboard object
  5. Clipboard.SetText "VB 6 Paste Example", vbCFText
  6.  
  7. If Clipboard.GetFormat(vbCFText) Then
  8.    'Paste the value into a TextBox. 
  9.    Text1.Text = Clipboard.GetText(vbCFText)
  10. End If
Hope this gets you started down the Rabbit hole for a full implementation of what you seek :)
Jun 5 '12 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Supra | last post by:
i am using webbrowser control using visual studio 20003. i am not getting any copy and paste working. Private Sub MenuItem24_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)...
2
by: Matt | last post by:
Hello, I have a copy button and a paste button. What code should I add to the copy button and the paste button to do it's work? Thanks, Matt
5
by: DraguVaso | last post by:
Hi, I'm looking for a way to Copy and Paste Files to the clipboard. I found a lot of articles to copy pieces of text and bitmaps etc, but nog whole files. Whay I need is like you have in...
3
by: Supra | last post by:
using webbrowser control. i am not getting thing to work with copy and paste, but select all work fine . for copy event Private Sub MenuItem24_Click(ByVal sender As System.Object, ByVal e As...
5
by: Kaur | last post by:
Hi, I have been successful copying a vba code from one of your posts on how to copy and paste a record by declaring the desired fields that needs to be copied in form's declaration and creating two...
6
by: Ben R. | last post by:
Hi, I've got a vb.net winforms app. Out of the box, I can use Ctrl X, C and V as expected in controls like textboxes. I've got a menustrip, and if I click the link "Add standard items" which...
0
by: Tom | last post by:
I need to be able to copy and paste data from an Excel spreadsheet to a grid or something to a web form and then save it to the database. example: if my spreadsheet has 20 rows of data I need to be...
9
by: Alan T | last post by:
Any source code example I can use to save the clipboard content to an object, then I will do a copy and paste, finally put back the 'saved' clipboard content back to clipboard ?
17
by: Steve | last post by:
I'm trying to code cut, copy, and paste in vb 2005 so that when the user clicks on a toolbar button, the cut/copy/paste will work with whatever textbox the cursor is current located in (I have...
5
by: phill86 | last post by:
Hi I have a main form that holds records for scheduled meetings, date time location etc... in that form i have a sub form that has a list of equipment resources that you can assign to the meeting in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.