Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer
This is the forum to discuss the Wrox book Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer by Rod Stephens; ISBN: 9780470596906
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 22nd, 2011, 01:08 PM
Registered User
 
Join Date: Feb 2010
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
Default Lesson5 Exercise 2 Weird menu behavior

GRRR. Forum dropped my post.. will try again.

Built menus from Lesson 5 Exercise 2. Easy. Added no code. Looks perfect in Form Designer. Ran program. No menus, only White box with red x running thru.

Any ideas? Forum won't let me add screenshot. Running Win7 x64, C# 2010 Express.
  #2 (permalink)  
Old January 22nd, 2011, 01:15 PM
Registered User
 
Join Date: Feb 2010
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
Default still weirder

So, I find out that in I run using f5, I get weird behavior as above, but if I build program and run from SimpleEdit.exe, I get correct behavior- good "working" menus with images, etc.

Is this just weird behavior from the debug menu?
  #3 (permalink)  
Old January 23rd, 2011, 10:06 AM
Rod Stephens's Avatar
Wrox Author
Points: 3,166, Level: 23
Points: 3,166, Level: 23 Points: 3,166, Level: 23 Points: 3,166, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: , , .
Posts: 647
Thanks: 2
Thanked 96 Times in 95 Posts
Default

I think this is buggy behavior in Visual Studio. Unfortunately I don't know of a sure-fire way to fix it. Some things you might try:

- Close and reopen the project. Sometimes this works, particularly if you have images that don't seem to display properly. (Fairly often when I add an image to a control, the image doesn't appear. Closing and reopening often fixes that problem.)

- Select the MenuStrip, press [Ctrl]+X to cut it to the clipboard, and press [Ctrl]+V to paste it back.

- Start a new project and use copy and paste to copy the MenuStrip to the new project.

- Start over.

If you open the designer-generated file behind the form, there's a chance you can figure out what is wrong, but that can be tricky so I wouldn't recommend it unless you're pretty sure you can't salvage the project and you just want to poke around in there.

Sorry I don't have a better answer.
__________________
Rod

Rod Stephens, Microsoft MVP

Essential Algorithms: A Practical Approach to Computer Algorithms

(Please post reviews at Amazon or wherever you shop!)
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Weird behavior of FileSystemObject [Excel 2010] sektor Excel VBA 1 July 29th, 2010 04:21 AM
CH 15 Context Menu - Element Menu Items Razzy The Pug BOOK: Ivor Horton's Beginning Visual C++ 2005 2 November 9th, 2008 03:53 PM
Weird post back behavior mjhoagland Classic ASP Professional 3 December 26th, 2006 10:31 AM
right click menu hidden by drop-drown menu Andraw HTML Code Clinic 0 March 18th, 2005 03:28 PM
weird c# or browser behavior Ed Tijgen General .NET 0 August 18th, 2004 12:59 AM



All times are GMT -4. The time now is 04:06 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.