467,182 Members | 989 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,182 developers. It's quick & easy.

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
  • viewed: 1350
Share:
5 Replies
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Legendary Pansy | last post: by
7 posts views Thread by lgbjr | last post: by
8 posts views Thread by serge calderara | last post: by
1 post views Thread by moty | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.