I need to draw a line grid on a windows form that contains 4 rows and 4 columns.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Have a look at: How to: Draw a Line on a Windows Form
If you want something for controlling layout, rather than a simple line grid, you can use a TableLayoutPanel.
In response to your comment, you can achieve what you want using the TableLayoutPanel and anchoring and docking. There is also the FlowLayoutPanel, but be careful not to overuse this control, as form load speed appears to suffer.