Home All Groups Group Topic Archive Search About
Author
25 May 2005 10:01 AM
Josh
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

Author
25 May 2005 11:43 AM
DrBarkley
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
Author
25 May 2005 1:05 PM
josh
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
>
Author
25 May 2005 1:31 PM
DrBarkley
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
> >
>
Author
25 May 2005 4:19 PM
josh
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
>> >
>>
>
Author
25 May 2005 1:32 PM
Larry Serflaten
<J***@aol.com> wrote
> 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

Add 2 textboxes to a form, set their OLEDrag and OLEDrop modes
to automatic, then run the program and try it out....

Will that suffice?

LFS