Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows Forms
  4. windows forms in general

windows forms in general

Scheduled Pinned Locked Moved Windows Forms
c++tutorialwinformsquestionlounge
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    toprogramminguy
    wrote on last edited by
    #1

    In visual c++ 2008 when you create a windows forms application it creates a file called Form1.h What type of file is that and how do you write a program around that to use the values that you input them, use them and output the values of an algebra question for example. I am completely new to windows forms so if you could show an example it would be great. thanks ps if there are any good books that tell you how to program with windows forms that would be great

    A P 2 Replies Last reply
    0
    • T toprogramminguy

      In visual c++ 2008 when you create a windows forms application it creates a file called Form1.h What type of file is that and how do you write a program around that to use the values that you input them, use them and output the values of an algebra question for example. I am completely new to windows forms so if you could show an example it would be great. thanks ps if there are any good books that tell you how to program with windows forms that would be great

      A Offline
      A Offline
      Ajay k_Singh
      wrote on last edited by
      #2

      Form1.h represents your Form1 (which is a class Form1 derived from System::Windows::Forms::Form), and contains code related to it. We can declare out objects and controls here. Just to give you an idea, following is a small code snippet which takes number from two textboxes (which are already on form1) and after adding these numbers, shows sum in a message box. – ------------------------------------- private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { int i; i=System::Convert::ToInt32( this->textBox1->Text); i +=System::Convert::ToInt32( this->textBox1->Text) ; System::Windows::Forms::MessageBox::Show("Sum : "+i.ToString() ); } ----------------------------------------- As you want to get books on Visual C++, I would advice you to search on google. -Dave.

      ------------------------------------ http://www.componentone.com ------------------------------------

      T 1 Reply Last reply
      0
      • T toprogramminguy

        In visual c++ 2008 when you create a windows forms application it creates a file called Form1.h What type of file is that and how do you write a program around that to use the values that you input them, use them and output the values of an algebra question for example. I am completely new to windows forms so if you could show an example it would be great. thanks ps if there are any good books that tell you how to program with windows forms that would be great

        P Offline
        P Offline
        Paul Conrad
        wrote on last edited by
        #3

        .h files are header files.

        "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

        1 Reply Last reply
        0
        • A Ajay k_Singh

          Form1.h represents your Form1 (which is a class Form1 derived from System::Windows::Forms::Form), and contains code related to it. We can declare out objects and controls here. Just to give you an idea, following is a small code snippet which takes number from two textboxes (which are already on form1) and after adding these numbers, shows sum in a message box. – ------------------------------------- private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { int i; i=System::Convert::ToInt32( this->textBox1->Text); i +=System::Convert::ToInt32( this->textBox1->Text) ; System::Windows::Forms::MessageBox::Show("Sum : "+i.ToString() ); } ----------------------------------------- As you want to get books on Visual C++, I would advice you to search on google. -Dave.

          ------------------------------------ http://www.componentone.com ------------------------------------

          T Offline
          T Offline
          toprogramminguy
          wrote on last edited by
          #4

          Thanks, I've got this book: "C++ A Beginner’s Guide by Herbert Schildt" and I ve gone through it all but it doesn't do anything on windows forms unfortunatly. Thanks again

          A 1 Reply Last reply
          0
          • T toprogramminguy

            Thanks, I've got this book: "C++ A Beginner’s Guide by Herbert Schildt" and I ve gone through it all but it doesn't do anything on windows forms unfortunatly. Thanks again

            A Offline
            A Offline
            Ajay k_Singh
            wrote on last edited by
            #5

            Hello, I am not very sure about book for learning .Net programming with Visual C++… however using Google I found two links which should be useful for you. 1) Good tutorials on different topics – http://www.functionx.com/vcnet/index.htm 2) Msdn page (I have not checked any of the tutorials available here so don’t know how they are) – http://msdn.microsoft.com/hi-in/library/60k1461a(en-us).aspx I hope this helps. -Dave.

            ------------------------------------ http://www.componentone.com ------------------------------------

            T 1 Reply Last reply
            0
            • A Ajay k_Singh

              Hello, I am not very sure about book for learning .Net programming with Visual C++… however using Google I found two links which should be useful for you. 1) Good tutorials on different topics – http://www.functionx.com/vcnet/index.htm 2) Msdn page (I have not checked any of the tutorials available here so don’t know how they are) – http://msdn.microsoft.com/hi-in/library/60k1461a(en-us).aspx I hope this helps. -Dave.

              ------------------------------------ http://www.componentone.com ------------------------------------

              T Offline
              T Offline
              toprogramminguy
              wrote on last edited by
              #6

              Thanks for that!!!

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups