By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,239 Members | 1,503 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,239 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
5 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
well, that answers both our questions....thank you
Nov 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.