List Info

Thread: Please help: How do I emulate a CTRL+End in a TextBox ?




Please help: How do I emulate a CTRL+End in a TextBox ?
country flaguser name
United States
2007-08-02 08:56:12

Hi, all.

I think I was not clear enough with my last message title. Sp, here
it goes again:

I have this Textbox and I need to emulate a CTRL+End everytime I
insert new text in it.

I have tried using the vbFormFeed constant, but I only got that
little square inserted meaning that it inserted an unknown character
there. The vbCRLF works like it should but it pushes the text to the
bottom. What I need is to go to the bottom of the pre-existing text.

Does anybody have an idea or tip?

Any clue will be welcome.

Obs.: My Textbox is within an AJAX Update Panel control. I don't know
what kind of influence it has on the behaviour of the Textbox.

Kind regards,
Pedro.

__._,_.___
.

__,_._,___
Re: Please help: How do I emulate a CTRL+End in a TextBox ?
country flaguser name
United States
2007-08-02 10:56:44

Hi Clark,

What do you mean by emulate CTRL-End? What exactly do you want to happen?

If you just want the cursor at the end of the current content, you can do
that with a simple textbox.focus() command.

Cheers,

Peter

On 8/2/07, Superman < pedro.carneiro%40agehab.go.gov.br">pedro.carneiroagehab.go.gov.br&gt; wrote:
&gt;
> Hi, all.
>;
> I think I was not clear enough with my last message title. Sp, here
>; it goes again:
&gt;
> I have this Textbox and I need to emulate a CTRL+End everytime I
> insert new text in it.
>
> I have tried using the vbFormFeed constant, but I only got that
>; little square inserted meaning that it inserted an unknown character
> there. The vbCRLF works like it should but it pushes the text to the
> bottom. What I need is to go to the bottom of the pre-existing text.
&gt;
> Does anybody have an idea or tip?
>;
> Any clue will be welcome.
>
>; Obs.: My Textbox is within an AJAX Update Panel control. I don't know
>; what kind of influence it has on the behaviour of the Textbox.
>
>; Kind regards,
> Pedro.
&gt;

[Non-text portions of this message have been removed]

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )