Results 1 to 2 of 2
  1. #1
    aanthonyz's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Hitler's Minivan
    Posts
    483
    Reputation
    27
    Thanks
    77
    My Mood
    Relaxed

    Windows Form Application

    Well, I have this project for school and Im working with my teacher to make a Nomenclature Test in C++

    Well, I have two forms

    Form1.h : Will ask for name of the student and display a "Start Test" button
    Form2.h : Will display the question in a label, a textbox for the answer, and a button for the next question

    This is the code:
    Code:
    Form2::"replace with name of label for question"->Text = "Question 1: NaCl";
    
    
    
    
    
    {
     ////////////////////Question 1////////////////////
    				if (Form2::Answer->Text == "sodium")
    				 {
    					 MessageBox::Show("Correct","Correct");
    					 Form2::grade->Text = "Grade: 10 points";
    				 Form2::Stuff->Text = "Question 2";
    				 }
    				 else
    					 {
    ////////////////////Try 1////////////////////
    						 MessageBox::Show("Incorrect","Incorrect");
    						 Form2::Stuff->Text = "Question 1: NaCl";
    						 if (Form2::Answer->Text == "sodium")
    						 {
    							 MessageBox::Show("Correct","Correct");
    							 Form2::grade->Text = "Grade: 10 points";
    						 Form2::Stuff->Text = "Question 2";
    						 }
    						 else
    							 {
    ////////////////////Try 2////////////////////
    						 MessageBox::Show("Incorrect","Incorrect");
    						 Form2::Stuff->Text = "Question 1: NaCl";
    								 if (Form2::Answer->Text == "sodium")
    								 {
    									 MessageBox::Show("Correct","Correct");
    									 Form2::grade->Text = "Grade: 10 points";
    								 Form2::Stuff->Text = "Question 2";
    								 }
    								 else
    									 {
    								 Form2::Stuff->Text = "Question 1: NaCl";
    								 }
    						 }
    				 }
    				 
    			 }
    Does anyone know how I can do this but in a simpler manner? Im asking because there going to be 50 questions in each test version and there are going to be 5 versions in the program.
    "The best way to predict your future is to create it."

    Contributions I made:

    DirectX E-Books
    Hacking Tools
    Hacking into a PC

    Need Help?
    Send me a PM, or send me a email at : aanthonyz10@gmail.com

    Click My Dragon:


  2. #2
    jhonsonels's Avatar
    Join Date
    Dec 2010
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0
    Provides static methods and properties management methods, such as start and stop the program procedures for managing Windows messages, and attributes to obtain information about the program of the application. This class can not be inherited.

Similar Threads

  1. what do i save a windows form applications as?
    By g0t5k111z2 in forum Visual Basic Programming
    Replies: 3
    Last Post: 07-01-2010, 05:46 PM
  2. [Tutorial] How to change colors in DotNetBar for Windows Forms
    By Invidus in forum Visual Basic Programming
    Replies: 7
    Last Post: 02-28-2010, 12:20 AM
  3. [Help]About.vb Windows Form
    By LetItRock in forum Visual Basic Programming
    Replies: 12
    Last Post: 11-12-2009, 09:36 AM
  4. [Release] Window Mode Application
    By Stephen in forum Combat Arms Hacks & Cheats
    Replies: 40
    Last Post: 10-17-2009, 06:33 PM
  5. Windows Forms(C++) and etc.
    By zeco in forum C++/C Programming
    Replies: 3
    Last Post: 08-09-2009, 10:52 PM