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

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:
Thanks.

You can use the following readily made controls from Visual Studio:
System.Windows.Forms.PropertyGrid for the properties
System.Windows.Forms.TreeView for the solution explorer
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

Related

Visual Studio 2015: Application not appearing the same when run as in the designer

I'm sure I can't be the first to ask this question but I couldn't find an answer. I have designed the GUI of an app with the Form Designer and it looks like this:
As you can see, there are large gaps between the labels and text boxes that don't exist on the designer. I've tried locking them but to no avail...
Your problem is very casual, and solution is quite simple.
Please place your controls/control groups on panel controls (see in Toolbox). Then please set docking or anchor settings for panels and controls but remember, that control cannot use both - anchor and docking settings.
Hope this helps.

WPF designer view dont show

I have been using Visual Studio 2013 (Downloaded ISO-version) express C# winforms for some months now and i wanted to start using wpf (because of the design possibilities ), however when i start a new WPF C# project I only get MainWindow.xaml and MainWindow.xaml.cs. i have read on many different pages about this and I've tried repairing VS and pressing CTRL + F7 while in the WPF project and many other things, but none of them works.
I can start the program without difficulty and a window which seems to be the standard window appears. and in my solution Explorer there is nothing related to the word design so i don't think its there either.
I would be grateful for any answer. :)
If you are only seeing the XAML, your design view may be collapsed. There is a small button on the bottom right of the XAML pane that allows you to collapse/uncollapse the design view. I have included pictures, the first of which highlights the button, and the second shows the result.
I would encourage you though to use the design view only as a preview window, if at all. The idea of dragging and dropping and positioning controls via the design view is very winforms style of thinking, and in WPF you want your positioning to be more relative to your layout containers. Personally, I do not use the design view at all when I am doing wpf, as I find it becomes easy to read your markup and see it in your head.

Why can't I use the increase/decrease horizontal spacing buttons on the layout toolbar in VS 2010?

I'm trying to learn ASP.NET/C# by following a few simple tutorials (that use Web Developer 2005 in the videos) and I'm trying to drag out a label and a button on the designer canvas and align them using the controls on the layout toolbar but they're disabled. I don't know why. I'm using absolute positioning to place them. Am I doing something wrong?
Make sure the main window is not selected as well as the 2 controls

Cant find "StyleApplication" toolbar in VS 2010?

As Joe Stagnner in his asp.net tutorial has used Style Application and target rule for creatng css code. I can't find any toolbar named StyleApplication.
Can anyone pls help me to locate this toolbar which gives me both option of style application and target rule? Tried experimenting with toolbars still not able to find.
It's merged with Formatting toolbar. There is Target rule drop down, Reuse existing style and Show overlay buttons in Formatting toolbar.

Which Tab Control does Visual Studio 2008 use?

Which tab control does VS 2008 use and is it possible to reference and use it in C# projects? I have not been able to find anything on the web about it, but admittedly "VS2008 Tab Control" is a bit generic.
It's a great tab control and I would love to leverage it in my own projects.
There is a wonderful one on SourceForge: WeifenLuo.WinFormsUI.Docking (or DockingSuite). Sorry no link (yet).
Update
Sourceforge link: Dock Panel Suite
Sample Project on CodeProject: A Visual Studio 2005-like Interface
The VS2008's tabbed MDI control is not available but there are some third party components that are quite good at it. Developer Express has one.
Further reading about tabbed MDI can be found on wikipedia
The document editing area in Visual Studio 2008 is more than just a tab control. It allows you to place documents in a vertical or horizontal stack. There is nothing similar provided as part of the standard window forms controls. You need to either create your own control or buy a third party control that performs the same action.

Categories

Resources