Re: Panel Height

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"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 the
graph 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 paint
event 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 picture
and 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.


.



Relevant Pages

  • Re: Problem displaying web pages
    ... Compress graphics file sizes to create smaller Publisher Web ... You add it to the picture toolbar after installing the SP. ... rendering two different versions of both your company logo and the ... viewing this site in publisher the images are good quality. ...
    (microsoft.public.publisher.webdesign)
  • Re: How can I hyperlink to an enlarged picture in Publisher 2003?
    ... I was referencing the way you produce your html ... One of the places where Publisher starts to feel its limits is when the ... When you resize and optimize your images, ... Picture> Size tab). ...
    (microsoft.public.publisher.webdesign)
  • Re: How do I create mouse overs for web documents?
    ... I did tweak the sky and the picture is a LITTLE bit clearer. ... Many thanks David. ... > you can see that you have added the alt tags to your images as they load ... and to get the alt tags to work in Pub 2003 requires ...
    (microsoft.public.publisher.webdesign)
  • Re: How to hide jpg
    ... To create your single large data file you could write a VB app to Open a new file for Binary and use Put to write an array of 101 Longs into the file. ... This will enable you to store one Long value and 50 "pairs of Longs" with the first Long containing the number of images the file contains and each "pair of Longs" thereafter specifying an "offset from the beginning" in LongA and the image data length in LongB. ... Then you can use that single data file in your own main VB program by writing code to extract the "number of images in the file" and then "look at" each appropriate pair of Longs in turn and "Get" data of the appropriate size and starting at the appropriate point into a Picture Box or StdPicture object or whatever. ... Private Declare Function GlobalAlloc Lib "kernel32" _ ...
    (comp.lang.basic.visual.misc)
  • Re: A simple question...
    ... The point is that these are not candid images in any way ... while the children were bashful as the picture shows. ... photography is in error, and you, who had nothing to do with it, know ... Your notion of "sense of art" clearly is nothing but gibberish. ...
    (rec.photo.digital.slr-systems)