Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I'm making a form to display results, nearly like a grid, but each cell is multiline (has to be for aesthetics) and yes I know labels can draw multiline text. There will be over 100 cells minimum on the form, also depends on the form size, but could be more.

 

I tried it with labels and it caused the exe to be 500k, then I tried using the onpaint graphics event to draw them all. That made the exe 220k in size.

 

The program will have several forms like this and I want the exe size to be kept to a minumum.

 

Are there any issues with drawing the cells instead of labels?, apart from the amount of coding required. Performance is good so far, but I havent drawn any text strings on there yet. The form resizes without flicker and so on. One advantage is that I can have gradient fill on the cells to make it look nicer than a label.

 

Any comments or suggestions would be great.

Posted

I ended up making my own control. I'm still manually drawing everything, but have the added bonus of being able customise it easier as well.

 

And I can see that later down the track if something needs changing in the display, I only have to recompile the dll and replace the old one which is only 10K. Good for downloads if I put it up on a website (if I eventually get that far)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...