Results 1 to 3 of 3

Thread: How to draw table like MS Word

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2007
    Posts
    8

    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?

  2. #2
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    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.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2007
    Posts
    8

    Re: How to draw table like MS Word

    Quote Originally Posted by Negative0 View Post
    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
  •  



Click Here to Expand Forum to Full Width