Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the 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
Showing results 1 to 25 of 41
Search took 0.01 seconds.
Search: Posts Made By: John S
Forum: BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer October 29th, 2013, 02:32 PM
Replies: 1
Views: 1,592
Posted By John S
Lesson 38 Build Customer Database

Page 424 has a notation box on how to build a SQL database called Customer.mdf, for people who have access to SQL Server.

The book calls it a "program", so I was expecting an .exe, but instead it...
Forum: BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer October 18th, 2013, 08:11 PM
Replies: 1
Views: 1,511
Posted By John S
Underlying SQL Query

Hello,

I can start a New Project and connect to an existing .mdf database, and display the tables from the database in the Database Explorer and Data Source windows.

I can drag a table to the...
Forum: BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer July 23rd, 2013, 05:21 PM
Replies: 3
Views: 731
Posted By John S
Thanks, but still unsure of what an enumeration...

Thanks, but still unsure of what an enumeration actually does.

Are they used that often?

I have two other books on C#, and they hardly mention enums at all.

Is it something you see often?
Forum: BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer July 22nd, 2013, 09:20 PM
Replies: 3
Views: 731
Posted By John S
Lesson 17, Try It (again)

Ok, no it does not work.

I opened the solution provided in your source code download, and it works, but only because the items in the enumeration were manually entered into the Designer....
Forum: BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer July 9th, 2013, 03:18 PM
Replies: 1
Views: 1,003
Posted By John S
Page 104 - Classes and Instances

Paragraph 3 on page 104 says:

"A class defines the characteristics of any objects from that class. Your code can use the new keyword to create OBJECTS of the class."


Should that say: "Your...
Forum: BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer June 21st, 2013, 03:20 PM
Replies: 7
Views: 924
Posted By John S
That makes sense, but recallss to mind what you...

That makes sense, but recallss to mind what you said earlier in this thread, that computers are basically stupid.

You're right, of course, which brings us back to my original question: How does...
Forum: BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer June 20th, 2013, 02:08 PM
Replies: 7
Views: 924
Posted By John S
I just watched the video for this Lesson, and I'm...

I just watched the video for this Lesson, and I'm not sure if I'm less confused than before, or more.

In the video, (at about 6 min, 49 secs) you define :

smallest = minimum;
largest =...
Forum: BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer June 20th, 2013, 12:29 PM
Replies: 7
Views: 924
Posted By John S
Visual Studio complains and refuses to run if I...

Visual Studio complains and refuses to run if I type a comma instead of semicolon, but will run a whole method and then say "here's the values, call them whatever you like" ??

Ridiculous.
Forum: BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer June 19th, 2013, 05:32 PM
Replies: 7
Views: 924
Posted By John S
Lesson 20, Try It

Ok, I copied the code and it works.

But the Calculate button runs the method "FindMinimumMaximumAverage" to find "smallest, largest and average" values.

However, the method uses the terms...
Forum: BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer June 17th, 2013, 02:09 PM
Replies: 4
Views: 890
Posted By John S
Ok, if the code is correct, why did it not work? ...

Ok, if the code is correct, why did it not work?

Yes, I read the text about the "Listbox must contain integers ... ".

Your earlier post said that one way to load numbers is to use :

...
Forum: BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer June 17th, 2013, 12:33 PM
Replies: 4
Views: 890
Posted By John S
Ok, Parse is what I was trying to remember. ...

Ok, Parse is what I was trying to remember.

Wish the code in the book had been correct in the first place.
Forum: BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer June 17th, 2013, 12:29 PM
Replies: 3
Views: 704
Posted By John S
I'll try it. What would be the practical...

I'll try it.

What would be the practical application of doing this? Just as a test to see how the code works?
Forum: BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer June 16th, 2013, 10:19 PM
Replies: 4
Views: 890
Posted By John S
Lesson 19, FOREACH loops

This didn't work. I typed a bunch of numbers into the Items collection of the listbox, but they are seen as strings, right?

Do I need to convert each string to an integer somehow?

Or is the...
Forum: BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer June 16th, 2013, 10:09 PM
Replies: 3
Views: 704
Posted By John S
Lesson 19, FOR loops

What is this supposed to do? Open a Command Prompt window?

(top of page 230)




Console.WriteLine(string.Format("{0} : {1}", i , iSquared));
Forum: BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer June 15th, 2013, 12:18 PM
Replies: 4
Views: 771
Posted By John S
I had good luck with "Head First SQL" by Lynn...

I had good luck with "Head First SQL" by Lynn Beighley.

I did not review a bunch of books before picking this one. It was just one of three or four at a local library.

The way it is written...
Forum: BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer June 14th, 2013, 07:36 PM
Replies: 4
Views: 771
Posted By John S
Thanks. I delved into databases before I...

Thanks.

I delved into databases before I started C#.

I'm only a beginner at databases (also) but they seem to make more sense to me.

I found a very good introductory to databases book at a...
Forum: BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer June 14th, 2013, 07:27 PM
Replies: 7
Views: 932
Posted By John S
Well that sounds like good advice. I'm not...

Well that sounds like good advice.

I'm not sure, however, what you're referring to as magic numbers.

Can you give an example or two?

thanks
Forum: BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer June 14th, 2013, 03:09 PM
Replies: 4
Views: 771
Posted By John S
Database?

Lists, Sorted Lists, Dictionaries, Structures ....

Which of these is a Database "table" ??
Forum: BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer June 14th, 2013, 03:05 PM
Replies: 7
Views: 932
Posted By John S
I'm just a beginner at this, but it seems like a...

I'm just a beginner at this, but it seems like a long way around for nothing.

Perhaps the purpose of the Try It is just to demonstrate how enums and structs work??

In the form, the user selects...
Forum: BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer June 13th, 2013, 03:47 PM
Replies: 7
Views: 932
Posted By John S
Yeah that would make more sense. I'm curious...

Yeah that would make more sense.

I'm curious about entering any indexes at all in the enum. When I had the wrong ones in there, the project seemed to ignore them anyway.

The solution did not...
Forum: BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer June 12th, 2013, 03:05 PM
Replies: 7
Views: 932
Posted By John S
Lesson 17 Try It

Ok, new day, new problem.

I worked through the Lesson 17 Try It, and set the Preferred Contact to 0, like this:


preferredMethodComboBox.SelectedIndex = 0;


When I ran it, I kept getting...
Forum: BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer June 12th, 2013, 02:52 PM
Replies: 2
Views: 799
Posted By John S
{Edited} No, it seems it did not work.

{Edited}

No, it seems it did not work.
Forum: BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer June 12th, 2013, 01:10 PM
Replies: 3
Views: 770
Posted By John S
If it was int[5,7] would it not have ...

If it was int[5,7]

would it not have

rows 0 through 4 and columns 0 through 6,( not 0 through 7) ??.
Forum: BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer June 11th, 2013, 06:44 PM
Replies: 2
Views: 799
Posted By John S
Security Warning

Every time I try to open a Solution from your source code, I get a Security Warning that I should only open projects from a trustworthy source.

I have gone into Tools, Options, Projects and...
Forum: BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer June 11th, 2013, 04:47 PM
Replies: 3
Views: 770
Posted By John S
Multi-Dimensional Arrays, pg.198

I thought I understood arrays until I read your example on pg. 198.

It's a four by eight array, so why wouldn't it be:

int[ , ] values = new int[4, 8];

values[0, 0] = 0 * 0;
...
values[3,...
Showing results 1 to 25 of 41

 


All times are GMT -4. The time now is 05:37 PM.


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