Re: How to detect whether Panel got scrollbar ?
- From: "Dylas" <Dylas@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 17 Dec 2005 17:55:02 -0800
Hi Daniel,
The situation is like this, I put a ListView inside a Panel(Both of them are
of same width and height) and inside the ListView i will load rows of data
into it. And the sum of the columns width in the ListView will be 240 and if
the rows exceed the height of the Panel(which is the same with the ListView
height), vertical scrollbar(because of too many rows) and horizontal
scrollbar(because deivce width is 240 and now add on a vertical scrollbar)
will auto on, so in this situation i would like to resize the the Columns of
the Listview in order to prevent the horizontal scrollbar from appearing.
Thank You for your prompt replies.
Regards,
Dylas
"Daniel Moth" wrote:
> 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
> >>
> >>
> >>
>
>
>
.
- Follow-Ups:
- Re: How to detect whether Panel got scrollbar ?
- From: Daniel Moth
- Re: How to detect whether Panel got scrollbar ?
- References:
- Re: How to detect whether Panel got scrollbar ?
- From: Daniel Moth
- Re: How to detect whether Panel got scrollbar ?
- From: Daniel Moth
- Re: How to detect whether Panel got scrollbar ?
- Prev by Date: Re: AutoScale not working
- Next by Date: Re: Arrow Keys and Tabbing for WM5 using .NET CF 2.0
- Previous by thread: Re: How to detect whether Panel got scrollbar ?
- Next by thread: Re: How to detect whether Panel got scrollbar ?
- Index(es):
Relevant Pages
|