Solved

WInForms

Posted on 2011-09-22
5
330 Views
Last Modified: 2013-11-27
Coming into WinForms from primarily Web Applications

IU have an example project (C#) from Telerik.

In the solution explorer I have
MainForm.cs
  MainForm.Designer.cs
  MainForm.resx

When I double click on them they go directly to code view.

How do I look at the form?

0
Comment
Question by:lrbrister
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 5

Accepted Solution

by:
zvytas earned 500 total points
ID: 36581221
Right click MainForm.cs and select "Design view".
0
 
LVL 13

Expert Comment

by:Philip Pinnell
ID: 36581228
I think there is something in the settings that defines the default action but you can always right click and select view designer (or words to that effect)
0
 
LVL 5

Expert Comment

by:zvytas
ID: 36581230
Sorry, I meant "View designer".
0
 

Author Closing Comment

by:lrbrister
ID: 36581283
Thanks
0
 
LVL 40
ID: 36581321
This is normal for MainForm.Designer.cs and MainForm.resx.

The .resx is not the form anyway, it is an xml file that is used to record resources, anything that you might use in the form that is not code, such as images. These are incorporated in the application on compilation. So double clicking it usually opens the resource editor, a tool that helps in working with the file without breaking it. If you would rather see the xml, right click the file and select Open With...

The Designer.cs is the code that actually creates the view. When you add a Button on the form and change one of its properties, it generates the proper code in Designer.cs.

These 2 are generated by the system and you normally should not open them anyway unless you really know what you are doing.

Your form, the part that you work with is the MainForm.cs. This one should open in Design when you double click on it. To View the code instead, you can right click. There are also 2 buttons at the top of the Solution Explorer that enables to select "View Code" or "View Design".


0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question