Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Unable to run a VB 2008 program after changes are made without being forced to save it.
 

Unable to run a VB 2008 program after changes are made without being forced to save it.

In my Tools/Options box under Projects and Solutions/Build and Run, I have selected: Before building: to "Don't save any Changes." This allows me to try out some code (mainly for Console apps) and then discard the project without anyfurther deliberation.

However, after making changes to a form, I would like to test-run it without saving, but I get a message that forces me to save, unless I cancel and it runs the version of the program before the changes were made. This happens mainly when making changes to the form controls, not the code.

The VB 2005 edition works the way I want it to allow testing without saving, but VB2008 does not allow this. Is this a bug? Is there any way I can change this behavior?


Solitaire
Solitaire  Friday, May 29, 2009 11:14 PM
No it wasn't. I reported the behavior to MS Connect and they acknowledged it, said it might work differently in VS 2010. They offered a work-around: Switch to the code view and run the program from there. That way, it doesn't prompt to save. That works for me.


Solitaire
  • Marked As Answer bySolitaire Friday, June 05, 2009 3:30 PM
  •  
Solitaire  Friday, June 05, 2009 3:30 PM

Hi Solitaire,

This behavior may be by design.


Please remember to mark the replies as answers if they help and unmark them if they provide no help. end us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.
Linda Liu  Friday, June 05, 2009 10:14 AM
No it wasn't. I reported the behavior to MS Connect and they acknowledged it, said it might work differently in VS 2010. They offered a work-around: Switch to the code view and run the program from there. That way, it doesn't prompt to save. That works for me.


Solitaire
  • Marked As Answer bySolitaire Friday, June 05, 2009 3:30 PM
  •  
Solitaire  Friday, June 05, 2009 3:30 PM

You can use google to search for other answers

Custom Search

More Threads

• How to draw a user control with a transparent background without base.OnPaint(pevent) method?
• CustomForm problem
• showing details in tree and editing it in windows form-very very urgent
• Clicking an invisble button
• Hosting a user control
• inherit control in the flowLayoutPanel.
• Bringing controls out from design-time
• creating custom events for combo box
• How to display Phone Numbers in C#(Win Forms)?
• How do I add an item to my designer's toolbox?