Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
| Search | Today's Posts | Mark Forums Read
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old January 21st, 2007, 12:41 PM
Registered User
 
Join Date: Jan 2007
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can't See/Edit GUI After Save and Closing Project?

I'm designing a program for my PDA and worked out the GUI last night before bed. I saved the project, "debugged" it on the emulator and my PDA (just to see how it would look), and since I was happy with it, shut down the computer for the night.

This morning, I fired up the computer and tried opening up the project to continue working on it. It seems, however, that I can only get the code view. I can still "debug" it and the form will show correctly on the emulator and on my device, but I can't see it on the screen without running it. I added a form to the project just to see if I can see the design view for it, and I can, but not for the original form I made last night.

I'm new to the Visual Studio .NET line of products; last version I used was VB6, and that was a long time ago. So, this may seem a little rediculous, but I'm a newbie to this. Any help would be appreciated.
  #2 (permalink)  
Old January 25th, 2007, 12:18 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

What kinds of modifications did you make to the form class that isn't show up?

I have seen this behavior in VS 2003 when changing web forms. If you change the class a web form inherits from (from System.Web.UI.Page to a custom class) VS chokes up and doesn't know how to "design" your page class.

I've seen where after you create a form and have it open in the designer things behave. Then you change the class and things act a little funny, but the designer is still present. However, then you close the design view of a form, then open it up again, VS can't figure out how to load the designer for the form, so the design view of the form is not available.

It's possible you are experiencing this problem with windows forms. I wouldn't be surprised.

If you have changed the class that your form is derived from, you can try this workaround:

1. Open the form code.
2. Change the derived class back to the default (System.Windows.Forms.Form).
3. Close the form code.
4. Open the form normally (into the designer view).
5. Open form code again.
6. Change the derived class back to your class.

This is annoying, granted, but it seems to be the only way to work around the designer. I've used this process with web forms, hopefully it will work for windows forms.

-Peter
  #3 (permalink)  
Old January 25th, 2007, 05:33 PM
Registered User
 
Join Date: Jan 2007
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I've since given up on the issue. I hadn't made it very far into the program I was writing so I just started over. I have since tried to reproduce the problem but was unsuccessful. For what it's worth, I don't remember ever touching the form class file. The only thing I did with the form was draw objects on it (buttons and a menu, at that), and then started adding code to the buttons and menus.

Oh well...Thanks for you reply!



Similar Threads
Thread Thread Starter Forum Replies Last Post
Want to edit the Places Bar of Save As dialog box akbbhatt Visual Studio 2005 0 August 27th, 2008 04:16 AM
image edit save very urgent sakthi VB How-To 1 September 19th, 2006 04:52 PM
save, edit, and delete sime_tyres VB Databases Basics 1 September 1st, 2006 09:45 PM
Save Records Before Closing Form Ben Horne Access VBA 1 March 30th, 2004 11:47 PM
closing a project is a problem inside an addin... gbianchi Pro VB 6 2 September 1st, 2003 01:46 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.