In an HTA using VBScript, there is a control that allows the user to collapse
the HTA window to a smaller size. When this happens I want the window to
scroll to the very top.

Could someone please toss me the command to do this?

Thanks in advance.

Re: HTA scroll to top when window is resized by Paul

Paul
Fri Mar 07 10:11:25 CST 2008


"XP" <XP@discussions.microsoft.com> wrote in message
news:95E481E7-BED2-4F7B-9491-7A4D186C334E@microsoft.com...
> In an HTA using VBScript, there is a control that allows the user to
> collapse
> the HTA window to a smaller size. When this happens I want the
> window to
> scroll to the very top.
>
> Could someone please toss me the command to do this?

The scrolling to the very top part is probably pretty easy.
You might try a groups.google search of the
microsoft.public.scripting.vbscript newsgroup for the word
scrollintoview:
http://groups.google.com/groups?q=scrollintoview%20group:*.scripting.vbscript&num=100&scoring=d

The other problem is deciding when to scroll to the top. You mention
a control. What control is it? Are there any resize events
associated with it that you can attach a script to?

-Paul Randall



Re: HTA scroll to top when window is resized by XP

XP
Fri Mar 07 10:32:02 CST 2008

Thanks, but I found it, I was using the wrong prefix before and was getting
an error; Answer: Self.Scroll 0,0


"Paul Randall" wrote:

>
> "XP" <XP@discussions.microsoft.com> wrote in message
> news:95E481E7-BED2-4F7B-9491-7A4D186C334E@microsoft.com...
> > In an HTA using VBScript, there is a control that allows the user to
> > collapse
> > the HTA window to a smaller size. When this happens I want the
> > window to
> > scroll to the very top.
> >
> > Could someone please toss me the command to do this?
>
> The scrolling to the very top part is probably pretty easy.
> You might try a groups.google search of the
> microsoft.public.scripting.vbscript newsgroup for the word
> scrollintoview:
> http://groups.google.com/groups?q=scrollintoview%20group:*.scripting.vbscript&num=100&scoring=d
>
> The other problem is deciding when to scroll to the top. You mention
> a control. What control is it? Are there any resize events
> associated with it that you can attach a script to?
>
> -Paul Randall
>
>
>

Re: HTA scroll to top when window is resized by Paul

Paul
Fri Mar 07 17:18:10 CST 2008

Thanks for letting us know what worked for you.

-Paul Randall

"XP" <XP@discussions.microsoft.com> wrote in message
news:F6CAC028-70F7-48F1-A7BD-0AA65F316714@microsoft.com...
> Thanks, but I found it, I was using the wrong prefix before and was
> getting
> an error; Answer: Self.Scroll 0,0
>
>
> "Paul Randall" wrote:
>
>>
>> "XP" <XP@discussions.microsoft.com> wrote in message
>> news:95E481E7-BED2-4F7B-9491-7A4D186C334E@microsoft.com...
>> > In an HTA using VBScript, there is a control that allows the user
>> > to
>> > collapse
>> > the HTA window to a smaller size. When this happens I want the
>> > window to
>> > scroll to the very top.
>> >
>> > Could someone please toss me the command to do this?
>>
>> The scrolling to the very top part is probably pretty easy.
>> You might try a groups.google search of the
>> microsoft.public.scripting.vbscript newsgroup for the word
>> scrollintoview:
>> http://groups.google.com/groups?q=scrollintoview%20group:*.scripting.vbscript&num=100&scoring=d
>>
>> The other problem is deciding when to scroll to the top. You
>> mention
>> a control. What control is it? Are there any resize events
>> associated with it that you can attach a script to?
>>
>> -Paul Randall
>>
>>
>>