|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
|
Can anyone dire me to code that will let me drag selected text from
one text box to another text box and delete it from the first. i am a newbie A good place to start is to click on one of the textboxes, click DragMode in
the Properties window, and press F1. This will bring up the MSDN help window, where you can click the "See Also" and "Example" links. Enjoy, DrBarkley <J***@aol.com> wrote in message Show quoteHide quote news:f3j8915sjg48og9n4r7mvah6c6sr4rurlc@4ax.com... > Can anyone dire me to code that will let me drag selected text from > one text box to another text box and delete it from the first. i am a > newbie Yes I know and did that before posting :(
None of the examples deal with SelText in a textbox TIA On Wed, 25 May 2005 07:43:21 -0400, "DrBarkley" <David.NOSPAMBarkley@L-3NOSPAMCom.com> wrote: Show quoteHide quote >A good place to start is to click on one of the textboxes, click DragMode in >the Properties window, and press F1. >This will bring up the MSDN help window, where you can click the "See Also" >and "Example" links. > >Enjoy, > >DrBarkley > ><J***@aol.com> wrote in message >news:f3j8915sjg48og9n4r7mvah6c6sr4rurlc@4ax.com... >> Can anyone dire me to code that will let me drag selected text from >> one text box to another text box and delete it from the first. i am a >> newbie > I placed two textboxes on a form, set their DragMode to Automatic, and
placed this code into the DragDrop event of Text1. Private Sub Text1_DragDrop(Source As Control, X As Single, Y As Single) Text1.Text = Source.SelText Source.SelText = "" End Sub There is still a lot of work to do to make it right, but, it works. You will probably want to start by handling the dragging yourself (DragMode = Manual). Hope this helps to get you started, DrBarkley <j***@aol.com> wrote in message Show quoteHide quote news:itt891deqhoe10fesuqsk1k4n50j0u5hgn@4ax.com... > Yes I know and did that before posting :( > > None of the examples deal with SelText in a textbox > > TIA > > > On Wed, 25 May 2005 07:43:21 -0400, "DrBarkley" > <David.NOSPAMBarkley@L-3NOSPAMCom.com> wrote: > > >A good place to start is to click on one of the textboxes, click DragMode in > >the Properties window, and press F1. > >This will bring up the MSDN help window, where you can click the "See Also" > >and "Example" links. > > > >Enjoy, > > > >DrBarkley > > > ><J***@aol.com> wrote in message > >news:f3j8915sjg48og9n4r7mvah6c6sr4rurlc@4ax.com... > >> Can anyone dire me to code that will let me drag selected text from > >> one text box to another text box and delete it from the first. i am a > >> newbie > > > It was the start I needed I am using OLEDrag and OLEDrop modes
Thanks On Wed, 25 May 2005 09:31:26 -0400, "DrBarkley" <David.NOSPAMBarkley@L-3NOSPAMCom.com> wrote: Show quoteHide quote >I placed two textboxes on a form, set their DragMode to Automatic, and >placed this code into the DragDrop event of Text1. > >Private Sub Text1_DragDrop(Source As Control, X As Single, Y As Single) > Text1.Text = Source.SelText > Source.SelText = "" >End Sub > >There is still a lot of work to do to make it right, but, it works. >You will probably want to start by handling the dragging yourself (DragMode >= Manual). > >Hope this helps to get you started, > >DrBarkley > ><j***@aol.com> wrote in message >news:itt891deqhoe10fesuqsk1k4n50j0u5hgn@4ax.com... >> Yes I know and did that before posting :( >> >> None of the examples deal with SelText in a textbox >> >> TIA >> >> >> On Wed, 25 May 2005 07:43:21 -0400, "DrBarkley" >> <David.NOSPAMBarkley@L-3NOSPAMCom.com> wrote: >> >> >A good place to start is to click on one of the textboxes, click DragMode >in >> >the Properties window, and press F1. >> >This will bring up the MSDN help window, where you can click the "See >Also" >> >and "Example" links. >> > >> >Enjoy, >> > >> >DrBarkley >> > >> ><J***@aol.com> wrote in message >> >news:f3j8915sjg48og9n4r7mvah6c6sr4rurlc@4ax.com... >> >> Can anyone dire me to code that will let me drag selected text from >> >> one text box to another text box and delete it from the first. i am a >> >> newbie >> > >> > <J***@aol.com> wrote
> Can anyone dire me to code that will let me drag selected text from Add 2 textboxes to a form, set their OLEDrag and OLEDrop modes> one text box to another text box and delete it from the first. i am a > newbie to automatic, then run the program and try it out.... Will that suffice? LFS |
|||||||||||||||||||||||