|
-
Jul 19th, 2009, 10:00 PM
#1
Thread Starter
New Member
How to draw table like MS Word
Hi all
I'm working on a project that needs to give the user ability to draw a table like MS Word and then add controls to its cells..
Any idea on how to start it?
-
Jul 19th, 2009, 10:57 PM
#2
Re: How to draw table like MS Word
You are probably going to end up using a grid control like the datagridview. Whenever you give the user the ability to create controls, it can get a bit tricky. I would focus on giving the user the ability to create a control via the menu, giving them an option for width and height. Once you get that working, you could then work on giving the user the ability to drag out a control.
-
Jul 21st, 2009, 11:01 AM
#3
Thread Starter
New Member
Re: How to draw table like MS Word
 Originally Posted by Negative0
You are probably going to end up using a grid control like the datagridview. Whenever you give the user the ability to create controls, it can get a bit tricky. I would focus on giving the user the ability to create a control via the menu, giving them an option for width and height. Once you get that working, you could then work on giving the user the ability to drag out a control.
Thank you for offering help
well, it's like creating custom report
I want to give the ability to resize controls at run time. that is easy
but also to merge cells and columns. and here is the problem
I tried to use the table layout.. but there is no good controlling to resize it's cells at runtime and i think also the grid control doesn't give that option..
I think i'll try to put controls in a picturebox or panel and use anchor property..it's requires lots of code to control the operation but i guess there is no easy way to do it..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|