Re: Panel Height
- From: "Peter" <pczurak@xxxxxxxxxxxxx>
- Date: Thu, 17 Aug 2006 23:11:10 -0500
"Linda Liu [MSFT]" <v-lliu@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:crVwojDwGHA.2004@xxxxxxxxxxxxxxxxxxxxxxxx
Hi Peter,
Could you place more PictureBoxes on one row in the panel in order to
minimize the total height of all the PictureBoxes? If no, in my opinion,
using ListView is a good solution for your problem.
.....,only when the paint event occurs for the first time is when thegraph is created and image of this graph is taken and placed in the
picture
box, ....
Would you tell me how you create the graph and place the image of this
graph in the picture box?
I don't know how would I create Image list on the fly when the paintevent occurs in the ListView.
I think you could create an image list and initialize it in the form's
Load
event handler.
Plus ImageList is limited to 256 pixels for width or height of a pictureand the width will
be dependant on the current width of the control.
Yes, it is. But 256 pixels for height and width should be enough for the
images in your program. If the ListView's width is less than that of a
ListViewItem , the vertical scrollbar will appears. If you don't like it
to
appear, you could enlarge the width of the ListView.
I look forward to your reply.
Sincerely,
Linda Liu
Microsoft Online Community Support
Could you place more PictureBoxes on one row in the panel in order to
minimize the total height of all the PictureBoxes? If no, in my opinion,
using ListView is a good solution for your problem.
I can not place more than one picture per row, it would be confusing to a
user. The image size is to restricting for my purpose.
Would you tell me how you create the graph and place the image of this
graph in the picture box?
I am using ZedGraph control to create Graphs and images of those graphs
http://zedgraph.org/wiki/index.php?title=Main_Page
I think you could create an image list and initialize it in the form's
Load
event handler.
The graphs / images are created after the form loads, after user clicks on
the create graphs button
Yes, it is. But 256 pixels for height and width should be enough for the
images in your program. If the ListView's width is less than that of a
ListViewItem , the vertical scrollbar will appears. If you don't like it
to
appear, you could enlarge the width of the ListView.
256 pixels is not enough for width
I think I have found a solution for this, Vertical Scroll bar control,
scrolling is not as smooth as Panel scroll bar but it will work and it's
unlimited. With Vertical Scroll bar I can place only visible images on a
Panel and replace them as the user clicks on the scroll bar control.
.
- Follow-Ups:
- Re: Panel Height
- From: Linda Liu [MSFT]
- Re: Panel Height
- From: Linda Liu [MSFT]
- Re: Panel Height
- References:
- Panel Height
- From: Peter
- Re: Panel Height
- From: Peter
- Re: Panel Height
- From: Linda Liu [MSFT]
- Re: Panel Height
- From: Peter
- Re: Panel Height
- From: Chris Dunaway
- Re: Panel Height
- From: Peter
- Re: Panel Height
- From: Linda Liu [MSFT]
- Panel Height
- Prev by Date: Re: What is himem.sys?
- Next by Date: Re: New to C# - DB question
- Previous by thread: Re: Panel Height
- Next by thread: Re: Panel Height
- Index(es):
Relevant Pages
|