1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Development VB Calculator

Discussion in 'Software' started by maki43, 29 Nov 2004.

  1. maki43

    maki43 I can touch my toes 1,2,3

    Joined:
    8 Nov 2002
    Posts:
    1,327
    Likes Received:
    1
    Hey all

    Might seem a bit of a noob question but here goes ;)

    For my chemistry course we need to create a scientific calculator in vb. What i want is to have a window with the display and a few functions on it, form1, which i have done and then an "extra functions" button which opens up another form, form2, with more functions on it! Ive made form2 and put the buttons on but im not sure how you change the commands so that it affects the text boxes in form1.

    eg if i want a text box to display 1 when u press a button

    text1.text = 1

    So how do i change this so that when executed on form2 the text box on form1 is altered?

    Also when i execute the program and i open up form2 i cant click on form1, wondering how u sort this also?

    Probably easily sorted, but used vb for the first time on friday :D

    Cheers!
     
  2. John Cena

    John Cena New Member

    Joined:
    1 Jun 2004
    Posts:
    818
    Likes Received:
    0
    Find out the name of the other form which contains the textbox

    If the textbox name was "t1" and the other form which contained the textbox was "F1" it would be
    F1.T1.TEXT = "hello"

    etc
     
  3. maki43

    maki43 I can touch my toes 1,2,3

    Joined:
    8 Nov 2002
    Posts:
    1,327
    Likes Received:
    1
    Cheers for that i knew it would be something simple :)

    Much apreciated!
     

Share This Page