There doesn't seem to be a mechanism for changing the question (such as a button). As is, it always loads the first question from the table in the database dt.Rows(0).... To change the question, change '0' to another row number. A basic way to do this is to use two buttons ("Next" and "Previous"). Use a counter variable to keep track of the current question number. Increment this value when the "Next" button is pressed--decrement the value when the "Previous" button is pressed.

What do you want to do when you get to the last question and the user clicks the "Next" button?
What do you want to do when you get to the first question and the user clicks the "Previous" button?

Why do you have 6 tables with the exact same fields?

How do you have "myPics" defined?

After line 126, add the following (for troubleshooting purposes):

string msg = string.Empty;
msg += "x: " + x.ToString() + System.Environment.NewLine;
msg += "y: " + y.ToString() + System.Environment.NewLine;
msg += "SHOT: " + SHOT.ToString() + System.Environment.NewLine;
msg += "GOALIE: " + GOALIE.ToString() + System.Environment.NewLine;
msg += "picPlay Length is " + picPlay.Length  + " -- Index numbers are 0 to " + (picPlay.Length - 1) + System.Environment.NewLine;

MessageBox.Show(msg, "Values");

What is the value of "SHOT"? Where is this value set?

Also, line 67 you have for (int i = 0; i < 6; i++) which should be i < 5.

Have you considered using an int array of size 10 and initializing each element to 0? Index 0 would keep track of the number of times the number 0 occurs. Index 1 would keep track of the number of times the number 1 occurs...etc.

Break what you are trying to do into smaller pieces. Try searching for the following:

  • java loop through string
  • convert character to int

In "Main.cpp", line 63 should be cout << "Number inserted:" << num << endl;

In "Main.cpp", there are multiple problems with "ProcessMenu".

  • No "do" for the while statement
  • case1 should be case 1 (you need a space between the word "case" and the number 1)
  • In "ShowMenu" you offer an option to print, but don't have a case statement for it in "ProcessMenu"
  • You don't offer an option to quit

Try the following for ShowMenu:

int ShowMenu(void)
{
    int option;
    cout << "\n\t" << endl;
    cout << "\t\t===============================" << endl;
    cout << "\t\t1. Insert into tree" << endl;
    cout << "\t\t2. Print tree" << endl;
    cout << "\t\t3. Quit" << endl;
    cout << "\t\t===============================" << endl;
    cout << endl;

    cout << "Choose an option: ";

    cin >> option;
    return option;
}//ShowMenu

Try the following for "ProcessMenu":

void ProcessMenu(TreeType<T>& tree)
{
    bool quit = false;
    do{
        switch (ShowMenu())
        {
            case 1:
                InsertItem(tree);
                break;
            case 2: 
                PrintTree(tree);
                break;
            case 3:
                quit = true;
                break;
            default:
                cout << "Error: Invalid option. Try again." << endl;
        }//switch
    } while (!quit);

}//ProcessMenu

It's been a while since I've written anything in Perl, but one way of doing it would be to use two arrays--storing all of the "rsId" values in one array and all of the "buildId" values in the other array. Then print all of the "rsId" values separated by a comma and then all of the "buildId" values separated by a comma.

The following may be useful:
Perl string array - How to create and use an array of strings
See "Perl string array - another way to create a list of pizzas"

There is an interface for creating databases.

If using the Express version:

  • Click "View" (in menu)
  • Select "Object Explorer"
  • Click the "+" sign next to your database instance (or double-click your database instance name)
  • Click the "+" sign next to "Databases" to expand Databases (or double-click "Databases")
  • Right-click "Databases" and select "New Database" to create a new database.

Note: You can use a version of SQL Management studio >= to the version of SQL Server/SQL Server Express that you are using (ie: you can use version SQL Server 2008 and SQL Server Management Studio 2012). The steps should be similar for the regular version of SQL Server Management studio.

The following may be helpful:

Tutorial: SQL Server Management Studio

Microsoft® SQL Server® 2008 Management Studio Express

Microsoft® SQL Server® 2012 Express / Microsoft SQL Server 2012 Management Studio Express --expand "Details" to learn more

If this only happens when using under battery power, it could be a bug in the video driver, the video chip, or a bug in the OS. You may consider opening a case with HP, although there may be a fee involved. You can download the latest Intel video driver from the Intel website. However, if you open a case with HP, they will most likely insist that you download the latest driver from the HP website, which may or may not actually be the latest driver, but rather the last driver that they've tested on that model of computer. As a work-around, you can try changing some of the power settings. See http://windows.microsoft.com/en-us/windows7/products/features/power-management . I don't have access to a computer right now, but look for any settings for video--can't remember, at the moment, if there are any. Can also try changing the processor minimum (on battery) to a higher number. Start with 100% and see if the issue still occurs.

What code did you use to create the XML file?

Do I need to dispose/close XDocument.Load(string)?

"No, you don't - it doesn't even implement IDisposable. The XDocument and XElement classes use XmlReader under the covers and handle the disposing of the underlying reader for you."

Using Statement (Visual Basic)

"...Managed resources are disposed of by the .NET Framework garbage collector (GC) without any extra coding on your part. You do not need a Using block for managed resources. However, you can still use a Using block to force the disposal of a managed resource instead of waiting for the garbage collector.

A Using block has three parts: acquisition, usage, and disposal.

Acquisition means creating a variable and initializing it to refer to the system resource. The Using statement can acquire one or more resources, or you can acquire exactly one resource before entering the block and supply it to the Using statement. If you supply resourceexpression, you must acquire the resource before passing control to the Using statement.

Usage means accessing the resources and performing actions with them. The statements between Using and End Using represent the usage of the resources.

Disposal means calling the Dispose method on the object in resourcename. This allows the object to cleanly terminate its resources. The End Using statement disposes of the resources under the Using block's control..."

The Community Center Chat window keeps appearing (opening) after I close it which is rather annoying.

There is a tutorial on how to use BackgroundWorker here:
How to use BackGroundWorker to Create Threads

It is for VB .NET, but can easily be converted.

Also, your program should do some sort of input validation. For example, if your grade point scale is from 0.0 - 4.0, if a user enters "5.0", the program should let the user know that he/she entered an invalid value and should prompt the user to enter a valid value.

Start off by writing some pseudo code. See attached file.

Then, convert pseudo code to Java code. The following examples use the pseudo code from the attached file.

Example 1:
Create array to hold course names (Data type: String[]; Variable name: courseNameArr)

Code:

String[] courseNameArr = null;

Example 2:
Create variable to hold total grade points (Data type: double; Variable name: totalGradePoints)

Code:

double totalGradePoints = 0.0;

Example 3:
Initialize course name array (courseNameArr = new String[numcourses])

Code:

courseNameArr = new String[numcourses];

Example 4:
Store course name in course name array (courseNameArr[i])

Code:

courseNameArr[i] = coursecde;

I've left the formulas blank to give you an opportunity to come up with your own formulas.

You prompt the user for the number of courses taken (numcourses), but don't use that information. Instead you hardcoded a value of "3". Look at every place you've placed a "3" and ask yourself if perhaps that value should be replaced by "numcourses". Also, what is the purpose of a loop? Lines 93-99 should probably also be in a loop. This type of information would be perfect to be in it's own class. Have you learned about creating your own class yet? If not, then use multiple arrays as you have done.

Have you tried adding txtStatus.Refresh(); after txtStatus.Text += ...?

Please post your code for "Form1.cs". It looks like it should contain an instance of "VEntradas" and something that sets the value of "entradas" for the instance.

example code in Form1.cs:

VEntradas myVEntradas = new VEntradas();

myVEntradas.entradas = "Armazem";

myVentradas.ShowDialog();

Also, if you aren't going to set an initial value for "entrada", you don't need to do the following:

private string entrada;

public string entradas
{
    get { return entrada; }
    set { entrada = value; }
} 

You can just do the following:

public string entradas { get; set; }

Also, you have:

Home.okLogin = true;

        ...

Home frn = new Home();

which should probably be:

Home frn = new Home();

        ...

Home.okLogin = true;

even if "okLogin" is defined as static--it makes your code easier to follow.

"ContextMenuStrip" may be of use in your program as well.

An instance constructor is used to create an instance of a class. In C# it isn't necessary to create a default constructor that is empty. What do I mean by "a default constructor that is empty"?

Let's look at some of the code from above:

class MyCalculations 
{
    public MyCalculations()
    {
    }//default constructor

    public int SumIt(int total)
    {
          ...

    }//SumIt

}//class

Since the constructor is empty--doesn't contain any code--it isn't necessary to specify it. C# automatically includes a default (empty) constructor.

The above class can be written like this:

class MyCalculations 
{        
    public int SumIt(int total)
    {
          ...

    }//SumIt

}//class

However, once you define another constructor C# no longer automatically includes the default (empty) constructor, so you need to include it if you want it in your class.

Resources:

Instance Constructors (C# Programming Guide)

"...If a class does not have a constructor, a default constructor is automatically generated and default values are used to initialize the object fields..."

Static Classes and Static Class Members (C# Programming Guide)

Have you considered using a database? Are you trying to store all of the objects into a single file? How many records (entries) do you anticipate having for each object?

Do something like this is only appropriate in a business setting on computers the business owns and only when this has been specified as a requirement. Whereas, only allowing a single instance of an application to run is appropriate on any computer.

It is probably the "." you have between "EqualsIgnoreCase" and "("

Maybe next week's lesson from your professor is how to fix it?

You might try researching the following:
-WinPE
-bcdedit
-bootrec

To clarify my previous post, convert the DateTimePicker value using format as in my previous post.

 http://stackoverflow.com/questions/12270816/datetime-format-issue-in-vb-net-with-ms-access-database-when-using-sql-statement
 
You should use:
CurrentDate=Format(TrDate, "yyyy/MM/dd hh:mm:ss tt")

Access needs an unambiguous date.

This article may be of use:
No post, no beeps, no video

What is the brand/model of your mb? Does your case have a speaker?
Do you have all of the power connections hooked up (including the 4-pin connector)?

Replace the '/' between yyyy and hh and it may work. It looks like your database design could use some work. Is this a theoretical resort (ie: homework assgmt) or a real place. After looking through your project I had difficulty figuring out where swimming type comes into play. Can ppl just visit to use the pool/beach and pay a small fee? Is there an extra fee for additional people when renting a cottage/room?

The value in currentItem.SubItems(checkinIndex).Text is not something that can be converted to DateTime, because it either isn't a Date/Time or isn't in a format that is recognizable to DateTime.Parse

Have you checked the volume shadow copy settings?

-Click Start
-Select Control Panel (view by: small icons)
-Click System
-Click System Protection (left menu)
-Click System Protection tab
-Click Configure button
-Under "Disk Space Usage", look at Current Usage