Designer view not showing in Visual Studio windows forms - c#

I'm not sure why my designer bit of my Windows Forms is showing code instead of the actual design. It did before but I don't know what I did to change it. How can I change it back?

I am also a new developer and member. See where I have my mouse from the solution navigator menu? Open it will show you the form.

Related

MDI Child Form is scaling to the wrong size

I have an old C# winforms project I have support for several years now. In this project there is a main form that is an mdiparent and each other form is a child that fits inside the blank area of the parent. This has never been a problem.
Now I am trying to make modifications to this app again, but I do have a newer version of Visual Studio (2015) than I used to. So there is only ONE child form in this app that is giving me trouble. If I revert all my code, open the project, build, that form will appear/scale correctly. If I revert all my code, open the project, open the UI of the form, build, it will shrink the child to a smaller area inside the parent. It only happens on this ONE form, the rest work fine.
I have tried messing with all forms of autosizing, scaling, window size settings, etc but I think its something in VS that is causing just that one form to auto scale incorrectly and I'm not sure what it is. If I look at the auto generated code and compare it to the other forms it will set AutoScaleBaseSize to (6,15) but other forms are at (5,13). If I do like I mentioned above and revert the code but do NOT open the form, the autogenerated code for that form is (5,13) like the other forms.
What is happening in Visual Studio to change this AutoScaleBaseSize property and how can I find the culprit?

c# Binding windows forms controls in designer without typing any code

I need to bind two controls (pictureboxes) in my c# windowsforms designer (using Visual Studio 2015) so when I do an action with the parent one (for example hide it), the child will also hide... but on the other hand, when i hide the child, the parent will stay the way it is...is there a way to do this just in the designer without typing any code?
I couldn't find any answer on the Internet.
Thank you.
There's no way of doing this in the designer. You will have to implement this behavior using some code.

Blend + VS 2012 Ultimate Form Missing in VS

I created a WPF form in Blend and now I want to bring this form into VS2012 so I can start putting code to the buttons, etc. I cannot open projects from VS2012 directly into blend the shortcut to do this isn't there, but I can edit my Blend project in VS2012. When I do this and run the project in VS2012 I see the form as expected which I've created in blend. The problem is in VS I cannot find the actual form anywhere to work with, I can only edit the files themselves. Not sure if I'm doing something silly, but I'm trying to click into buttons to create events like I would normally. Any ideas what I'm missing?
When I open other WPF projects that I started in VS2012 (not blend) the form comes right up for me to interact with.
In VS open the xaml for the form. If you can't see the designer, look at the bottom of the xaml window, there should be some tabs there: XAML, Design and Document Outline. Selected Design will switch your view from the Xaml to the 'Form view' (the designer). If you look on the right there are some buttons for changing the view to a split view, either vertically or horizontally that allow you to see both the Xaml and the design at the same time. You can end up in the state where you don't see the form if you expanded the xaml view to fill the pane.
The horizontal view will look like this:

Change WinForm to Win Control, Works Fine but Invisible in Visual Studio Designer

I've converted a Windows Form into a Windows Control (by changing the code's parent from Form to Control, removing a few minor/irrelevant Form property assignments, and changing the project settings to "Class Library" instead of Windows Form Application). The Control works great in my application, but when I open it up in Visual Studio Designer there is nothing there except the labels for the items it isn't showing me (panel1, button1, etc.).
How do I get designer working again? It gives no errors.
You'll get the wrong designer when you do this. The default designer for the Control class is not a DocumentDesigner, the kind of designer that supports editing nested controls. The simplest fix is to change the base class of your class from Control to UserControl.

Not able to move the form fields while creating wpf application in visual studio 2010

I am currently using visual studio 2010 and i want to create a simple WPF application. I want to know why I am not able to move the form fields. I am able to resize the fields but not move them. I am new to this and I have no clue about what to do.
Change Margins of your form fields and they will move. They are in the form of "left,top,right,bottom".

Categories

Resources