Results 1 to 4 of 4

Thread: [RESOLVED] load new Window

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2008
    Location
    Philippines, Surigao city
    Posts
    70

    Resolved [RESOLVED] load new Window

    good pm..

    how to load a new window,? what i mean is after i input the following choices A,B,C,D THE window or the A example will show what have in A.. and the previous txt that show in Program will to terminate.. take a look my code Ex:

    #include<stdio.h>
    #include<conio.h>
    main()
    {
    char choice;
    char ao;
    clrscr();
    gotoxy(30,3);printf("[.....MENU.....]");
    gotoxy(20,6);printf("[A]");
    gotoxy(25,7);printf("[45 per/kilo] *** Apple");
    gotoxy(25,8);printf("[15 per/kilo] *** Orange");

    gotoxy(20,11);printf("[B]");
    gotoxy(25,12);printf("[12 per/kilo] *** Water Milon");
    gotoxy(25,13);printf("[70 per/kilo] *** Mangustin");

    gotoxy(20,16);printf("[C]");
    gotoxy(25,17);printf("[200 per/kilo] *** Lemon");
    gotoxy(25,18);printf("[50 per/kilo] *** Mandarin");

    gotoxy(20,21);printf("[D]");
    gotoxy(25,22);printf("[55 per/kilo] *** Durian");
    gotoxy(25,23);printf("[30 per/kilo] *** Custard Apple");

    choice=getche();
    switch(choice) {
    clrscr();
    case 'a': printf("i want to show this text Only when i choice A? ");
    break;
    case 'b': printf("nothing");
    break;
    }
    getch();
    }

    pls help me!!

  2. #2
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: load new Window

    Try this:
    Code:
    #include<stdio.h>
    #include<conio.h>
    main()
    {
    char choice;
    char ao;
    clrscr();
    gotoxy(30,3);printf("[.....MENU.....]");
    gotoxy(20,6);printf("[A]");
    gotoxy(25,7);printf("[45 per/kilo] *** Apple");
    gotoxy(25,8);printf("[15 per/kilo] *** Orange");
    
    gotoxy(20,11);printf("[b]");
    gotoxy(25,12);printf("[12 per/kilo] *** Water Milon");
    gotoxy(25,13);printf("[70 per/kilo] *** Mangustin");
    
    gotoxy(20,16);printf("[C]");
    gotoxy(25,17);printf("[200 per/kilo] *** Lemon");
    gotoxy(25,18);printf("[50 per/kilo] *** Mandarin");
    
    gotoxy(20,21);printf("[D]");
    gotoxy(25,22);printf("[55 per/kilo] *** Durian");
    gotoxy(25,23);printf("[30 per/kilo] *** Custard Apple");
    
    choice=getche();
    switch(choice) {
    case 'a':clrscr();
    	printf("i want to show this text Only when i choice A? ");
    	break;
    case 'b':
    	printf("nothing");
    	break;
    }
    getch();
    return 0;
    }
    ...

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 2008
    Location
    Philippines, Surigao city
    Posts
    70

    Re: load new Window

    thank a lot akhilesh...

  4. #4
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: load new Window

    Quote Originally Posted by sansoa666 View Post
    thank a lot akhilesh...
    You are welcome....
    If that solved your problem, please mark the Thread as RESOLVED (using Thread Tools found at the top of this page)

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width