473,324 Members | 2,417 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,324 software developers and data experts.

HELP! Need code for Cut, Copy, Paste, and Find functions PLEASE!!

I am fairly new to working with programming so pardon my lack of knowledge,
but I was hoping someone could assist me with working on a project. I am
trying to make a Windows application using Visual Basic 2005 Express, and am
wanting to have a menu bar with one of the drop downs being similar to that
of the "Edit" drop down in most any other Windows app.
I am wanting to find the code to perform such functions as Cutting, Copying
and Pasting... I found some, but it references a specific Textbox. I would
like it so that whereever the person clicks they can cut, copy, and paste the
selected text.

Also theres the Find function where you can find text on a page, where can I
find the code to do such a function?

Nov 21 '05 #1
5 1595
hi, i dont kno if it is there for textboxes but for rich text boxes there are
prewritten codes for that, these are not tested but its either:

me.richtextbox1.Cut()
or
me.richtextbox1.SelectedText.Cut()

i think its the first one, but there are codes written for cut, copy, and
paste
Nov 21 '05 #2
not to sound stupid, but whats the difference between a "textbox" and a "
rich textbox"...?

"iwdu15" wrote:
hi, i dont kno if it is there for textboxes but for rich text boxes there are
prewritten codes for that, these are not tested but its either:

me.richtextbox1.Cut()
or
me.richtextbox1.SelectedText.Cut()

i think its the first one, but there are codes written for cut, copy, and
paste

Nov 21 '05 #3
lol to b honest, since i am relativly new to programming, i havent the
slightest idea, all i kno is that in my expirience, rich text boxes are much
easier to work with. i use them a lot and only use textboxes for very shrot
text. sry i cant b more help but i have no idea what the difference is
Nov 21 '05 #4
TextBox uses plain text - period. RichTextBox has font capabilities,
formatting capabilities, and uses a different text structure, thereby
called "RICH TEXT".

Tom
DigitalGENOcyde wrote:
not to sound stupid, but whats the difference between a "textbox" and a "
rich textbox"...?

"iwdu15" wrote:
hi, i dont kno if it is there for textboxes but for rich text boxes there are
prewritten codes for that, these are not tested but its either:

me.richtextbox1.Cut()
or
me.richtextbox1.SelectedText.Cut()

i think its the first one, but there are codes written for cut, copy, and
paste

Nov 21 '05 #5
well, that answers both our questions....thank you
Nov 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: The Flyer | last post by:
Hi Sorry for posting this message to so many groups, but I was not sure which group the windows keyboard experts would be reading, so I ventured to post it to all of them. I want to map or...
1
by: s-galit | last post by:
hi, how to let the user do the cut,copy,paste in the dataGrid?? im using the DataGrid,DataGridTableStyle and DataGridTextBoxColumn Thanks
4
by: Legendary Pansy | last post by:
I was checking out the 101 C# Samples, specifically Windows Forms - Use the Clipboard. I took a look at the code for a while, and I understand what the program is doing with the cut, copy, pasting...
2
by: Max81 | last post by:
Im trying to build a calculator for an assignment! (due wednesday) im having trouble finding any code for creating Copy/Paste menu buttons (just need the "doing" code) can anyone help? in...
7
by: lgbjr | last post by:
Hello All, I¡¯m using a context menu associated with some pictureboxes to provide copy/paste functionality. Copying the image to the clipboard was easy. But pasting an image from the clipboard...
8
by: serge calderara | last post by:
Dear all, I have an treeview control with different node object, I would like to implement the Copy/Paste function of an object . For that I am using the folowing function to copy teh object to...
1
by: moty | last post by:
Do any body have a code example that illustrate the preprocessor of moving #define macro into the code. I need to replace all macro call (#define) in my code (file) with the macro code. ...
2
by: OfficeDummy | last post by:
Hi, everyone! Like I mentioned in the thread title, I need to copy&paste data between different workbooks, and it works fine. However, when the data has been copied to the destination workbook,...
8
by: jh | last post by:
I'd like to copy/paste into a listbox during runtime. I can do this for a textbox but can't figure out how to accomplish this for a listbox. Any help? Thanks.
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.