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
Solved

WInForms

Posted on 2011-09-22
5
326 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
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
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…

809 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