Simon
Simon

Reputation: 8347

How can I have a solution based layout for my WinForms application?

I am coding a C# forms application where I am wanting to have the layout of my application to have a similar style of the Visual Studio 2013 layout. By this, I mean to have a property grid at the lower right of the screen, a solution explorer to the top right of the screen, tabs for the content and a toolbox.

Do I need to use a FlowLayout control for this? I have previously found some sample code with this layout all coded to use as a template, however I cannot seem to find this after doing a search. What is the correct terminology for this layout style? Also, is there a Microsoft sample for this?

Here is an image of what I am looking for:

enter image description here

Thanks.

Upvotes: 1

Views: 86

Answers (1)

Joel Legaspi Enriquez
Joel Legaspi Enriquez

Reputation: 1236

You can use the following readily made controls from Visual Studio:

  1. System.Windows.Forms.PropertyGrid for the properties
  2. System.Windows.Forms.TreeView for the solution explorer
  3. For the toolbox you will need to create a custom-control, with search box and dropdown tabbing of pages. See making of custom controls here:

https://msdn.microsoft.com/en-us/library/vstudio/6hws6h2t(v=vs.100).aspx http://www.codeproject.com/Articles/2016/Writing-your-Custom-Control-step-by-step

Upvotes: 1

Related Questions