Re: How to detect whether Panel got scrollbar ?



So under what circumstances do you see a scrollbar in the panel?

Cheers
Daniel
--
http://www.danielmoth.com/Blog/

"Dylas" <Dylas@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:92022570-1ADC-431F-B642-9607531DB4AA@xxxxxxxxxxxxxxxx
> Hi Daniel Moth,
>
> Thanks for ur suggestion.
> I tried out ur method and the problem is that the ListView is dock in the
> panel container and the height of the ListView is always the same as the
> panel ..
>
> Sorry, new to all this.
>
> Regards,
> Dylas
>
> "Daniel Moth" wrote:
>
>> Can you not just compare the height of the panel with he height of the
>> listview? When their difference is less than X you have scrollbars
>> visible.
>> X will be different depending on what distance you left between the
>> listview
>> and the panel edge.
>>
>> Cheers
>> Daniel
>> --
>> http://www.danielmoth.com/Blog/
>>
>> "Dylas" <Dylas@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:07A740B6-DA92-4D12-BCA6-FE8270957571@xxxxxxxxxxxxxxxx
>> > Hi,
>> >
>> > I have a listview inside a panel and i want to know how to dectect
>> > whether
>> > the autoscrollbar of the panel has been activated? The reason is that i
>> > need
>> > to resize the column of the listview if the panel scrollbar is visible.
>> >
>> > Regards,
>> > Dylas
>>
>>
>>


.



Relevant Pages

  • Re: Problem with vertical scroll on a ListView control
    ... it continues to fail with a standard ListView ... I suspect is that this is some issue with the ListView not really knowing what size it is because the 'panel' is resizing without ... setting contained control sizes? ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Getting listview doublebuffered and exporting OnPaint method problem
    ... listview inside a panel that would have more controls (The panel would ... Graphics grBuffer = Graphics.FromImage; ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: How to detect whether Panel got scrollbar ?
    ... >> Hi Daniel Moth, ... >> Thanks for ur suggestion. ... >> I tried out ur method and the problem is that the ListView is dock in the ... >> panel container and the height of the ListView is always the same as the ...
    (microsoft.public.dotnet.framework.compactframework)
  • [.Net 1.1] Strange error
    ... and I add/remove controls (ListView only) to/from it programatically. ... probaly when redrawing the panel while adding/removing controls or scrolling the panel i get an infinite loop of messageboxes saying "invalid parameter used" but no exceprion is thrown. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Textboxen löschen
    ... diese lasse ich einblenden bzw. ausblenden. ... wenn ich nun solch ein Panel ausblende. ... Textboxen und der ListView löschen, ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)