Designing controls

  • Thread starter Thread starter joe
  • Start date Start date
J

joe

Hi,

I need a control like the one in an Excel worksheet.
I want to write one myself. Which way is it better to go:

1. Draw all cells by hand on a lets say UserControl, do
hit testing, scrolling and all by myself-lots of work but
better control of what is going on

2. Use labels to represent the cells-no need for hit
testing etc., but I will have about 1000 labels and I dont
know how this will affect the performance

Thank you for your advice

joe
 
Hi,

If you are building a grid type control that is going to cater to your
requirements now and in the future I would rather render the cells and let
the control handle hittesting and scrolling. I have not checked but I am
sure you will find some sample code at www.codeproject.com.

Hope this helps

Chris Taylor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top