Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 4.0 aka C# 2010 > BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer
Password Reminder
Register
Register | 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 October 16th, 2012, 03:49 PM
Registered User
Points: 13, Level: 1
Points: 13, Level: 1 Points: 13, Level: 1 Points: 13, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2012
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default Did I do something wrong? Chapter 1: Challenge 5

Hello,


Ok, so here is the problem: I click Project-Add new item. I get to a screen, but it doesn't show a general category, it shows a screen where I can choose templates that are installed into c#, or I can view some online.

About Box, ADO.Net Entity Data Model, Object Generator, Self Tracking, and much more is what is shown.

I also opened up your solution, and it shows nothing. All of the names have x's to them that state they must have been moved or deleted.


Thank you,

Ryan
  #2 (permalink)  
Old October 16th, 2012, 06:07 PM
Rod Stephens's Avatar
Wrox Author
Points: 3,187, Level: 23
Points: 3,187, Level: 23 Points: 3,187, Level: 23 Points: 3,187, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: , , .
Posts: 646
Thanks: 2
Thanked 96 Times in 95 Posts
Default

Quote:
I click Project-Add new item. I get to a screen, but it doesn't show a general category, it shows a screen where I can choose templates that are installed into c#, or I can view some online.

About Box, ADO.Net Entity Data Model, Object Generator, Self Tracking, and much more is what is shown.
Does it show any categories on the left? I don't know why it wouldn't show General.

In any case, if you click the Visual C# Items entry at the top you should see all of the available templates. The General category just narrows it down a bit to make it easier to find what you want.

Quote:
I also opened up your solution, and it shows nothing. All of the names have x's to them that state they must have been moved or deleted.
Did you decompress the project? If you double-click on a zip file in Windows Explorer, Windows Explorer opens it as if it were part of the file system but Visual Studio isn't able to properly access the files that it needs to manage the project. Basically it needs to be able to write into the files and it can't do that inside the zip file. (This is the most common problem people have when opening a zipped project.)

You should also be able to see all of the project's files, whether you're looking inside the zip file or in the expanded file.

Let me know if that helps.
__________________
Rod

Rod Stephens, Microsoft MVP

Essential Algorithms: A Practical Approach to Computer Algorithms

(Please post reviews at Amazon or wherever you shop!)
The Following User Says Thank You to Rod Stephens For This Useful Post:
SolvedLogic (October 16th, 2012)
  #3 (permalink)  
Old October 22nd, 2012, 04:48 PM
Registered User
Points: 13, Level: 1
Points: 13, Level: 1 Points: 13, Level: 1 Points: 13, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2012
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hello again, I still am having issues, I extracted the files to my projects folder located inside of Visual Studio 2010, and I still can't see anything when I click the project.

For example I click on the folder, click on lesson 5, TryIt5, and it prompts me to only open up trusted projects, and I click open and it opens a blank project. It isn't blank as in I can see the form and it is blank. It is blank, as in it is not there at all. I can see the properties, Solution Explorer, Toolbox and error list, but I can't see anything else.

Thanks again,

Ryan
  #4 (permalink)  
Old October 23rd, 2012, 11:29 AM
Rod Stephens's Avatar
Wrox Author
Points: 3,187, Level: 23
Points: 3,187, Level: 23 Points: 3,187, Level: 23 Points: 3,187, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: , , .
Posts: 646
Thanks: 2
Thanked 96 Times in 95 Posts
Default

Can you email me a screen shot showing the loaded project at RodStephens@vb-helper.com? And maybe a picture of Windows Explorer showing the unzipped project directory.

I can't think why it would act this way.

(Asking about opening only trusted files downloaded off of the Internet is normal.)
__________________
Rod

Rod Stephens, Microsoft MVP

Essential Algorithms: A Practical Approach to Computer Algorithms

(Please post reviews at Amazon or wherever you shop!)
  #5 (permalink)  
Old October 24th, 2012, 08:07 PM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default move all the files the right directory

Quote:
Originally Posted by Rod Stephens View Post
Does it show any categories on the left? I don't know why it wouldn't show General.

In any case, if you click the Visual C# Items entry at the top you should see all of the available templates. The General category just narrows it down a bit to make it easier to find what you want.



Did you decompress the project? If you double-click on a zip file in Windows Explorer, Windows Explorer opens it as if it were part of the file system but Visual Studio isn't able to properly access the files that it needs to manage the project. Basically it needs to be able to write into the files and it can't do that inside the zip file. (This is the most common problem people have when opening a zipped project.)

You should also be able to see all of the project's files, whether you're looking inside the zip file or in the expanded file.

Let me know if that helps.
Hello,

I did have this problem as well. And I don't know how to direct the visual studio to the right directory for these downloaded files.

From the error list, I can know the directories where the Visual Studio was looking for. I then created all the necessary directories accordingly and placed all the files there. Then it works well.

However I do need to know how to direct Visual Studio to look for files in another location. Can anyone help on this issue?

Frank
  #6 (permalink)  
Old October 25th, 2012, 03:54 PM
Rod Stephens's Avatar
Wrox Author
Points: 3,187, Level: 23
Points: 3,187, Level: 23 Points: 3,187, Level: 23 Points: 3,187, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: , , .
Posts: 646
Thanks: 2
Thanked 96 Times in 95 Posts
Default

It could be that the files aren't being unzipped with their structure. A C# project stores some files in some subdirectories, in particular the Properties subdirectory.

When I zip up a project, I zip the top-level directory and all of its subdirectories so the files should keep their relative locations.

Normally I use one of two approaches to unzip:
  • Drag the top-level directory out of the zip file and place it where I want it. It brings along its subdirectories in their proper positions.
  • Right-click on the zip file and select Extract All. That lets me tell it where to place the top-level directory and the subdirectories go below it.

I don't know if there's a way to extract the files and make them all end up in a single directory. That would probably cause the problems you're seeing. You could try Extract All to see if that helps.
__________________
Rod

Rod Stephens, Microsoft MVP

Essential Algorithms: A Practical Approach to Computer Algorithms

(Please post reviews at Amazon or wherever you shop!)
  #7 (permalink)  
Old November 5th, 2012, 05:07 PM
Registered User
Points: 13, Level: 1
Points: 13, Level: 1 Points: 13, Level: 1 Points: 13, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2012
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default

As my problem before, I have followed your instructions, and here is my print screen.

http://i1294.photobucket.com/albums/...c/Untitled.png

Also this is pertaining to lesson 2, tab order, I do not see the tab order on my page. I notice you have visual studio, and I have c# express, perhaps that is an issue? I remember reading and I believe you stated it wasn't for any of the things we do in this book?
  #8 (permalink)  
Old November 5th, 2012, 05:21 PM
Rod Stephens's Avatar
Wrox Author
Points: 3,187, Level: 23
Points: 3,187, Level: 23 Points: 3,187, Level: 23 Points: 3,187, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: , , .
Posts: 646
Thanks: 2
Thanked 96 Times in 95 Posts
Default

Quote:
As my problem before, I have followed your instructions, and here is my print screen.

http://i1294.photobucket.com/albums/...c/Untitled.png

Also this is pertaining to lesson 2, tab order, I do not see the tab order on my page. I notice you have visual studio, and I have c# express, perhaps that is an issue? I remember reading and I believe you stated it wasn't for any of the things we do in this book?
The form looks pretty good!

I see what you mean about Tab Order not being listed in the View menu. Sorry about that.

This is caused by the fact that you're using the Express Edition. When I wrote the book, I thought Tab Order was in the Express Edition but it is not.

Fortunately you can put it back! Follow the instructions in this post:

Enable Tab Order and other commands in Visual Studio Express Edition

You can also set the tab order manually by setting each control's TabIndex field, lower numbers come first in the tab order. That's a big pain, though, so it's usually a lot easier to add the Tab Order command to the View menu.

Sorry about the hassle!
__________________
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
Chapter 6 - scaffold error, wrong number of args davidtspf BOOK: Beginning Ruby on Rails 12 August 13th, 2010 11:20 PM
Chapter 7 : Wrong SQLDataProvider methods claudiotereso BOOK: Professional DotNetNuke Module Programming ISBN: 978-0-470-17116-5 1 March 4th, 2009 11:13 AM
Can someone see what i did wrong here chapter 6 amo BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 1 April 8th, 2004 01:12 PM
Is Chapter 13 Code wrong??? miggitty VB.NET 2002/2003 Basics 0 December 31st, 2003 12:20 AM



All times are GMT -4. The time now is 10:23 AM.


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