Windows Develop Bookmark and Share   
 index > Windows Forms Designer > How to get a Visio Like Design Area?
 

How to get a Visio Like Design Area?

Hello people.
I want to create a visio-like app.
The very first problem i find is how to show the grid lines on the design surface. I was hoping i could use a form and it would have this, but it doesnt. I have seen people hook up an image with the lines on top of the form, but this is just too cumbersome and a sure somewhere there is a simpler solution.

So, how would i do it?
Serg.JN  Thursday, August 28, 2008 1:28 PM

Hi Serg.JN,

In my opinion, I think we can create a user control. In the Paint event handler we can drawas many horizontal and vertical lines as that canconstitute grid lines.

In the form, we can show the Grid by set the visibility property of the user control to true. Otherwise we can set it tot false to hide the Grid lines.

Hope it helps!

Best Regards,

Bruce Zhou

Windows Forms General FAQs
Windows Forms Data Controls and Databinding FAQs

Bruce.Zhou  Tuesday, September 02, 2008 12:06 PM

Hi Serg.JN,

In my opinion, I think we can create a user control. In the Paint event handler we can drawas many horizontal and vertical lines as that canconstitute grid lines.

In the form, we can show the Grid by set the visibility property of the user control to true. Otherwise we can set it tot false to hide the Grid lines.

Hope it helps!

Best Regards,

Bruce Zhou

Windows Forms General FAQs
Windows Forms Data Controls and Databinding FAQs

Bruce.Zhou  Tuesday, September 02, 2008 12:06 PM

You can use google to search for other answers

Custom Search

More Threads

• Does it really exist? (System.ComponentModel.Design.ComponentDesigner)
• Timer Tick event crashes designer
• How do make my own TabControl
• Inheriting form class: making MustInherit?
• How To Article for ControlDesigner?
• Problems with Office XP Web Components (OWC) on Visual Studio .NET
• Drag and Drop exception using design surface
• RightToLeft Property in controls
• Notifiers (bottom left corner popups)
• DLL Components in Windows Forms???