Hi all,

Is there a way to do this? When either a TextBox or
EditBox have focus it highlights the entire entry? i.e.
when I tab through a form with many fields, it will
highlight the contents of the Text & Edit Box. Right now
when I tab to a field, the cursor is at the beginning of
the box.

Thanks,
Mark

TextBox & EditBox Question by Glen

Glen
Mon Dec 01 14:38:05 CST 2003

Set the format to "K"

>-----Original Message-----
>Hi all,
>
>Is there a way to do this? When either a TextBox or
>EditBox have focus it highlights the entire entry? i.e.
>when I tab through a form with many fields, it will
>highlight the contents of the Text & Edit Box. Right now
>when I tab to a field, the cursor is at the beginning of
>the box.
>
>Thanks,
>Mark
>
>.
>

Re: TextBox & EditBox Question by Neil

Neil
Mon Dec 01 14:39:39 CST 2003

Put the letter 'K' in the Format propert of the textbox or editbox (see help
on Format property).

Regards,
Neil

"Dthmtlgod" <dthmtlgod@hotmail.com> wrote in message
news:039901c3b849$005a09d0$a101280a@phx.gbl...
> Hi all,
>
> Is there a way to do this? When either a TextBox or
> EditBox have focus it highlights the entire entry? i.e.
> when I tab through a form with many fields, it will
> highlight the contents of the Text & Edit Box. Right now
> when I tab to a field, the cursor is at the beginning of
> the box.
>
> Thanks,
> Mark
>



Re: TextBox & EditBox Question by Wolfgang

Wolfgang
Mon Dec 01 17:18:16 CST 2003

Do you want to highlight the entry or do you want to change the Backcolor on
entry the textbox. If you want the last you could write in the gotfocus
method
this.Backcolor =rgb(255,0,0)
this.forecolor=rgb(255,255,255)

and in the Lostfocus method
this.backcolor=rgb(255,255,255)
this.forecolor=rgb(0,0,0)

--
_________________

MFG
Wolfgang Schmale

MS Visual FoxPro MVP

--------------------------------
"Dthmtlgod" <dthmtlgod@hotmail.com> schrieb im Newsbeitrag
news:039901c3b849$005a09d0$a101280a@phx.gbl...
> Hi all,
>
> Is there a way to do this? When either a TextBox or
> EditBox have focus it highlights the entire entry? i.e.
> when I tab through a form with many fields, it will
> highlight the contents of the Text & Edit Box. Right now
> when I tab to a field, the cursor is at the beginning of
> the box.
>
> Thanks,
> Mark
>


Re: TextBox & EditBox Question by Rush

Rush
Mon Dec 01 17:45:46 CST 2003

Set the SelectOnEntry property to .T.

- Rush

"Wolfgang Schmale" <w_schmale@wsnews.de> wrote in message
news:%232$npFGuDHA.1744@TK2MSFTNGP12.phx.gbl...
> Do you want to highlight the entry or do you want to change the Backcolor
on
> entry the textbox. If you want the last you could write in the gotfocus
> method
> this.Backcolor =rgb(255,0,0)
> this.forecolor=rgb(255,255,255)
>
> and in the Lostfocus method
> this.backcolor=rgb(255,255,255)
> this.forecolor=rgb(0,0,0)
>
> --
> _________________
>
> MFG
> Wolfgang Schmale
>
> MS Visual FoxPro MVP
>
> --------------------------------
> "Dthmtlgod" <dthmtlgod@hotmail.com> schrieb im Newsbeitrag
> news:039901c3b849$005a09d0$a101280a@phx.gbl...
> > Hi all,
> >
> > Is there a way to do this? When either a TextBox or
> > EditBox have focus it highlights the entire entry? i.e.
> > when I tab through a form with many fields, it will
> > highlight the contents of the Text & Edit Box. Right now
> > when I tab to a field, the cursor is at the beginning of
> > the box.
> >
> > Thanks,
> > Mark
> >
>



Re: TextBox & EditBox Question by Dthmtlgod

Dthmtlgod
Mon Dec 01 19:14:18 CST 2003

Thanks, that does the trick, one little problem, say I
want to change the info in the editbox after highligthed,
no matter what I do, the cursor always jumps to the far
let of the editbox. How can I click say in the middle or
end and remove and/or edit text at that point?

Thanks

>-----Original Message-----
>Put the letter 'K' in the Format propert of the textbox
or editbox (see help
>on Format property).
>
>Regards,
>Neil
>
>"Dthmtlgod" <dthmtlgod@hotmail.com> wrote in message
>news:039901c3b849$005a09d0$a101280a@phx.gbl...
>> Hi all,
>>
>> Is there a way to do this? When either a TextBox or
>> EditBox have focus it highlights the entire entry?
i.e.
>> when I tab through a form with many fields, it will
>> highlight the contents of the Text & Edit Box. Right
now
>> when I tab to a field, the cursor is at the beginning
of
>> the box.
>>
>> Thanks,
>> Mark
>>
>
>
>.
>

Re: TextBox & EditBox Question by DTHMTLGOD

DTHMTLGOD
Tue Dec 02 07:49:02 CST 2003

Thanks both the K and the SelectOnEntry both work. However, the information
in the fields seem to be read only, it won't let me update the information.
When I click in the box, the cursor moves to the front of the editBox and it
won't let me go pass the first character position. It won't let me
highlight and delete either.

Any info you can provide would be great.


"Rush Strong" <rush.strong]@[verizon.net> wrote in message
news:OOdWoTGuDHA.3196@TK2MSFTNGP11.phx.gbl...
> Set the SelectOnEntry property to .T.
>
> - Rush
>
> "Wolfgang Schmale" <w_schmale@wsnews.de> wrote in message
> news:%232$npFGuDHA.1744@TK2MSFTNGP12.phx.gbl...
> > Do you want to highlight the entry or do you want to change the
Backcolor
> on
> > entry the textbox. If you want the last you could write in the gotfocus
> > method
> > this.Backcolor =rgb(255,0,0)
> > this.forecolor=rgb(255,255,255)
> >
> > and in the Lostfocus method
> > this.backcolor=rgb(255,255,255)
> > this.forecolor=rgb(0,0,0)
> >
> > --
> > _________________
> >
> > MFG
> > Wolfgang Schmale
> >
> > MS Visual FoxPro MVP
> >
> > --------------------------------
> > "Dthmtlgod" <dthmtlgod@hotmail.com> schrieb im Newsbeitrag
> > news:039901c3b849$005a09d0$a101280a@phx.gbl...
> > > Hi all,
> > >
> > > Is there a way to do this? When either a TextBox or
> > > EditBox have focus it highlights the entire entry? i.e.
> > > when I tab through a form with many fields, it will
> > > highlight the contents of the Text & Edit Box. Right now
> > > when I tab to a field, the cursor is at the beginning of
> > > the box.
> > >
> > > Thanks,
> > > Mark
> > >
> >
>
>