locked
Visual Basic 2008 Notepad Tutorial

All replies

  • The calculator tutorial is now also available on the same website:


    Wednesday, October 08, 2008 9:53 AM
  • when i us this code i get a problem:

    Code Snippet

     


    TextBox1.Text = HorizontalAlignment.Left

    VenstreToolStripMenuItem.Checked = True

    MidtenToolStripMenuItem.Checked = False

    HøyreToolStripMenuItem.Checked = False





    'Can u please help me with that?


    Wednesday, October 08, 2008 5:21 PM
  • Well, the problem seems to be in the first line Textbox1.text = HorizontalAlignment.Left

    I'm not sure what you are trying to do with the text box. If you are trying to align the text of the text box to the left then use this code:

    Code Snippet

    TextBox1.TextAlign = HorizontalAlignment.Left

     

     

    I hope this will help.
    Wednesday, October 08, 2008 5:47 PM
  • Oh sorry i wroted wrong last post...

    i got Texbox1.TextAlign = HorizontalAlignment.Left
    but its wrong with TextAlign...

    when i try it and put my text to center the text is: "2"
    and when i try to put the text in left it shows a: "0"
    and a "1" on right
    Wednesday, October 08, 2008 5:57 PM
  • i found the wrong thing now, i had a richtext box and i need to use a orginal textbox Wink
    But thank you for all your help and its a nice tutoial, hope that you can make more tutorials Smile
    Wednesday, October 08, 2008 6:28 PM
  •  

    write me back if nothing doesn't work
    Wednesday, October 29, 2008 10:41 PM
  • create a win32 library and write the following:






    #include <iostream>

    using namespace std;

    int main(){

        int myArray[3];

        cout << "Enter a number to sum: ";
        cin >> myArray[0];

        cout << "Enter a second number to sum: ";
        cin >> myArray[1];

        myArray[2] = myArray[0]+myArray[1];

        cout << "this calculator was made by: edmundo" << endl;
        cout << "The sum is: " << myArray[2];
        cout << " " << endl;


        system("pause");

    }





    write this and you will be fine, if you wanna add a mult assignment just change the + for the *, thanks.

    Programer
    Sunday, December 14, 2008 10:48 PM
  • create a win32 library and write the following:






    #include <iostream>

    using namespace std;

    int main(){

        int myArray[3];

        cout << "Enter a number to sum: ";
        cin >> myArray[0];

        cout << "Enter a second number to sum: ";
        cin >> myArray[1];

        myArray[2] = myArray[0]+myArray[1];

        cout << "this calculator was made by: edmundo" << endl;
        cout << "The sum is: " << myArray[2];
        cout << " " << endl;


        system("pause");

    }





    write this and you will be fine, if you wanna add a mult assignment just change the + for the *, thanks.
    Programer
    Sunday, December 14, 2008 10:49 PM
  • That is not VB code .
    Sunday, December 14, 2008 11:25 PM
  • Does anyone know where i can find source code for scientific calculator?
    Visual Basic 2008 Tutorials
    Friday, February 12, 2010 8:19 AM